• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP yit_decode_title函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: widget

    function widget( $args, $instance ) {
        extract( $args );

        $title = apply_filters('widget_title', $instance['title'] );
        
        echo $before_widget;
		echo '<div class="border-1 border">';
		echo '<div class="border-2 border">';                   

        if ( $title ) echo $before_title . yit_decode_title( $title ) . $after_title;
        
        if( $instance['autop'] )
            $instance['text'] = wpautop( $instance['text'] );
        
		if( $instance['text'] ) echo $instance['text'];
		
        $text = '<div class="text-image" style="text-align:'. $instance['align'] .'">';
        if (isset($instance['image']) && $instance['image'] != '') :
            if( isset($instance['image_link']) && $instance['image_link'] != '' )
                { $text.= '<a href="' . $instance['image_link'] . '">'; }
                
        	$text .= '<img src="' . $instance['image'] . '" alt="' . $instance['title'] . '" />';
            
            if( isset($instance['image_link']) && $instance['image_link'] != '' )
                { $text.= '</a>'; }
		endif;
		$text .= '</div>';
		
		  
        
        if ( $instance['incipit'] ) $text .= '<h6>' . yit_decode_title( $instance['incipit'] ) . '</h6>';
		
		$hidden = yit_get_option( 'newsletter-hidden');
		$hidden_field = '';
		if ( isset ( $hidden ) && $hidden != '' ) :
			$options = explode('&', $hidden);
			foreach ($options as $o) :
				$temp = explode('=', $o);				
				$hidden_field .= '<input type="hidden" name="' . $temp[0] . '" value="' . $temp[1] . '" />';
			endforeach;
		endif;
        
		$text .= '                                 
    		<form action="' . yit_get_option( 'newsletter-action' ) . '" method="' . yit_get_option( 'newsletter-request' ) . '">
    			<div class="newsletter-call3 group">
	    			<!--<div class="newsletter-icon"><label for="email"></label></div>-->
	    			<div class="newsletter-input">
	    				<input type="text" class="email-field text-field autoclear" placeholder="'.$instance['email'].'" id="email" name="' . yit_get_option( 'newsletter-email-name' ) . '">
	    			</div>
	    		</div>
	    		<div class="newsletter-submit">' .
                $hidden_field . //Hidden Fields
                wp_nonce_field( 'mc_submit_signup_form', '_mc_submit_signup_form_nonce', false, false ) . //MailChimp Nonce 
                wp_nonce_field( 'mymail_form_nonce', '_wpnonce', false, false ) . //MyMail nonce
                '<input type="submit" class="submit-field" value="'.$instance['button'].'">
    			</div>
    		</form>
    	<div class="clear"></div>';
		
		echo apply_filters( 'widget_text', $text );
        echo "</div></div>" . $after_widget;
    }                     
开发者ID:simonsays88,项目名称:costa,代码行数:62,代码来源:cta.php


示例2: remove_action

 */
global $more;
remove_action('the_content_more_link', 'yit_simple_read_more_classes');
$sticky_shown = false;
$sidebar_layout = yit_get_sidebar_layout();
?>
<div class="row">
    <!-- START SECTION BLOG -->
    <div class="section blog margin-bottom span<?php 
echo $sidebar_layout == 'sidebar-no' ? 12 : 9;
?>
">
        <?php 
//Separated code for a better organization of the code
if (!empty($title)) {
    yit_string('<h2 class="title">', yit_decode_title($title), '</h2>');
}
if (!empty($description)) {
    yit_string('<p class="description">', $description, '</p>');
}
?>
            
        <div class="row">
            <?php 
