当前位置: 首页>>代码示例>>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;未经允许,请勿转载。