當前位置: 首頁>>代碼示例>>PHP>>正文


PHP mpp_media_src函數代碼示例

本文整理匯總了PHP中mpp_media_src函數的典型用法代碼示例。如果您正苦於以下問題:PHP mpp_media_src函數的具體用法?PHP mpp_media_src怎麽用?PHP mpp_media_src使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了mpp_media_src函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: bp_get_activity_id

 * 
 */
$activity_id = bp_get_activity_id();
$mppq = new MPP_Cached_Media_Query(array('in' => (array) mpp_activity_get_media_id($activity_id)));
if ($mppq->have_media()) {
    ?>
	<div class="mpp-container mpp-media-list mpp-activity-media-list">

		<?php 
    while ($mppq->have_media()) {
        $mppq->the_media();
        ?>

			<a href="<?php 
        mpp_media_permalink();
        ?>
" ><img src="<?php 
        mpp_media_src('thumbnail');
        ?>
" class='mpp-attached-media-item' data-mpp-activity-id="<?php 
        echo $activity_id;
        ?>
" /></a>

		<?php 
    }
    ?>
	</div>
<?php 
}
mpp_reset_media_data();
開發者ID:markc,項目名稱:mediapress,代碼行數:31,代碼來源:entry-comment.php

示例2: mpp_get_current_media

<?php

// Exit if the file is accessed directly over web
if (!defined('ABSPATH')) {
    exit;
}
/**
 * 
 * Single photo view
 * 
 */
$media = mpp_get_current_media();
?>
<img src="<?php 
mpp_media_src('', $media);
?>
" alt="<?php 
mpp_media_title($media);
?>
" class="mpp-large"/>
開發者ID:markc,項目名稱:mediapress,代碼行數:20,代碼來源:photo.php

示例3: do_action

			<?php 
do_action('mpp_lightbox_media_meta_top', $media);
?>
 
		</div>
		
		
		<a href="<?php 
mpp_media_permalink();
?>
" title="<?php 
echo esc_attr(mpp_get_media_title());
?>
">
			<img src="<?php 
mpp_media_src();
?>
" alt="<?php 
echo esc_attr(mpp_get_media_title());
?>
" class="mpp-lightbox-single-media"/>
		</a>
		
		<div class="mpp-item-meta mpp-media-meta mpp-lightbox-media-meta mpp-lightbox-media-meta-bottom">
			<?php 
do_action('mpp_lightbox_media_meta', $media);
?>
 
		</div>
		
		<?php 
開發者ID:enboig,項目名稱:mediapress,代碼行數:31,代碼來源:lightbox-comment.php

示例4: generate_upload_meta_box

    public function generate_upload_meta_box($post)
    {
        ?>

		<!-- append uploaded media here -->
		<div id="mpp-gallery-media-admin-list" class="mpp-uploading-media-list">
			<ul> 
				<?php 
        $gallery_id = $post->ID;
        $mppq = new MPP_Media_Query(array('gallery_id' => $gallery_id, 'per_page' => -1, 'nopaging' => true));
        ?>
	
				<?php 
        while ($mppq->have_media()) {
            $mppq->the_media();
            ?>
				
					<li id="mpp-uploaded-media-item-<?php 
            mpp_media_id();
            ?>
" class="<?php 
            mpp_media_class('mpp-uploaded-media-item');
            ?>
">
						<img src="<?php 
            mpp_media_src('thumbnail');
            ?>
">
					</li>
				<?php 
        }
        ?>
				<?php 
        mpp_reset_media_data();
        ?>
			</ul>
		</div>
		<!-- drop files here for uploading -->
		<div id="mpp-gallery-admin-dropzone" class="mpp-dropzone">
			<button id="mpp-add-gallery-admin-media">Add media</button>
		</div>
		<!-- show any feedback here -->
		<div id="mpp-gallery-upload-admin-feedback" class="mpp-feedback">
			<ul> </ul>
		</div>


	<?php 
    }
開發者ID:baden03,項目名稱:mediapress,代碼行數:49,代碼來源:class-mpp-post-helper.php


注:本文中的mpp_media_src函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。