//Sticky posts loop args
if ($show_featured == '1' || $show_featured == 'yes') {
    $args_sticky = array('post_type' => 'post', 'post__in' => get_option('sticky_posts'), 'posts_per_page' => 1);
    if (isset($category) && !empty($category)) {
        $args_sticky['category_name'] = $category;
    }
    $sticky = new WP_Query($args_sticky);
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:section-blog.php


示例3: elseif

                <?php
                endif;
            endif;

        elseif( is_search() ) :
            if( yit_get_option( 'show-title-searches' ) ) : ?>
                <<?php echo $tag_title ?>><?php echo apply_filters( 'yit_archive_search_title',   sprintf( yit_get_option( 'page-searches-title' ), yit_string( '<span>', get_search_query() , '</span>', false ) ) ) ?></<?php echo $tag_title ?>>
            <?php endif;


        elseif( isset( $_GET['paged'] ) && !empty( $_GET['paged'] ) ) : ?>
            <<?php echo $tag_title ?>><?php echo apply_filters( 'yit_archive_blog_title', __( 'Blog Archive', 'yit' ) ) ?></<?php echo $tag_title ?>>

        <?php

        else : ?>
            <<?php echo $tag_title ?>><?php echo yit_decode_title(get_the_title()) ?></<?php echo $tag_title ?>>
        <?php endif ?>
        </div>
    <?php endif; ?>

    <?php if ( $show_breadcrumb ) : ?>
        <!-- BREDCRUMB -->
        <div class="breadcrumbs">
        <?php yit_breadcrumb( apply_filters( 'yit_breadcrumb_delimiter', '|' ) ); ?>
        </div>
    <?php endif; ?>
    </div></div></div>
</div>
<!-- END PAGE META -->
<?php endif ?>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:page-meta.php


示例4: esc_url

					<a href="<?php 
echo esc_url($url);
?>
" class="bwWrapper"><?php 
echo $img && $img != 'http://' ? "<img src=\"{$img}\" alt=\"featured\" />" : '';
?>
</a>
				</div>
				<?php 
if ($show_title == "1" || $show_title == 'yes') {
    ?>
<h4><a href="<?php 
    echo esc_url($url);
    ?>
"><?php 
    echo yit_decode_title($title);
    ?>
</a></h4><?php 
}
?>
				<?php 
if ($show_content == "1" || $show_content == 'yes') {
    echo yit_addp($content);
}
?>
				
				<?php 
if ($show_services_button == "1" || $show_services_button == 'yes') {
    ?>
					<div class="read-more"><a href="<?php 
    echo esc_url($url);
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:box_service.php


示例5: wpautop

            <div class="row">
                <?php 
}
?>
                <div class="parallaxeos_animate  <?php 
echo $effect;
?>
 horizontal_<?php 
echo $halign;
?>
 vertical_<?php 
echo $valign;
?>
"
                    ><?php 
echo wpautop(yit_decode_title(do_shortcode($content)));
?>
                    <?php 
if ($video_button) {
    ?>
                        <div class="video-button">
                            <a href="<?php 
    echo esc_url($video_url);
    ?>
" class="btn btn-<?php 
    echo esc_attr($video_button_style);
    ?>
 large" rel="prettyPhoto"> <?php 
    echo $label_button_video;
    ?>
</a>
开发者ID:NgocSon2412,项目名称:website_banhang,代码行数:31,代码来源:parallax.php


示例6: __

if (get_the_title() == '') {
    $title = __('(this post does not have a title)', 'yit');
} else {
    $title = get_the_title();
}
?>
							
	                    <!-- post content -->
	                    <div class="the-content<?php 
if (is_single()) {
    echo ' single';
}
?>
 group">
	                        <?php 
yit_string("<h1 class=\"post-title\">", yit_decode_title($title), "</h1>");
?>
	                        <?php 
the_content();
?>
	                    </div>
		                
	                    <?php 
wp_link_pages();
?>
	                    
	                    <div class="clear"></div>
	                    
	                	<?php 
if (is_paged() && is_single()) {
    previous_post_link();
开发者ID:allyeastman,项目名称:studio-sapphire,代码行数:31,代码来源:service.php


示例7: yit_ajax_portfolio_thumbs

 /**
  * Return JSON well formatted portfolio work
  * 
  * @param array $work
  * @return string
  * @since 1.0.0
  */
 function yit_ajax_portfolio_thumbs()
 {
     $work = $_POST['work'];
     $type = $_POST['type'];
     //thumb
     $thumb_output = '';
     $lightbox = $_POST['overlay'];
     if (isset($work['video_url']) && $work['video_url']) {
         list($video_type, $video_id) = explode(':', yit_video_type_by_url($work['video_url']));
         if ($video_type == 'youtube') {
             $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_output = do_shortcode("[{$video_type} video_id=\"{$video_id}\" width=\"100%\" height=\"100%\"]");
     } elseif (!empty($work['extra-images'])) {
         $thumb_output = '<div class="extra-images-slider"><ul class="slides">';
         $thumb_size = $type == 'portfolio' ? 'thumb_medium_portfolio_thumbs' : 'section_portfolio';
         array_unshift($work['extra-images'], $work['item_id']);
         foreach ($work['extra-images'] as $image_id) {
             $thumb_output .= '<li><div class="picture_overlay">';
             $thumb_output .= yit_image("id={$image_id}&size={$thumb_size}", false);
             //wp_get_attachment_image( $image_id, $thumb_size );
             if ($lightbox) {
                 $thumb = yit_image("id={$image_id}&output=url", false);
                 $thumb_output .= '<div class="overlay"><div><p>';
                 $thumb_output .= '<a href="' . $thumb . '" rel="lightbox_thumbs"><img src="' . get_template_directory_uri() . '/images/icons/zoom.png" alt="' . __('Open Lightbox', 'yit') . '" /></a>';
                 $thumb_output .= '</p></div></div>';
             }
             $thumb_output .= '</div></li>';
         }
         $thumb_output .= '</ul></div>';
     } else {
         $thumb_size = $type == 'portfolio' ? 'thumb_medium_portfolio_thumbs' : 'section_portfolio';
         $thumb_output = '<div class="picture_overlay">';
         $thumb_output .= yit_image("id={$work['item_id']}&size={$thumb_size}", false);
         //wp_get_attachment_image( $work['item_id'], $thumb_size );
         if ($lightbox) {
             $thumb_output .= '<div class="overlay"><div><p>';
             $thumb_output .= '<a href="' . $work['image'] . '" rel="lightbox_thumbs"><img src="' . get_template_directory_uri() . '/images/icons/zoom.png" alt="' . __('Open Lightbox', 'yit') . '" /></a>';
             $thumb_output .= '</p></div></div>';
         }
         $thumb_output .= '</div>';
     }
     //content
     $thumb_content = '';
     if ($type != 'portfolio') {
         $thumb_content = '<h3 class="title">' . yit_decode_title($work['title']) . '</h3>';
         if (isset($work['subtitle']) && $work['subtitle']) {
             $thumb_content .= '<h4 class="subtitle">' . yit_decode_title($work['subtitle']) . '</h4>';
         }
     }
     $thumb_content .= yit_clean_text($work['text']);
     //meta
     $meta_content = '';
     $customer = $work['customer'];
     $skills = $work['skills'];
     $skills_label = empty($work['skills_label']) ? yit_string('<strong>', __('Skills: ', 'yit'), '</strong>', 0) : yit_string('<strong>', $work['skills_label'], '</strong>', 0) . ': ';
     $website = $work['website_name'] ? $work['website_name'] : $work['website_url'];
     $website_url = $work['website_url'];
     $year = $work['year'];
     $terms = isset($work['terms']) ? $work['terms'] : '';
     $meta_content = '<ul>';
     if ($terms) {
         $terms_plain = '';
         $categories = $work['categories'];
         foreach ($terms as $term) {
             $terms_plain .= $categories[$term] . ', ';
         }
         $terms_plain = substr($terms_plain, 0, strlen($terms_plain) - 2);
         $icon = '<span><img src="' . YIT_THEME_ASSETS_URL . '/images/categories.png" alt="categories" /></span>';
         $meta_content .= '<li class="categories">' . $icon . yit_string('<strong>', __('Categories: ', 'yit'), '</strong>', 0) . $terms_plain . '</li>';
     }
     if ($customer) {
         $icon = '<span><img src="' . YIT_THEME_ASSETS_URL . '/images/customer.png" alt="customer" /></span>';
         $meta_content .= '<li class="customer">' . $icon . yit_string('<strong>', __('Customer: ', 'yit'), '</strong>', 0) . $customer;
         if ($website_url) {
             $meta_content .= ' - <a href="' . $website_url . '">' . $website . '</a>';
         }
         $meta_content .= '</li>';
     }
     if ($skills) {
         $icon = '<span><img src="' . YIT_THEME_ASSETS_URL . '/images/project.png" alt="skills" /></span>';
         $meta_content .= '<li class="skills">' . $icon . $skills_label . $skills . '</li>';
     }
     if ($year) {
         $icon = '<span><img src="' . YIT_THEME_ASSETS_URL . '/images/year.png" alt="year" /></span>';
         $meta_content .= '<li class="year">' . $icon . yit_string('<strong>', __('Year: ', 'yit'), '</strong>', 0) . $year . '</li>';
     }
     echo json_encode(array('thumb' => $thumb_output, 'content' => $thumb_content, 'meta' => $meta_content, 'title' => yit_decode_title($work['title'])));
     die;
//.........这里部分代码省略.........
开发者ID:allyeastman,项目名称:studio-sapphire,代码行数:101,代码来源:functions-template.php


示例8: array

    $args = array(
        'post_type' => 'logo'    
    );
	
	$args['posts_per_page'] = (!is_null( $items )) ? $items : -1;
    
    $tests = new WP_Query( $args );  
    
    $html = '';
    if( !$tests->have_posts() ) return $html;
    
?>

<div class="margin-bottom">
    <div class="logos-slider wrapper">
        <h2><?php echo yit_decode_title($title); ?></h2>
        <div class="list_carousel">
            <ul class="logos-slides">
            
                <?php 
                    wp_enqueue_script( 'caroufredsel' );
                    wp_enqueue_script( 'touch-swipe' );
                    wp_enqueue_script( 'mousewheel' );
                    wp_enqueue_script( 'black-and-white' );
                    
                    while( $tests->have_posts() ) : $tests->the_post();
                        $logo_title = the_title( '<strong><a href="' . get_permalink() . '" class="name">', '</a></strong>', false );
                        $logo_link = yit_get_post_meta( get_the_ID(), '_site-link' );
                ?>
                    <li style="height: <?php echo $height; ?>px;">
                        <?php
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:logos_slider.php


示例9: wp_enqueue_script

			</script>
			
		
		<?php 
    } else {
        ?>
			<?php 
        wp_enqueue_script('caroufredsel');
        wp_enqueue_script('touch-swipe');
        wp_enqueue_script('mousewheel');
        wp_enqueue_script('jquery-yit_portfolio_thumbs', 'js/jquery.yit_portfolio_thumbs.js');
        ?>
            <?php 
        if (!empty($title)) {
            yit_string('<h2 class="title section-portfolio-title">', yit_decode_title($title), '</h2>');
        }
        ?>
			<?php 
        if (!empty($description)) {
            yit_string('<p class="description">', $description, '</p>');
        }
        ?>
			<div class="portfolio-projects section-portfolio-classic margin-bottom row">
				<!-- portfolio image/slider -->
				<div class="work-thumbnail span<?php 
        echo $sidebar_layout != 'sidebar-no' ? '5' : '7';
        ?>
">
					<div class="work-loading"><img class="work-loading" src="<?php 
        echo YIT_THEME_TEMPLATES_URL . '/portfolios/thumbs/images/loading_660.gif';
开发者ID:zgomotos,项目名称:Bazar,代码行数:30,代码来源:section-portfolio.php


示例10: array

				<!-- END SLIDE -->
				<?php endif; ?>

				<!-- START SLIDE -->
				<div class="swiper-slide swiper-slide-<?php echo $size ?>" style="<?php echo $height_inline; ?>">
					<div class="slide-inner">

			<?php endif; ?>

						<div class="slide-wrapper">
							<?php $slider->the( 'featured-content', array(
								'container' => false
							)); ?>
							<div class="slide-text<?php echo 'yes' == $slider->get('border-text') ? ' border' : ''; ?> <?php $slider->the('position-text'); ?>">
								<h4><?php echo yit_decode_title( $slider->get('small-text') ); ?></h4>
								<h3><?php echo yit_decode_title( $slider->get('big-text') );   ?></h3>
							</div>
							<?php if ( '' != $slider->get('link') ) : ?><a href="<?php $slider->the('link') ?>" class="slide-link"></a><?php endif; ?>
						</div>

				<?php $prev_size = $prev_size == 'small' ? '' : $size; ?>

			<?php endwhile; ?>

					</div>
				</div>
				<!-- END SLIDE -->

        </div>

        <?php if ( 'yes' == $controlnav ) : ?>
开发者ID:jabue,项目名称:wordpress,代码行数:31,代码来源:markup.php


示例11: yit_decode_title

                        echo $title_color;
                        ?>
"><?php 
                        echo yit_decode_title(yit_slide_get('title'));
                        ?>
</h2></div><?php 
                    }
                    ?>
                                                <?php 
                    if (yit_slide_get('content')) {
                        ?>
<div class="slide-content" style="color:<?php 
                        echo $content_color;
                        ?>
"><?php 
                        echo yit_decode_title(yit_slide_get('content'));
                        ?>
</div><?php 
                    }
                    ?>
                                            </div>
                                        <?php 
                }
                ?>
                                    </div>
                                </div>
                              </li>
                          <?php 
            } else {
                ?>
                              <li>
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:31,代码来源:slider.php


示例12: substr

<?php
	if (isset($number) && $number != ''):
		if ( strlen($number) == 1 ) :
			$left = 'zero';
			$right = substr($number, 0, 1);
		else :
			$left = substr($number, 0, 1);
			$left = ($left == 0) ? 'zero' : $left;
			$right = substr($number, 1, 1);
			$right = ($right == 0) ? 'zero' : $right;
		endif;
	else :
		$left = $right = 'zero';
	endif;
	
	$last_class = (isset($last) && strcmp($last, 'yes') == 0) ? ' last' : '';
?>

<div class="box-sections numbers-sections margin-bottom <?php echo $last_class ?>">
	<div class="number number-left number-<?php echo $left ?>"></div>
	<div class="number number-right number-<?php echo $right ?>"></div>
	<?php if( !empty( $title ) ) yit_string( '<h4>', yit_decode_title($title), '</h4>' ); ?>
	<?php echo yit_addp($content) ?>
</div>
开发者ID:simonsays88,项目名称:costa,代码行数:24,代码来源:numbers_sections.php


示例13: widget

        function widget($args, $instance)
        {
            extract($args);
            $title = apply_filters('widget_title', $instance['title']);
            echo $before_widget;
            if (isset($instance['icon_title']) && $instance['icon_title'] != '') {
                $img_title = '<img class="title-icon" src="' . $instance['icon_title'] . '" />';
            } else {
                $img_title = '';
            }
            if ($title) {
                echo $before_title . $img_title . $title . $after_title;
            }
            echo '<div>';
            if ($instance['autop']) {
                $instance['text'] = wpautop($instance['text']);
            }
            if ($instance['text']) {
                echo $instance['text'];
            }
            $text = '<div class="text-image" style="text-align:' . $instance['align'] . '">';
            if (isset($instance['image']) && $instance['image'] != '') {
                if (isset($instance['image_link']) && $instance['image_link'] != '') {
                    $text .= '<a href="' . $instance['image_link'] . '">';
                }
                $text .= '<img src="' . $instance['image'] . '" alt="' . $instance['title'] . '" />';
                if (isset($instance['image_link']) && $instance['image_link'] != '') {
                    $text .= '</a>';
                }
            }
            $text .= '</div>';
            if ($instance['incipit']) {
                $text .= '<p class="incipit">' . yit_decode_title($instance['incipit']) . '</p>';
            }
            $hidden = yit_get_option('newsletter-hidden');
            $hidden_field = '';
            if (isset($hidden) && $hidden != '') {
                $options = explode('&', $hidden);
                foreach ($options as $o) {
                    $temp = explode('=', $o);
                    $hidden_field .= '<input type="hidden" name="' . $temp[0] . '" value="' . $temp[1] . '" />';
                }
            }
            $text .= '                                 
    		<form class="contact-form" action="' . yit_get_option('newsletter-action') . '" method="' . yit_get_option('newsletter-request') . '">
                <fieldset>
                    <ul>

                        <li class="text-field">
                            <input type="text" placeholder="' . $instance['email'] . '" value="" id="email" name="' . yit_get_option('newsletter-email-name') . '">
                            <div class="clear"></div>
                        </li>
                        <li class="submit-button">' . $hidden_field . wp_nonce_field('mc_submit_signup_form', '_mc_submit_signup_form_nonce', false, false) . wp_nonce_field('mymail_form_nonce', '_wpnonce', false, false) . '
                            <input type="text" id="yit_bot" name="yit_bot">
                            <input type="hidden" id="yit_action" value="sendemail" name="yit_action">
                            <input type="hidden" value="http://yit.com/sistina/all-widget/" name="yit_referer">
                            <input type="hidden" value="268" name="id_form">
                            <input type="submit" class="sendmail alignright" value="' . $instance['button'] . '" name="yit_sendemail">
                            <div class="clear"></div>
                        </li>
                    </ul>
                </fieldset>
            </form>
    	    <div class="clear"></div>';
            echo apply_filters('widget_text', $text);
            echo '</div>';
            echo $after_widget;
        }
开发者ID:jayeshnair,项目名称:ctp,代码行数:68,代码来源:cta.php


示例14: __

    $show_slogan = 'yes';
    $slogan = __('LOGIN / REGISTER', 'yit');
}
if (empty($show_slogan) || $show_slogan == 'no' || empty($slogan)) {
    return;
}
?>

<!-- START SLOGAN -->
<div id="slogan" <?php 
if (isset($slogan_class)) {
    echo 'class="' . $slogan_class . '"';
}
?>
 >
    <div class="container">

        <h2><?php 
echo yit_decode_title($slogan);
?>
</h2>
        <p><?php 
echo yit_decode_title($subslogan);
?>
</p>

    </div>
</div>
<!-- END SLOGAN -->

开发者ID:lieison,项目名称:IndustriasFenix,代码行数:29,代码来源:slogan.php


示例15: isset

" class="box-title box-title-text-<?php 
        echo $font_alignment . $animate;
        ?>
 box-title-line-none <?php 
        echo isset($class) ? $class : '';
        ?>
" style="<?php 
        echo $title_style;
        ?>
" <?php 
        echo $animate_data;
        ?>
>
            <h2>
                <?php 
        echo yit_decode_title(do_shortcode($content));
        ?>
            </h2>
            <?php 
        if ($subtitle != '') {
            ?>
                <p class="subtitle" style="<?php 
            echo $subtitle_style;
            ?>
">
                    <?php 
            echo $subtitle;
            ?>
                </p>
            <?php 
        }
开发者ID:lieison,项目名称:IndustriasFenix,代码行数:31,代码来源:box_title.php


示例16: if

	                    });
	            	});
						
				});

			</script>
			
		
		<?php else: ?>
			<?php 
				wp_enqueue_script( 'caroufredsel' );
				wp_enqueue_script( 'touch-swipe' );
				wp_enqueue_script( 'mousewheel' );
				wp_enqueue_script( 'jquery-yit_portfolio_thumbs', 'js/jquery.yit_portfolio_thumbs.js' );
			?>
            <?php if( !empty( $title ) ) { yit_string( '<h2 class="title section-portfolio-title">', yit_decode_title($title), '</h2>' ); } ?>
			<?php if( !empty( $description ) ) { yit_string( '<p class="description">', $description, '</p>' ); } ?>
			<div class="portfolio-projects section-portfolio-classic margin-bottom row">
				<!-- portfolio image/slider -->
				<div class="work-thumbnail span<?php echo $sidebar_layout != 'sidebar-no' ? '5' : '7' ?>">
					<div class="work-loading"><img class="work-loading" src="<?php echo YIT_THEME_TEMPLATES_URL . '/portfolios/thumbs/images/loading_660.gif' ?>" alt="loading..." /></div>
				</div>

				<!-- portfolio content -->
				<div class="work-content span<?php echo $sidebar_layout != 'sidebar-no' ? '4' : '5' ?>">
					<div class="content"></div>
					<div class="work-meta"></div>
				</div>

				<div class="clear"></div>
