当前位置: 首页>>代码示例>>PHP>>正文


PHP cmsms_meta函数代码示例

本文整理汇总了PHP中cmsms_meta函数的典型用法代码示例。如果您正苦于以下问题:PHP cmsms_meta函数的具体用法?PHP cmsms_meta怎么用?PHP cmsms_meta使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了cmsms_meta函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

    if ($cmsms_post_video_type == 'selfhosted' && !empty($cmsms_post_video_links) && sizeof($cmsms_post_video_links) > 0) {
        foreach ($cmsms_post_video_links as $cmsms_post_video_link_url) {
            $video_link[$cmsms_post_video_link_url[0]] = $cmsms_post_video_link_url[1];
        }
        if (has_post_thumbnail()) {
            $poster = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'post-thumbnail');
            $video_link['poster'] = $poster[0];
        }
        echo '<div class="cmsms_blog_media">' . "\n" . cmsmastersSingleVideoPlayer($video_link) . "\r\t\t" . '</div>' . "\r\t\t";
    } elseif ($cmsms_post_video_type == 'embedded' && $cmsms_post_video_link != '') {
        echo '<div class="cmsms_blog_media">' . "\n\t\t\t" . '<div class="resizable_block">' . "\n\t\t\t\t" . get_video_iframe($cmsms_post_video_link) . "\r\t\t\t" . '</div>' . "\r\t\t" . '</div>' . "\r\t\t";
    }
}
?>
		</header>
		<?php 
cmsms_heading(get_the_ID());
?>
		<footer class="entry-meta">
			<?php 
cmsms_meta();
cmsms_exc_cont();
cmsms_more(get_the_ID());
cmsms_tags(get_the_ID(), 'post', 'page');
?>
		</footer>
	</div>
</article>
<!--_________________________ Finish Video Article _________________________ -->

开发者ID:TheFactorsGroup,项目名称:SunkistVitamins,代码行数:29,代码来源:video.php

示例2: the_ID

}
?>

<!--_________________________ Start Slider Project _________________________ -->
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('format-slider');
?>
 data-category="<?php 
echo $pj_categs;
?>
">
<?php 
if (has_post_thumbnail() && $cmsms_project_featured_image_show == 'true') {
    echo '<div class="media_box">' . cmsms_thumb(get_the_ID(), $pj_img_size, true, false, true, false, true, false, false) . '</div>' . '<div class="project_rollover">' . '<div class="project_rollover_inner">';
    cmsms_heading(get_the_ID(), 'project', true, 'h5');
    cmsms_meta('project', 'page', get_the_ID(), 'pj-sort-categs', 'fullwidth');
    echo '</div>' . '</div>';
} else {
    echo '<div class="media_box">' . '<figure class="preloader">' . '<img src="' . get_template_directory_uri() . '/img/PFP-XL-gallery.jpg' . '" alt="' . cmsms_title(get_the_ID(), false) . '" title="' . cmsms_title(get_the_ID(), false) . '" class="fullwidth" />' . '</figure>' . '</div>' . '<div class="project_rollover">' . '<div class="project_rollover_inner">';
    cmsms_heading(get_the_ID(), 'project', true, 'h5');
    cmsms_meta('project', 'page', get_the_ID(), 'pj-sort-categs', 'fullwidth');
    echo '</div>' . '</div>';
}
?>
</article>
<!--_________________________ Finish Slider Project _________________________ -->

开发者ID:AlexanderBogdan,项目名称:poliplast,代码行数:29,代码来源:slider.php

示例3: the_ID

<!--_________________________ Start Link Article _________________________ -->
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
		<?php 
cmsms_post_date('post', 'post');
?>
		<div class="ovh">
			<?php 
cmsms_heading_nolink(get_the_ID(), 'post', true) . "\n";
cmsms_meta('post', 'post');
if (!post_password_required()) {
    cmsms_comments('post');
}
?>
		</div>
	</header>
	<div class="cmsms_wrapper_content">
		<span class="cmsms_post_format_img"></span>
		<?php 
if (!post_password_required()) {
    echo '<h3 class="entry-title">' . '<a href="' . $cmsms_post_link_address . '" target="_blank">' . $cmsms_post_link_text . '</a>' . '</h3>' . "\n\t" . '<h6>- ' . $cmsms_post_link_address . ' -</h6>' . "\n";
} else {
    echo '<h3 class="entry-title">' . $cmsms_post_link_text . '</h3>';
}
?>
开发者ID:TheFactorsGroup,项目名称:SunkistVitamins,代码行数:31,代码来源:link.php

