예제 #1
0
        ?>

                    <div class="popup_img two-fourth"><img alt="popup-image" src="<?php 
        echo $image;
        ?>
" /></div>
                <?php 
    }
    ?>

                <div class="popup_message <?php 
    echo $image ? 'two-fourth last' : ' no-image';
    ?>
 ">
                    <?php 
    echo yiw_addp(stripslashes($message));
    ?>

                    <?php 
    if ($newsletter) {
        $action = yiw_get_option('popup_newsletter_form_action');
        $email = yiw_get_option('popup_newsletter_form_email');
        $email_label = yiw_get_option('popup_newsletter_form_label_email');
        $hidden_fields = yiw_get_option('popup_newsletter_form_label_hidden_fields');
        $submit = yiw_get_option('popup_newsletter_form_label_submit');
        $method = yiw_get_option('popup_newsletter_form_method');
        ?>


                        <div class="popup-newsletter-section group">
                            <form method="<?php 
예제 #2
0
/**
 * Replace the default get_the_content, managing better the shortcodes
 * 
 * @param string $str The string to convert
 * @return string The string converted   
 * 
 * @since 1.0                
 */
function yiw_clean_text($str)
{
    $str = yiw_addp($str);
    $str = prepend_attachment($str);
    return $str;
}
예제 #3
0
?>

		<h1 class="page-title"><?php 
if (get_post_meta(yiw_post_id(), '_show_title_page', true) == 'yes') {
    woocommerce_page_title();
}
?>
</h1>
		
		<div class="clear"></div>
				
		<?php 
if (is_tax() && get_query_var('paged') == 0) {
    ?>
			<?php 
    echo '<div class="term-description">' . yiw_addp(term_description()) . '</div>';
    ?>
		<?php 
} elseif (!is_search() && get_query_var('paged') == 0 && !empty($shop_page) && is_object($shop_page)) {
    ?>
			<?php 
    echo '<div class="page-description">' . apply_filters('the_content', $shop_page->post_content) . '</div>';
    ?>
		<?php 
}
?>
				
		<?php 
if (have_posts()) {
    ?>
예제 #4
0
                        <div class="left">
                            <?php 
    yiw_convertTags(yiw_addp(stripslashes(__(yiw_get_option('copyright_text_left', 'Copyright <a href="%site_url%"><strong>%name_site%</strong></a>'), 'yiw'))));
    ?>
 <?php 
    echo date("Y");
    ?>

                        </div>
                        <?php 
} elseif ($type == 'centered' || $type == 'big-centered') {
    ?>
 
                        <div class="center">
                            <?php 
    yiw_convertTags(yiw_addp(stripslashes(__(yiw_get_option('footer_text_centered'), 'yiw'))));
    ?>
  
                        </div>
                    <?php 
}
?>

                    </div>
                </div>
                <!-- END FOOTER -->     
            </div>     
            <!-- END WRAPPER -->        
        </div>     
        <!-- END SHADOW WRAPPER -->     
    
예제 #5
0
; left: <?php 
    echo yiw_get_option('header_text_left_position');
    ?>
; right: <?php 
    echo yiw_get_option('header_text_right_position');
    ?>
; bottom: <?php 
    echo yiw_get_option('header_text_bottom_position');
    ?>
;" <?php 
}
?>
 >

                        <?php 
yiw_convertTags(yiw_addp(stripslashes(yiw_get_option('header_text'))));
?>

                    </div>

                	<!-- END CUSTOM TEXT HEADER -->

                	

                    <!-- START LOGO -->

                    <div id="logo" class="group">

                        <?php 
if (yiw_get_option('use_logo')) {
    ?>
예제 #6
0
 /**
  * FEATURES TAB
  * 
  * @description
  *      Show all features tab posts in a tabbed div.
  * 
  * @example
  *      [features_tab name="" open=""]
  * 
  * @params 
  *      name - Features tab name
  *      open - Open this tab at startup
 **/
 function yiw_sc_features_tab($atts, $content = null)
 {
     extract(shortcode_atts(array('name' => '', 'open' => 1), $atts));
     $name = sanitize_title($name);
     $open = abs((int) $open);
     if (empty($name)) {
         return false;
     }
     $args = array('post_type' => $name, 'numberposts' => -1, 'orderby' => 'menu_order', 'order' => 'ASC');
     //$ft = new WP_Query( $args );
     $ft_posts = get_posts($args);
     $features_label = '';
     $features_content = '';
     $i = 0;
     foreach ($ft_posts as $ft) {
         $current = $open == $i + 1 ? 'current-feature' : '';
         $the_label = '<li class="features-tab-' . $i . ' ' . $current . '">';
         if (has_post_thumbnail($ft->ID)) {
             $the_label .= get_the_post_thumbnail($ft->ID, 'features_tab_icon');
         }
         $the_label .= $ft->post_title;
         $the_label .= '</li>';
         $the_content = '<div class="features-tab-content features-tab-' . $i . ' ' . $current . '">' . do_shortcode($ft->post_content) . '</div>';
         $features_label .= $the_label;
         $features_content .= $the_content;
         $i++;
     }
     $without_sidebar = yiw_layout_page() == 'sidebar-no' ? 'without-sidebar' : '';
     $html = '<div id="features-tab-' . $name . '" class="features-tab-container ' . $without_sidebar . ' group">';
     $html .= '<ul class="features-tab-labels">' . $features_label . '</ul>';
     $html .= '<div class="features-tab-wrapper">' . yiw_addp($features_content) . '</div>';
     $html .= '</div>';
     return $html;
 }
예제 #7
0
 /** 
  * TWO / FORTH     
  * 
  * @description
  *    Create a content in two column of a quarter.    
  * 
  * @example
  *   [two_fourth [last=""]]text[/two_fourth]
  * 
  * @attr  
  *   last - specifics if this element is the last one and undo the margin right (optional) @deafult: false   
  *   text - the text
 **/
 function yiw_sc_two_fourth_func($atts, $content = null)
 {
     extract(shortcode_atts(array("last" => false, "class" => ''), $atts));
     $classes = array('two-fourth');
     // additional classes
     if ($class != '') {
         $classes[] = $class;
     }
     // last
     if ($last) {
         $classes[] = 'last';
     }
     $html = "<div class=\"" . implode($classes, ' ') . "\">" . yiw_addp($content) . "</div>";
     return apply_filters('yiw_sc_two_fourth_html', $html);
 }
예제 #8
0
while (yiw_have_slide()) {
    yiw_slide_the('featured-content', array('container' => false));
}
?>

            </div>
            <div class="slider-nivo-static">
                <h3>
                <?php 
$static_title = stripslashes(yiw_slide_get('static_title'));
$static_title = str_replace(array('[', ']'), array('<span>', '</span>'), $static_title);
echo $static_title;
?>

                </h3>
                <?php 
echo yiw_addp(stripslashes(yiw_slide_get('text')));
?>

                <?php 
$short_text = yiw_slide_get('static_short_text');
$short_text = str_replace(array('[', ']'), array('<strong>', '</strong>'), $short_text);
if (!empty($short_text)) {
    echo '<p class="short-text">', do_shortcode(stripslashes($short_text)), '</p>';
}
?>

            </div>
            <div class="clear"></div>
        </div>
        <!-- END NIVO SLIDER -->