本文整理汇总了PHP中gabfire_media函数的典型用法代码示例。如果您正苦于以下问题:PHP gabfire_media函数的具体用法?PHP gabfire_media怎么用?PHP gabfire_media使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gabfire_media函数的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: the_tags
</span>
<?php
the_tags('<span class="hidden-xs"><i class="fa fa-tags"></i>', ', ', ' </span>');
?>
<span class="hidden-md hidden-sm"><i class="fa fa-folder-o"></i><?php
the_category(', ');
?>
</span>
<?php
edit_post_link('Edit', '<span><i class="fa fa-pencil-square-o"></i>', '</span>');
?>
</p>
<?php
gabfire_media(array('name' => 'post-sidebar', 'imgtag' => 1, 'link' => 1, 'enable_video' => 1, 'video_id' => 'postfull', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 700, 'media_height' => 380, 'thumb_align' => 'aligncenter', 'enable_default' => 0));
?>
<p><?php
echo string_limit_words(get_the_excerpt(), 30);
?>
…</p>
</article>
<?php
if ($count % 3 == 0) {
echo '<div class="clearfix"></div>';
}
?>
<?php
$count++;
开发者ID:wpmonty,项目名称:99-demos,代码行数:31,代码来源:loop-3col.php
示例2: gabfire_media
<?php
}
} else {
}
?>
<div class="clearfix"></div>
<a class="btn btn-green btn-space mt30">Contact Us</a>
</div><!-- col-md-6 -->
<div class="col-md-6">
<?php
gabfire_media(array('name' => 'large', 'imgtag' => 1, 'link' => 0, 'enable_thumb' => 1, 'enable_video' => 0, 'resize_type' => 'c', 'media_width' => 600, 'media_height' => 400, 'thumb_align' => 'top', 'enable_default' => 0));
?>
</div>
</div>
</section><!-- container -->
</div>
<section id="services-points">
<div class="container">
<div class="row">
<div class="col-md-12 mb mt">
<div class="row">
<div class="col-md-6 col-sm-6 mt">
开发者ID:wpmonty,项目名称:99-demos,代码行数:30,代码来源:tpl-services-single.php
示例3: gabfire_media
<article class="featuredpost">
<?php
global $count, $rgb, $catname, $catid;
if ($count == 1) {
?>
<div class="subnews-first">
<?php
gabfire_media(array('name' => 'th-block10', 'imgtag' => 1, 'link' => 1, 'enable_video' => 1, 'video_id' => 'featured', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 263, 'media_height' => 137, 'thumb_align' => 'alignnone', 'enable_default' => 0));
?>
<a class="subnews-catname" style="background-color: rgb(<?php
echo $rgb;
?>
);background-color: rgba(<?php
echo $rgb;
?>
, 0.8);" href="<?php
echo get_category_link($catid);
?>
">
<?php
echo $catname;
?>
<i class="fa fa-angle-double-right"></i>
</a>
</div>
<?php
}
开发者ID:wpmonty,项目名称:sharp-light,代码行数:31,代码来源:primarybottom-4col.php
示例4: get_the_author_meta
<?php
$authorid = get_the_author_meta('ID');
$authorlink = get_author_posts_url($authorid);
?>
<article <?php
post_class('mag_latest archive-card');
?>
itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
<div class="mag_latest_media">
<?php
gabfire_media(array('name' => 'moderate', 'imgtag' => 1, 'link' => 1, 'enable_video' => 0, 'video_id' => 'postfull', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 450, 'media_height' => 300, 'thumb_align' => 'postmedia', 'enable_default' => 0));
if ($conavatars == 1) {
echo '<a href="' . $authorlink . '">' . get_avatar($authorid, 50) . '</a>';
}
?>
</div>
<div class="arc_maglatest_desc">
<?php
gabfire_postmeta(true, true, false, false, false, false, false);
?>
<h2 class="entry-title" itemprop="headline">
<a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
开发者ID:wpmonty,项目名称:skinny,代码行数:31,代码来源:archive-card.php
示例5: post_class
if ($count == 8 or $count == 9) {
?>
<?php
if ($count == 8) {
$postclass = 'entry pull-left';
} else {
$postclass = 'entry pull-right';
}
?>
<article <?php
post_class($postclass);
?>
>
<?php
gabfire_media(array('name' => 'th-mag2', 'imgtag' => 1, 'link' => 1, 'enable_video' => 0, 'video_id' => 'postfull', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 265, 'media_height' => 155, 'thumb_align' => 'aligncenter hidden-sm', 'enable_default' => 0));
?>
<h2 class="entry-title s_posttitle">
<a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
?>
" ><?php
the_title();
?>
</a>
</h2>
<p><?php
开发者ID:wpmonty,项目名称:sharp-light,代码行数:31,代码来源:archive-magazine.php
示例6: gabfire_singlepostmedia
function gabfire_singlepostmedia()
{
global $wp_query;
$postid = $wp_query->post->ID;
$disable_feaimage = get_post_meta($postid, 'post_feaimage', true);
$post_layout = get_post_meta($postid, 'gabfire_post_template', true);
if ($post_layout == 'fullwidth' or is_page_template('tpl-fullwidth.php')) {
$name = 'postthumbnail-big';
$media_width = 1140;
$media_height = 550;
} else {
$name = 'postthumbnail';
$media_width = 750;
$media_height = 500;
}
if (get_option('sharp_autoimage') == 1) {
if ($disable_feaimage == 'true') {
$enableimage = 0;
} else {
$enableimage = 1;
}
} else {
$enableimage = 0;
}
gabfire_media(array('name' => $name, 'imgtag' => 1, 'link' => 0, 'enable_video' => 1, 'enable_thumb' => $enableimage, 'resize_type' => 'w', 'media_width' => $media_width, 'media_height' => $media_height, 'thumb_align' => 'aligncenter', 'enable_default' => 0));
}
开发者ID:wpmonty,项目名称:skinny,代码行数:26,代码来源:theme-functions.php
示例7: wp_get_attachment_image_src
<!-- featured image object -->
<?php
$image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'single-post-thumbnail');
?>
<div class="col-md-3 col-sm-3 col-xs-6 mb<?php
if ($count % 4 == 0) {
echo " lastonrow";
}
?>
">
<div class="portfolio_view">
<?php
gabfire_media(array('name' => 'portfolio1', 'imgtag' => 1, 'link' => 0, 'enable_thumb' => 1, 'enable_video' => 0, 'resize_type' => 'c', 'media_width' => 263, 'media_height' => 176, 'thumb_align' => 'top', 'enable_default' => 0));
?>
<h3 class="hidden-lg small-caption">
<a href="<?php
echo $image[0];
?>
" ><?php
_e($client_name, 'gabfire');
?>
</a>
</h3>
<div class="portfolio_mask visible-lg">
<h2>
<a data-toggle="modal" data-target="<?php
开发者ID:wpmonty,项目名称:99-demos,代码行数:30,代码来源:z-section-portfolio-grid.php
示例8: the_tags
</span>
<?php
the_tags('<span class="hidden-xs"><i class="fa fa-tags"></i>', ', ', ' </span>');
?>
<span><i class="fa fa-folder-o"></i><?php
the_category(', ');
?>
</span>
<?php
edit_post_link('Edit', '<span><i class="fa fa-pencil-square-o"></i>', '</span>');
?>
</p>
<?php
gabfire_media(array('name' => 'z-post', 'imgtag' => 1, 'link' => 1, 'enable_video' => 1, 'catch_image' => of_get_option('of_catch_img', 0), 'video_id' => 'z-archive', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 700, 'media_height' => 350, 'thumb_align' => 'aligncenter full-media nomargin pb20', 'enable_default' => 0));
the_excerpt();
?>
</article>
<?php
}
} else {
}
?>
<?php
gabfire_archivepagination();
?>
<div class="clearfix"></div>
开发者ID:wpmonty,项目名称:99-demos,代码行数:31,代码来源:loop-default.php
示例9: gabfire_media
<article class="item">
<?php
gabfire_media(array('name' => 'postthumbnail', 'imgtag' => 1, 'link' => 1, 'enable_video' => 1, 'video_id' => 'featured', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 750, 'media_height' => 410, 'thumb_align' => 'alignnone featured-img', 'enable_default' => 0));
?>
<div class="featured-caption">
<h2 class="entry-title">
<a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
?>
" >
<?php
the_title();
?>
</a>
<?php
$location = get_post_meta($post->ID, 'location', true);
if ($location != '') {
echo "<span>{$location}</span>";
}
?>
</h2>
</div>
</article>
开发者ID:wpmonty,项目名称:sharp-light,代码行数:28,代码来源:featured-slider-default.php
示例10: while
$gab_query->query($args);
while ($gab_query->have_posts()) {
$gab_query->the_post();
?>
<!-- HOW IT WORKS - ITEM 1 -->
<div data-animation="fadeIn" class="col-md-2 col-sm-6 fadeIn animated done-animation">
<div class="hiw-item <?php
if ($count % 2 == 0) {
echo 'even';
}
?>
">
<?php
gabfire_media(array('name' => 'homeblog', 'imgtag' => 1, 'link' => 1, 'enable_video' => 1, 'catch_image' => of_get_option('of_catch_img', 0), 'video_id' => 'block1', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 400, 'media_height' => 300, 'thumb_align' => 'aligncenter hiw-item-picture img-responsive', 'enable_default' => 0));
?>
<!-- <img alt="" src="images/contents/hiw-item-1.jpg" class="hiw-item-picture"> -->
<div class="hiw-item-text">
<span class="hiw-item-icon"><?php
echo get_avatar(40);
?>
</span>
<h4 class="hiw-item-title">
<a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
?>
开发者ID:wpmonty,项目名称:99-demos,代码行数:31,代码来源:z-section-homeblogposts-flush.php
示例11: get_post_meta
$enable_link = 1;
$class = 'member' . $count;
}
$position = get_post_meta($post->ID, 'position', true);
$facebook = get_post_meta($post->ID, 'facebook', true);
$twitter = get_post_meta($post->ID, 'twitter', true);
$linkedin = get_post_meta($post->ID, 'linkedin', true);
?>
<figure itemprop="colleague" class="<?php
echo $class;
?>
">
<?php
gabfire_media(array('name' => 'small-figure', 'imgtag' => 1, 'link' => $enable_link, 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 70, 'media_height' => 66, 'thumb_align' => 'alignleft img-thumbnail', 'enable_default' => 0));
?>
<?php
if ($enable_link == 1) {
?>
<h2 class="entry-title"><a itemprop="name" href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></h2>
<?php
} else {
?>
<h2 class="entry-title" itemprop="name"><?php
开发者ID:wpmonty,项目名称:99-demos,代码行数:31,代码来源:single-member.php
示例12: printf
?>
" rel="bookmark" title="<?php
printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
?>
" ><?php
the_title();
?>
</a>
</h2>
<?php
gabfire_postmeta(true, true, true, true, false, false, true);
?>
<?php
gabfire_media(array('name' => 'th-loopdefault', 'imgtag' => 1, 'link' => 0, 'enable_video' => 1, 'video_id' => 'postfull', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 750, 'media_height' => 350, 'thumb_align' => 'aligncenter full-media nomargin', 'enable_default' => 0));
the_excerpt();
?>
</article>
<?php
}
} else {
?>
<article class="entry">
<h2 class="posttitle"><?php
_e('Nothing Found', 'gabfire');
?>
</h1>
<p class="single_postmeta">
开发者ID:wpmonty,项目名称:sharp-light,代码行数:31,代码来源:loop-default.php
示例13: WP_Query
$gab_query = new WP_Query();
$gab_query->query($args);
while ($gab_query->have_posts()) {
$gab_query->the_post();
$bouncer = $count % 3;
?>
<div class="col-md-4 <?php
if (!$bouncer) {
echo 'clearleft';
}
?>
item">
<article>
<?php
gabfire_media(array('name' => 'z-post', 'imgtag' => 1, 'link' => 1, 'enable_video' => 1, 'catch_image' => of_get_option('of_catch_img', 0), 'video_id' => 'block1', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 350, 'media_height' => 175, 'thumb_align' => 'aligncenter featured-media img-responsive', 'enable_default' => 0));
?>
<!--
<div class="date">
<h4><bold>13</bold></h4>
<h4>Sep</h4>
</div>
-->
<h4 class="mt20 mb10">
<a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
开发者ID:wpmonty,项目名称:99-demos,代码行数:31,代码来源:z-section-homeblogposts.php
示例14: get_option
</a>
</div>
<?php
} else {
?>
<div class="pull-right smaller-post">
<p class="smaller-post-cap">
<?php
if (get_option('sharp_cap2a') != "") {
echo get_option('sharp_cap2a');
}
?>
</p>
<?php
gabfire_media(array('name' => 'th-block2', 'imgtag' => 1, 'link' => 1, 'enable_video' => 0, 'video_id' => 'featured', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 150, 'media_height' => 103, 'thumb_align' => 'aligncenter', 'enable_default' => 0));
?>
<h2 class="entry-title">
<a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
?>
" >
<?php
the_title();
?>
</a>
</h2>
开发者ID:wpmonty,项目名称:sharp-light,代码行数:31,代码来源:primarytop-left-firstrow.php
示例15: post_class
?>
</span></p>
<?php
}
?>
<?php
} else {
?>
<article <?php
post_class($postclass);
?>
>
<?php
gabfire_media(array('name' => 'th-loopgrid-2', 'imgtag' => 1, 'link' => 1, 'enable_video' => 1, 'video_id' => 'postfull', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 351, 'media_height' => 217, 'thumb_align' => 'aligncenter', 'enable_default' => 0));
?>
<h2 class="entry-title">
<a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
?>
" ><?php
the_title();
?>
</a>
</h2>
开发者ID:wpmonty,项目名称:sharp-light,代码行数:30,代码来源:loop-media.php
示例16: array
?>
</h3>
<?php
global $post;
$postid_sub = $post->ID;
$count = 1;
$args = array('post_type' => 'portfolio', 'post__not_in' => array($postid_sub), 'posts_per_page' => 6);
$gab_query = new WP_Query();
$gab_query->query($args);
while ($gab_query->have_posts()) {
$gab_query->the_post();
?>
<div class="portfolio_view sidebar_portfolio_view">
<?php
gabfire_media(array('name' => 'th-entry', 'imgtag' => 1, 'link' => 0, 'enable_video' => 0, 'video_id' => 'postfull', 'enable_thumb' => 1, 'resize_type' => 'c', 'media_width' => 253, 'media_height' => 157, 'thumb_align' => '', 'enable_default' => 0));
?>
<h3 class="hidden-lg small-caption"><a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
?>
" ><?php
the_title();
?>
</a></h3>
<div class="portfolio_mask visible-lg">
<h2><a href="<?php
the_permalink();
开发者ID:wpmonty,项目名称:99-demos,代码行数:31,代码来源:sidebar-portfolios.php
注:本文中的gabfire_media函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论