开发者ID:simonsays88,项目名称:costa,代码行数:30,代码来源:section-portfolio.php


示例17: yit_get_portfolio_lenght

">

	<?php 
if (!yit_is_portfolio_empty()) {
    ?>

		<?php 
    $portfolio_length = yit_get_portfolio_lenght();
    $portfolio_groups = array();
    $classes = " work yit_item";
    // Get Title and icon section
    if (!empty($title)) {
        if (!empty($portfolio_icon_title)) {
            $icon_image = yit_image("src={$portfolio_icon_title}");
        }
        $title = yit_string('<div class="wrap-title"><h3 class="title">', yit_decode_title($title), '</h3></div>');
    }
    // Section Description
    if (!empty($description)) {
        $description = yit_string('<p class="desc">', $description, '</p>');
    }
    ?>
		<div class="portfolio-projects row<?php 
    echo ' ' . $portfolio_style;
    ?>
">
			<?php 
    yit_get_template('/shortcodes/portfolio/' . $portfolio_style . '.php', $portfolio_compact);
    ?>
		</div>
	<?php 
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:section-portfolio.php


示例18: substr

        $left = $left == 0 ? 'zero' : $left;
        $right = substr($number, 1, 1);
        $right = $right == 0 ? 'zero' : $right;
    }
} else {
    $left = $right = 'zero';
}
$last_class = isset($last) && $last == 'yes' ? ' last' : '';
?>

