示例#1
0
文件: cta.php 项目: simonsays88/costa
    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;
    }                     
示例#2
0
 */
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);
示例#3
0
                <?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 ?>
示例#4
0
					<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);
示例#5
0
            <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>
示例#6
0
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();
 /**
  * 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;
 }
示例#8
0
    $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
示例#9
0
			</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';
示例#10
0
				<!-- 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 ) : ?>
示例#11
0
                        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>
示例#12
0
<?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>
示例#13
0
文件: cta.php 项目: jayeshnair/ctp
        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;
        }
示例#14
0
    $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 -->

示例#15
0
" 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 
        }
示例#16
0
	                    });
	            	});
						
				});

			</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>
示例#17
0
">

	<?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 
示例#18
0
        $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>
示例#19
0
文件: slogan.php 项目: zgomotos/Bazar
 * 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 
}
?>
  
示例#20
0
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>' ); } ?>
示例#21
0
            </p>

			<p class="form-row">
                <?php wp_nonce_field( 'woocommerce-login' ) ?>
				<input type="hidden" name="redirect" value="<?php echo get_permalink(wc_get_page_id('checkout')) ?>" />
				<input type="submit" class="button" name="login" value="<?php _e('Login', 'yit'); ?>" />
				<a class="lost_password" href="<?php echo esc_url( wp_lostpassword_url( home_url() ) ); ?>"><?php _e('Lost Password?', 'yit'); ?></a>
			</p>


		</form>
</div>

<div class="step1_create_account span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 6 : 9 ?>">

		<h3><?php printf( __('<span>First time on %s?</span> Create an account.', 'yit'), yit_decode_title(get_bloginfo())); ?></h3>
		<form method="post" class="register">

			<?php if ( get_option( 'woocommerce_registration_generate_username' ) == 'no' ) : ?>

				<p class="form-row form-row-first">
					<label for="reg_username"><?php _e('Username', 'yit'); ?> <span class="required">*</span></label>
					<input type="text" class="input-text" name="username" id="reg_username" value="<?php if (isset($_POST['username'])) echo esc_attr($_POST['username']); ?>" />
				</p>

				<p class="form-row form-row-last">

			<?php else : ?>

				<p class="form-row form-row-wide">
示例#22
0
<div class="section services margin-top margin-bottom section-services-bandw">
	<div class="services-row row group">
		<div class="span3 service-wrapper">
			<div class="service group">
				<div class="image-wrapper">
					<a href="<?php echo esc_url( $url ); ?>" class="bwWrapper"><?php echo $img ? "<img src=\"$img\" />" : 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 echo esc_url( $url ); ?>"><?php echo yit_decode_title($title); ?></a></h4><?php endif ?>
				<?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 ); ?>"><?php echo $services_button_text ?></a></div>
				<?php endif; ?>
			</div>
		</div>
	</div>
</div>
						<a href="<?php 
        the_permalink();
        ?>
" ><?php 
        echo has_post_thumbnail() ? yit_image('size=section_services&alt=featured image', 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 
        }
        ?>
				<?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 buttons"><a href="<?php 
                echo esc_url(get_permalink());
示例#24
0
							<?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 
        esc_url($slider->the('link'));
        ?>
" class="slide-link"></a><?php 
    }
    ?>
						</div>

				<?php 
示例#25
0
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

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;
示例#26
0
        <?php 
//Separated code for a better organization of the code
if ($show_title == 'yes' && $enable_slider == 'yes') {
    if (!empty($blog_icon_title) && !empty($title)) {
        yit_image("src={$blog_icon_title}");
    }
    if (!empty($title)) {
        echo '<h3 class="title">', yit_decode_title($title), ' &nbsp;</h3>';
    }
}
if ($show_title == 'yes' && $enable_slider == 'no') {
    if (!empty($blog_icon_title) && !empty($title)) {
        yit_image("src={$blog_icon_title}");
    }
    if (!empty($title)) {
        echo '<h3 class="title">', yit_decode_title($title), ' &nbsp;</h3>';
    }
}
if ($show_title == 'no' && $enable_slider == 'yes') {
    if (!empty($blog_icon_title) && !empty($title)) {
        yit_image("src={$blog_icon_title}");
    }
    if (!empty($title)) {
        echo '<h3 class="title">&nbsp;</h3>';
    }
}
if (!empty($description)) {
    yit_string('<p class="desc">', $description, '</p>');
}
?>
示例#27
0
} else {
    ?>
<a id="textual" href="<?php 
    echo home_url();
    ?>
" title="<?php 
    echo str_replace(array('[', ']'), '', bloginfo('name'));
    ?>
">
    <?php 
    echo yit_decode_title(get_bloginfo('name'));
    ?>
</a>
<?php 
}
?>

<?php 
if (yit_get_option('logo-tagline')) {
    $class = array();
    if (strpos(get_bloginfo('description'), '|')) {
        $class[] = 'multiline';
    }
    if (!yit_get_option('responsive-show-logo-tagline')) {
        $class[] = 'hidden-phone';
    }
    $class = !empty($class) ? ' class="' . implode($class, ' ') . '"' : '';
    ?>
	<?php 
    yit_string("<p id='tagline'{$class}>", yit_decode_title(get_bloginfo('description')), '</p>');
}
        <?php 
if (!empty($logo['tagline'])) {
    ?>
<p class="tagline"><?php 
    echo $logo['tagline'];
    ?>
</p><?php 
}
?>
    </a>
</div>

<div id="slogan">
    <div class="message">
        <?php 
echo function_exists('yit_decode_title') ? yit_decode_title($message) : $message;
?>
    </div>
</div>

<div class="container">

    <div class="yit-box">
        <?php 
if ($newsletter['enabled']) {
    ?>

            <?php 
    if ($title) {
        ?>
                <h1><?php