示例4: widget

 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? __('Popular Projects', 'cmsmasters') : $instance['title'], $instance, $this->id_base);
     $type = isset($instance['type']) ? $instance['type'] : '';
     $number = isset($instance['number']) ? (int) $instance['number'] : '';
     $widget_width = isset($instance['widget_width']) ? $instance['widget_width'] : 'one_first';
     if (empty($instance['number']) || !($number = absint($instance['number']))) {
         $number = 3;
     } elseif ($number < 1) {
         $number = 1;
     } elseif ($number > 15) {
         $number = 15;
     }
     $queryArgs = array('posts_per_page' => $number, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'post_type' => 'project', 'order' => 'DESC', 'orderby' => 'meta_value', 'meta_key' => 'cmsms_likes');
     if ($type != '') {
         $queryArgs['tax_query'] = array(array('taxonomy' => 'pj-categs', 'field' => 'slug', 'terms' => array($type)));
     }
     $pp = new WP_Query($queryArgs);
     if ($pp->have_posts()) {
         echo '<div class="' . $widget_width . '">' . $before_widget . '<script type="text/javascript">' . 'jQuery(document).ready(function () { ' . "jQuery('#" . $args['widget_id'] . " .widget_custom_projects_entries_slides').cmsmsResponsiveContentSlider( { " . "sliderWidth : '100%', " . "sliderHeight : 'auto', " . 'animationSpeed : 500, ' . "animationEffect : 'slide', " . "animationEasing : 'easeInOutExpo', " . 'pauseTime : 7000, ' . 'activeSlide : 1, ' . 'touchControls : true, ' . 'pauseOnHover : false, ' . 'arrowNavigation : true, ' . 'slidesNavigation : false, ' . 'afterSliderLoad : function () { ' . 'if ( ' . "jQuery('#bottom a.sidebar_button_inner').hasClass('active') && " . "jQuery('#bottom').height() !== 0 " . ') { ' . "jQuery(window).trigger('resize');" . '} ' . '}, ' . 'afterSlideChange : function () { ' . 'if ( ' . "jQuery('#bottom a.sidebar_button_inner').hasClass('active') && " . "jQuery('#bottom').height() !== 0 " . ') { ' . "jQuery(window).trigger('resize');" . '} ' . '} ' . '} ); ' . '} ); ' . '</script>' . '<div class="widget_custom_projects_entries_container">';
         if ($title) {
             echo $before_title . $title . $after_title;
         }
         echo '<ul class="widget_custom_projects_entries_slides responsiveContentSlider">';
         while ($pp->have_posts()) {
             $pp->the_post();
             $pj_format = get_post_meta(get_the_ID(), 'pt_format', true);
             $img_number_list = explode(',', str_replace(' ', '', str_replace('img_', '', get_post_meta(get_the_ID(), 'cmsms_project_images', true))));
             echo '<li>' . '<div class="cmsms_latest_wrap">';
             if ($pj_format == 'video') {
                 echo '<figure>' . '<img src="' . get_template_directory_uri() . '/img/PF-XL-video.jpg' . '" alt="' . cmsms_title(get_the_ID(), false) . '" title="' . cmsms_title(get_the_ID(), false) . '" class="fullwidth" />' . '</figure>';
             } else {
                 if (has_post_thumbnail()) {
                     echo '<figure>' . get_the_post_thumbnail(get_the_ID(), 'latest-thumb', array('class' => 'fullwidth', 'alt' => cmsms_title(get_the_ID(), false), 'title' => cmsms_title(get_the_ID(), false), 'style' => 'width:100%; height:auto;')) . '</figure>';
                 } elseif (sizeof($img_number_list) > 0) {
                     echo '<figure>' . wp_get_attachment_image($img_number_list[0], 'latest-thumb', false, array('class' => 'fullwidth', 'alt' => cmsms_title(get_the_ID(), false), 'title' => cmsms_title(get_the_ID(), false), 'style' => 'width:100%; height:auto;')) . '</figure>';
                 } else {
                     echo '<figure>' . '<img src="' . get_template_directory_uri() . '/img/PF-XL-gallery.jpg' . '" alt="' . cmsms_title(get_the_ID(), false) . '" title="' . cmsms_title(get_the_ID(), false) . '" class="fullwidth" />' . '</figure>';
                 }
             }
             echo '<div class="cmsms_latest_rollover">' . '<div class="cmsms-meta">' . '<div>' . '<header class="entry-header">' . '<h6 class="project_title">' . '<a href="' . get_permalink() . '" title="' . cmsms_title(get_the_ID(), false) . '">' . cmsms_title(get_the_ID(), false) . '</a>' . '</h6>' . '</header>';
             cmsms_meta('project', 'page', get_the_ID(), 'pj-sort-categs', 'fullwidth');
             echo '</div>' . '</div>' . '<div class="entry-content">';
             theme_excerpt(20);
             echo '</div>' . '</div>' . '</div>' . '</li>';
         }
         echo '</ul>' . '</div>' . $after_widget . '</div>';
     }
     wp_reset_postdata();
     wp_reset_query();
 }
开发者ID:AlexanderBogdan,项目名称:poliplast,代码行数:52,代码来源:widgets.php


注:本文中的cmsms_meta函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。