<div class="box-sections numbers-sections margin-bottom <?php 
echo $last_class;
?>
">
	<div class="number number-left number-<?php 
echo $left;
?>
"></div>
	<div class="number number-right number-<?php 
echo $right;
?>
"></div>
	<?php 
if (!empty($title)) {
    yit_string('<h4>', yit_decode_title($title), '</h4>');
}
?>
	<?php 
echo yit_addp($content);
?>
</div>
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:numbers_sections.php


示例19: yit_post_id

 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
global $post;
$post_id = yit_post_id();
$slogan = yit_get_post_meta($post_id, '_slogan');
$sub_slogan = yit_get_post_meta($post_id, '_sub-slogan');
if ($slogan) {
    $tag_slogan = apply_filters('yit_page_slogan_tag', 'h2');
    $tag_sub_slogan = apply_filters('yit_page_sub_slogan_tag', 'h3');
    ?>
    <!-- SLOGAN -->
    <div class="slogan">
    <?php 
    do_action('yit_before_slogan');
    yit_string('<' . $tag_slogan . '>', yit_decode_title($slogan), '</' . $tag_slogan . '>');
    if ($sub_slogan) {
        do_action('yit_before_sub_slogan');
        yit_string('<' . $tag_sub_slogan . '>', yit_decode_title($sub_slogan), '</' . $tag_sub_slogan . '>');
    }
    ?>
    	<div class="border margin-top"></div>
    	<div class="border"></div>
    	<div class="border"></div> 
    </div>
<?php 
}
?>
  
