本文整理汇总了PHP中yit_work_get函数的典型用法代码示例。如果您正苦于以下问题:PHP yit_work_get函数的具体用法?PHP yit_work_get怎么用?PHP yit_work_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了yit_work_get函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: yit_work_the
<h1><?php
yit_work_the('title');
?>
</h1>
<?php
yit_work_the('content');
?>
</div>
<?php
if ($skills && $skills_label || $year || $customer || $terms_plain) {
?>
<div class="work-skillsdate span4">
<h4><?php
echo yit_work_get('project-label');
?>
</h4>
<?php
if (!empty($skills) && !empty($skills_label)) {
?>
<p class="categories paragraph-links"><span class="meta-label"><?php
echo $skills_label;
?>
:</span> <?php
echo $skills;
?>
</p><?php
}
?>
<?php
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:markup.php
示例2: yit_portfolio_pagination
</li>
<?php
if ($i++ % 4 == 0) {
echo '<hr />';
}
}
?>
<hr />
</ul>
<?php
yit_portfolio_pagination();
?>
</div>
<?php
if (yit_work_get('open_slide')) {
?>
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function($){
function isMobile() {
return navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || ( navigator.userAgent.match(/Android/i) && navigator.userAgent.match(/Mobile/i) );
}
if( !isMobile() ) {
$('.open_slide').live('click', function(e){
e.preventDefault();
var li_parent = $(this).parents('li');
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:markup.php
示例3: yit_work_get
<?php
/**
* @package WordPress
* @subpackage Your Inspiration Themes
*/
$thumbs = '';
$portfolio_type = yit_work_get('portfolio_type');
$item_selected = null;
?>
<script>
jQuery(document).ready(function($){
$('.sidebar').remove();
if( !$('#primary').hasClass('sidebar-no') ) {
$('#primary').removeClass().addClass('sidebar-no');
$('.content').removeClass('span9').addClass('span12');
}
});
</script>
<?php
if (yit_have_works()) {
yit_get_template('portfolios/full-description/loop.php');
}
?>
<div class="clear"></div>
开发者ID:jayeshnair,项目名称:ctp,代码行数:30,代码来源:markup.php
示例4: yit_work_get
$terms = yit_work_get('terms');
$terms_plain = "";
$post_permalink = yit_work_permalink( $image_id );
if( $terms ) {
foreach( $terms as $term ) {
$terms_plain .= $categories[$term] . ',';
}
$terms_plain = substr($terms_plain, 0, strlen( $terms_plain ) - 1);
}
?>
<li data-pile="<?php echo $terms_plain ?>">
<a href="<?php if($lightbox): echo $image_url ?>" rel="fancy_lightbox"<?php else: echo $post_permalink; ?>" class="nolightbox"<?php endif ?> title="<?php echo yit_work_get('title') ?>">
<span class="tp-info"><span><?php echo yit_work_get('title') ?></span></span>
<?php echo wp_get_attachment_image( $image_id, 'thumb_portfolio_fancy' ); ?>
</a>
</li>
<?php endwhile ?>
</ul>
</div>
</div>
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function($){
var lightbox = <?php echo $lightbox ? 1 : 0; ?>;
if( $( '#footer' ).length > 0 )
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:markup.php
示例5: yit_the_terms
/**
* Get list of terms
*
* @return array
*
* @since 1.0
*/
function yit_the_terms($sep = ',')
{
$terms = yit_work_get('terms');
if (empty($terms)) {
$vars = yit_portfolio_query_vars();
if (!empty($vars->item['terms'])) {
$terms = $vars->item['terms'];
} else {
return;
}
}
$categories = yit_work_get('categories');
foreach ($terms as $i => $term) {
$terms[$i] = '<a href="' . yit_term_link($term) . '">' . $categories[$term] . '</a>';
}
echo implode("{$sep} ", $terms);
}
开发者ID:jayeshnair,项目名称:ctp,代码行数:24,代码来源:Portfolio.php
示例6: yit_work_the
<div class="work-description">
<?php
if ($show_title == "1" || $show_title == 'yes') {
?>
<h4><a href="<?php
echo $post_permalink;
?>
"><?php
yit_work_the('title');
?>
</a></h4><?php
}
?>
<?php
if ($show_excerpt == "1" || $show_excerpt == 'yes') {
echo yit_content(yit_work_get('content'), $excerpt_length, '', '[...]');
}
?>
</div>
</div>
<?php
}
?>
<?php
if ($i == $items) {
break;
}
?>
<?php
}
?>
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:31,代码来源:section-portfolio.php
示例7: yit_work_get
if ($lightbox) {
echo $image_url;
?>
" rel="fancy_lightbox"<?php
} else {
echo $post_permalink;
?>
" class="nolightbox"<?php
}
?>
title="<?php
echo yit_work_get('title');
?>
">
<span class="tp-info"><span><?php
echo yit_work_get('title');
?>
</span></span>
<?php
echo wp_get_attachment_image($image_id, 'thumb_portfolio_fancy');
?>
</a>
</li>
<?php
}
?>
</ul>
</div>
</div>
开发者ID:zgomotos,项目名称:Bazar,代码行数:29,代码来源:markup.php
示例8: array
</div>
<!-- portfolio thumbnails -->
<div class="work-projects span3">
<div class="row">
<h2><?php echo $thumbs_title; ?></h2>
<ul>
<?php $works = array(); ?>
<?php while ( yit_have_works() ) : ?>
<?php
$image_id = yit_work_get( 'item_id' );
$works[$image_id] = yit_get_model('portfolio')->_current_item;
$works[$image_id]['categories'] = yit_work_get('categories');
$works[$image_id]['post_permalink'] = yit_work_permalink( $image_id );
$works[$image_id]['thumbs_title'] = yit_work_get( 'thumbs_title' );
$works[$image_id]['project_description_title'] = yit_work_get( 'project_description_title' );
?>
<li class="span1">
<a href="<?php echo $works[$image_id]['post_permalink'] ?>" data-item="<?php echo $image_id ?>">
<?php yit_image( "id=$image_id&size=thumb_small_portfolio_thumbs" );//echo wp_get_attachment_image( $image_id, 'thumb_small_portfolio_thumbs' ); ?>
</a>
</li>
<?php endwhile ?>
</ul>
</div>
</div>
<!-- portfolio content -->
<div class="work-content-wrapper span4">
<h2><?php echo $project_description_title; ?></h2>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:markup.php
示例9: yit_work_get
$video_url = 'http://www.youtube.com/embed/' . $video_id . '?width=640&height=480&iframe=true';
} else {
if ($video_type == 'vimeo') {
$video_url = 'http://player.vimeo.com/video/' . $video_id;
}
}
$thumb = $video_url;
//$class = 'video';
} else {
$thumb = $image_url;
//$class = 'img';
}
$both = 0;
$lightbox = yit_work_get('event_lightbox');
$details = yit_work_get('event_details');
$title = yit_work_get('event_title');
if ($lightbox && $details) {
$both = 1;
$class = $video_url ? 'video' : 'img';
} elseif ($lightbox) {
$class = $video_url ? 'video' : 'img';
} elseif ($details) {
$class = 'project';
} elseif ($title) {
$class = 'onlytitle';
}
?>
<div class="related_img">
<div class="picture_overlay">
<?php
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:loop.php
示例10: array
<div class="content"></div>
<div class="work-meta"></div>
</div>
<div class="clear"></div>
<!-- portfolio thumbnails -->
<div class="work-projects span<?php echo $sidebar_layout != 'sidebar-no' ? '9' : '12' ?>">
<div class="row">
<ul>
<?php $works = array(); ?>
<?php while ( yit_have_works() ) : ?>
<?php
$image_id = yit_work_get( 'item_id' );
$works[$image_id] = yit_get_model('portfolio')->_current_item;
$works[$image_id]['categories'] = yit_work_get('categories');
$works[$image_id]['post_permalink'] = yit_work_permalink( $image_id );
?>
<li class="span<?php echo $sidebar_layout != 'sidebar-no' ? '1' : '2' ?>">
<a href="<?php echo $works[$image_id]['post_permalink'] ?>" data-item="<?php echo $image_id ?>" class="img">
<?php echo wp_get_attachment_image( $image_id, 'section_portfolio_thumb' ); ?>
</a>
</li>
<?php endwhile ?>
</ul>
<div class="clear"></div>
</div>
<div class="nav">
<a class="prev" href="#"></a>
<a class="next" href="#"></a>
</div>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:section-portfolio.php
示例11: wp_get_attachment_image
?>
<div class="<?php
if (++$i % 6 == 0) {
?>
related_project_last <?php
}
?>
related_project">
<a class="related_proj related_img" href="<?php
echo $post_permalink;
?>
" title="<?php
echo $title;
?>
"><?php
echo wp_get_attachment_image(yit_work_get('item_id'), 'thumb_portfolio_fulldesc_related');
?>
</a>
<h4><a href="<?php
echo $post_permalink;
?>
"><?php
echo $title;
?>
</a></h4>
</div>
<?php
}
?>
</div>
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:30,代码来源:markup.php
示例12: array
<?php
/**
* Pinterest Portfolio Section Style
*/
$i = $j = 0;
$portfolio_groups = array();
while (yit_have_works()) {
$portfolio_groups[$i][] = array('title' => yit_work_get('title'), 'terms' => yit_work_get('terms'), 'permalink' => yit_work_permalink(yit_work_get('item_id')), 'image_id' => yit_work_get('item_id'), 'image_url' => yit_work_get('image_url'), 'read_more_text' => yit_work_get('read_more_text'));
if (++$j % 2 == 0) {
$i++;
}
}
?>
<?php
foreach ($portfolio_groups as $k => $group) {
?>
<div class="section_portfolio_group span3 clearfix<?php
if ($k % 4 == 3) {
?>
last_group<?php
}
?>
">
<?php
foreach ($group as $index => $work) {
?>
<?php
$class = '';
if ($k % 2 == 0) {
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:pinterest.php
示例13: yit_work_the
<div class="ch-info-text<?php echo $title_class ?>">
<p class="title"><?php yit_work_the('title') ?></p>
<p class="subtitle"><?php yit_work_the('subtitle') ?></p>
</div>
<?php endif ?>
</div>
<?php endif ?>
</div>
</li>
<?php if( ($i++ % 4) == 0 ) echo '<hr />' ; endwhile ?>
<hr />
</ul>
<?php yit_portfolio_pagination() ?>
</div>
<?php if( yit_work_get('filter_active') ): ?>
<script type="text/javascript">
jQuery(document).ready(function($){
//filterable
var container = $('#portfolio');
container.find('hr').remove();
container.imagesLoaded( function(){
container.isotope({
itemSelector: 'li.filterable_item',
itemPositionDataEnabled: true
});
});
$('.filters li a').click(function(){
$('.filters li a').removeClass('active');
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:markup.php
示例14: yit_work_get
$video_url = 'http://www.youtube.com/embed/' . $video_id . '?width=640&height=480&iframe=true';
} else {
if ($video_type == 'vimeo') {
$video_url = 'http://player.vimeo.com/video/' . $video_id;
}
}
$thumb = $video_url;
//$class = 'video';
} else {
$thumb = $image_url;
//$class = 'img';
}
$both = 0;
$lightbox = yit_work_get('event_lightbox_other_projects');
$details = yit_work_get('event_details_other_projects');
$title = yit_work_get('event_title_other_projects');
if ($lightbox && $details) {
$both = 1;
$class = $video_url ? 'video' : 'img';
} elseif ($lightbox) {
$class = $video_url ? 'video' : 'img';
} elseif ($details) {
$class = 'project';
} elseif ($title) {
$class = 'onlytitle';
}
?>
<div class="related_img">
<div class="picture_overlay">
<?php
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:loop.php
示例15: yit_portfolio_pagination
</li>
<?php
if ($i++ % 4 == 0) {
echo '<hr />';
}
}
?>
<hr />
</ul>
<?php
yit_portfolio_pagination();
?>
</div>
<?php
if (yit_work_get('filter_active')) {
?>
<script type="text/javascript">
jQuery(document).ready(function($){
//filterable
var container = $('#portfolio');
container.find('hr').remove();
container.imagesLoaded( function(){
container.isotope({
itemSelector: 'li.filterable_item',
itemPositionDataEnabled: true
});
});
$('.filters li a').click(function(){
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:markup.php
示例16: yit_work_the
yit_work_the('title');
?>
</h2>
<?php
}
?>
<?php
if (yit_work_get('enable_categories') && yit_work_get('terms')) {
?>
<!-- categories -->
<span class="categories"><img src="<?php
echo get_template_directory_uri();
?>
/theme/templates/portfolios/pinterest/images/terms.png" alt="" /><?php
echo implode(', ', yit_work_get('terms'));
?>
</span>
<?php
}
?>
</div>
</div>
</div>
</div>
<?php
}
?>
<!-- <span class="detail"></span>-->
<a href="<?php
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:markup.php
示例17: yit_image
});
</script>
<?php else: ?>
<?php yit_image( "id=$image_id" );//echo wp_get_attachment_image( $image_id, 'full' ); ?>
<?php endif ?>
<?php endif ?>
</div>
<div class="work-description span8" style="float: <?php echo $image_position ?>">
<h1><?php yit_work_the( 'title' ) ?></h1>
<?php yit_work_the('content'); ?>
</div>
<?php if( ($skills && $skills_label) || $year || $customer || $terms_plain ): ?>
<div class="work-skillsdate span4">
<h4><?php echo yit_work_get('project-label'); ?></h4>
<?php if( ! empty( $skills ) && ! empty( $skills_label ) ): ?><p class="categories paragraph-links"><span class="meta-label"><?php echo $skills_label ?>:</span> <?php echo $skills ?></p><?php endif ?>
<?php if( ! empty( $customer ) ): ?><p class="customer"><span class="meta-label"><?php echo _e('Customer', 'yit') ?>:</span> <?php echo $customer; ?></p><?php endif ?>
<?php if( ! empty( $terms_plain ) ): ?><p class="categories"><span class="meta-label"><?php echo _e('Categories', 'yit') ?>:</span> <?php echo $terms_plain; ?></p><?php endif ?>
<?php if( ! empty( $website ) || ! empty( $website_url ) ): ?><p class="website"><span class="meta-label"><?php echo _e('URL', 'yit') ?>:</span> <a href="<?php echo esc_url( $website_url ) ?>"><?php echo empty( $website ) ? $website_url : $website; ?></a></p><?php endif ?>
<?php if( ! empty( $year ) ): ?><p class="workdate"><span class="meta-label"><?php echo _e('Date', 'yit') ?>:</span> <?php echo $year; ?></p><?php endif ?>
</div>
<?php endif ?>
<?php endif ?>
</div>
</div>
</div>
<?php endwhile ?>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:markup.php
示例18: yit_image
if ($count == 0) {
echo ' first';
}
?>
">
<div class="classic-thumbnail-wrap<?php
echo $show_lightbox_hover === 'yes' ? ' picture_overlay' : '';
?>
">
<span>
<a href="<?php
echo $work_permalink;
?>
" title="">
<?php
yit_image('id=' . yit_work_get('item_id') . '&class=zoom-image&size=sc_portfolio_3cols');
?>
</a>
<?php
if ($show_lightbox_hover === 'yes') {
?>
<div class="overlay">
<div>
<p>
<a href="<?php
echo $thumb;
?>
" title="" rel="lightbox" class="ch-info-lightbox<?php
if ($work_video_url) {
?>
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:classic.php
注:本文中的yit_work_get函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论