开发者ID:zgomotos,项目名称:Bazar,代码行数:30,代码来源:slogan.php


示例20: if

if( $services->have_posts() ) :
    global $wp_query, $post, $more;
	if($services_style == "bandw") :
	//if(true) :
	?>
		<div class="section services margin-top margin-bottom section-services-bandw">
			<?php if( !empty( $title ) ) { yit_string( '<h3 class="title">', yit_decode_title($title), '</h3>' ); } ?>
	    	<?php if( !empty( $description ) ) { yit_string( '<p class="description">', $description, '</p>' ); } ?>
			<div class="services-row row group">
				<?php while( $services->have_posts() ) : $services->the_post() ?>
				<div class="span<?php echo $items_span; ?> service-wrapper">
					<div class="service group">
						<div class="image-wrapper">
							<a href="<?php the_permalink() ?>" class="bwWrapper"><?php echo has_post_thumbnail() ? yit_image( 'size=section_services', false ) : yit_image( 'src=' . YIT_CORE_ASSETS_URL . '/images/no-featured-175.jpg&title=' . __( '(this post does not have a featured image)', 'yit' ) . '&alt=no featured image', false ) ?></a>
						</div>
					<?php if( $show_title == "1" || $show_title == 'yes' ): ?><h4><a href="<?php the_permalink() ?>"><?php echo yit_decode_title(get_the_title()); ?></a></h4><?php endif ?>
					<?php if( $show_excerpt == "1" || $show_excerpt == 'yes' ): ?>
						<?php echo yit_content( 'content', $excerpt_length ); ?>
						<?php if( $show_services_button == "1" || $show_services_button == "yes" ) : ?>
                            <div class="read-more"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php echo $services_button_text ?></a></div> 
						<?php endif ?>
					<?php endif ?>
					</div>
				</div>
				<?php endwhile ?>
			</div><!-- end row -->
		</div>
    <?php else : ?>
    	<div class="section ch-grid services margin-top margin-bottom section-services-circle">
			<?php if( !empty( $title ) ) { yit_string( '<h3 class="title">', $title, '</h3>' ); } ?>
	    	<?php if( !empty( $description ) ) { yit_string( '<p class="description">', $description, '</p>' ); } ?>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:section-services.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP yit_enqueue_script函数代码示例发布时间:2022-05-23
下一篇:
PHP yit_content函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap