<div class="yit_post_content title clearfix"> <?php if( $show_date && $post_format != 'quote' ) : ?> <div class="yit_post_meta_date"> <span class="day"> <?php echo get_the_date( 'd' ) ?> </span> <span class="month"> <?php echo get_the_date( 'M' ) ?> </span> </div> <?php endif; ?> <div class="title-meta-wrapper"> <?php if( $show_title && $post_format != 'quote' ) : ?> <?php yit_string( "<h1 class='post-title'>", $title, "</h1>" ); ?> <?php endif; ?> <div class="yit_post_meta first_block"> <?php if( $show_author ) : ?> <span class="author"> <?php echo __('by', 'yit') . ' '; the_author_posts_link(); ?> </span> <?php endif; ?> <?php if( $show_comments ) : ?> <span class="comments"> <?php if( $show_author ) echo $post_meta_separator; ?> <a href="<?php comments_link() ?>"><?php comments_number( __( '0 Comment', 'yit' ), __( '1 Comment', 'yit' ), '% Comments'); ?></a> </span> <?php endif; ?> <?php $edit_text = $show_author || $show_comments ? __( '/ Edit', 'yit' ) : __( 'Edit', 'yit' ); ?> <?php yit_edit_post_link( $edit_text, '<span class="yit-edit-post">', '</span>' ); ?>
?> <?php } ?> <?php if (!$is_quote) { ?> <div class="yit_post_content clearfix"> <?php if ($show_title) { ?> <?php yit_string("<h1 class='post-title'><a href='{$link}'>", $title, "</a></h1>"); ?> <?php } ?> <?php the_content(); ?> </div> <?php } ?> <?php
the_content($readmore_text); } else { echo yit_content('content', $excerpt_length); } } ?> </div> </div> <div class="clear"></div> <?php $i++; continue; } if ($i == 1 && $sticked) { yit_string('<h4 class="other-articles">', $other_posts_label, '</h4>'); } if ($i != 0 || !$sticked) { if ($i == 0) { echo '<div id="section-blog-not-sticky">'; } ?> <?php $post_classes = $post_number % 3 ? 'hentry-post' : 'hentry-post first'; ?> <div <?php post_class($post_classes); ?> > <div class="meta group">
* 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; }
?> > <?php yit_slide_the('featured-content', array('container' => false)); ?> <?php if (yit_slide_get('title') != '' || yit_slide_get('subtitle') != '') { ?> <div class="ei-title"> <?php yit_string('<h2>', yit_slide_get('title'), '</h2>'); ?> <?php yit_string('<h3>', yit_slide_get('subtitle'), '</h3>'); ?> </div> <?php } ?> </li> <?php } ?> </ul><!-- ei-slider-large --> <ul class="ei-slider-thumbs"> <li class="ei-slider-element"><?php _e('Current', 'yit'); ?>
<?php /** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes Team <*****@*****.**> * * 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 */ $class = yit_get_sidebar_layout() == 'sidebar-no' ? yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) || yit_get_option( 'blog-show-author' ) ? ' width11' : ' width12' : ' width8'; ?> <div class="thumbnail<?php echo $class ?>"> <!-- post meta --> <div> <?php yit_string( "<blockquote class=\"post-title\"><a href=\"" . get_permalink() . "\">", get_the_content(), "</a><cite>" . get_the_title() . "</cite></blockquote>" ) ?> </div> </div> <div class="clear"></div>
/** * Generate the module * * @since 1.0.0 */ public function module($name_or_id, $echo = true) { global $is_footer; $this->current_form = is_int($name_or_id) ? $name_or_id : yit_post_id_from_slug($name_or_id, 'contactform'); $form_name = yit_post_slug_from_id($this->current_form); $fields = $this->get('fields'); if (!is_array($fields) or empty($fields)) { return null; } $max_width = ''; foreach ($fields as $id => $field) { preg_match('/[\\d]+/', $field['width'], $matches); if ($max_width < (int) $matches[0]) { $max_width = $matches[0]; } } $html = '<form id="contact-form-' . $form_name . '" class="contact-form' . (!$is_footer ? ' row' : '') . '" method="post" action="" enctype="multipart/form-data">' . "\n\n"; // div message feedback $html .= "\t<div class=\"usermessagea\">" . $this->_generalMessage($this->current_form, false) . "</div>\n"; $html .= "\t<fieldset>\n\n"; $html .= "\t\t<ul>\n\n"; // array with all messages for js validate $js_messages = array(); foreach ($fields as $id => $field) { // classes $input_class = array(); // array for print input's classes $li_class = array($field['type'] . '-field'); // array for print li's classes // errors $error_msg = ''; $error = false; $js_messages[$field['data_name']] = $field['error']; if (isset($field['data_name'])) { $error_msg = $this->_getMessage($field['data_name']); if (!empty($error_msg)) { $error = TRUE; } } // li class if ($field['class'] != '') { $li_class[] = " {$field['class']}"; } if (isset($field['icon']) && $field['icon'] != '') { array_push($li_class, 'with-icon'); } if ($error) { array_push($input_class, 'icon', 'error'); } if (isset($field['icon']) && $field['icon'] != '') { array_push($input_class, 'with-icon'); } $html .= "\t\t\t<li class=\"" . implode($li_class, ' ') . ' ' . $field['width'] . "\">\n"; //Label if ($field['type'] != 'select') { if ($field['type'] != 'radio') { $html .= "\t\t\t\t<label for=\"{$field['data_name']}-{$form_name}\">\n"; } else { $html .= "\t\t\t\t<label>\n"; } $html .= yit_string("\t\t\t\t\t" . '<span class="mainlabel">', stripslashes_deep($field['title'], 'highlight-text'), '</span>' . "\n", false); $html .= yit_string("\t\t\t\t\t" . '<span class="sublabel">', stripslashes_deep($field['description']), '</span>' . "\n", false); $html .= "\t\t\t\t</label>\n"; } else { if (isset($field['description']) || $field['description'] != '') { $html .= "\t\t\t\t<label>\n"; $html .= yit_string("\t\t\t\t\t" . '<span class="sublabel">', stripslashes_deep($field['description']), '</span>' . "\n", false); $html .= "\t\t\t\t</label>\n"; } $field['options'] = array('the-form-label' => $field['title']) + $field['options']; } // if required if (isset($field['required']) and intval($field['required'])) { $input_class[] = 'required'; } if (isset($field['is_email']) and intval($field['is_email'])) { $input_class[] = 'email-validate'; } // retrive value if (isset($field['data_name']) && $error) { $value = $this->_postValue($field['data_name']); } else { if (isset($_GET[$field['data_name']])) { $value = $_GET[$field['data_name']]; } else { $value = ''; } } // only for clean code $html .= "\t\t\t\t"; // Icon $html .= "<div class=\"input-prepend\">"; if (isset($field['icon']) && $field['icon'] != '') { if (filter_var($field['icon'], FILTER_VALIDATE_URL)) { $html .= "<span class=\"add-on\"><img src=\"" . $field['icon'] . "\" alt=\"\" title=\"\" /></span>"; } else { $html .= "<span class=\"add-on\"><i class=\"icon-" . $field['icon'] . "\"></i></span>"; } } // print type of input switch ($field['type']) { // text case 'text': $html .= "<input type=\"text\" name=\"yit_contact[" . $field['data_name'] . "]\" id=\"" . $field['data_name'] . "-{$form_name}\" class=\"" . implode($input_class, ' ') . "\" value=\"{$value}\" />"; break; // hidden // hidden case 'hidden': $html .= "<input type=\"hidden\" name=\"yit_contact[" . $field['data_name'] . "]\" id=\"" . $field['data_name'] . "-{$form_name}\" class=\"" . implode($input_class, ' ') . "\" value=\"{$value}\" />"; break; // checkbox // checkbox case 'checkbox': $checked = ''; if ($value != '' and $value) { $checked = ' checked="checked"'; } else { if (isset($field['already_checked']) && intval($field['already_checked'])) { $checked = ' checked="checked"'; } } $html .= "<input type=\"checkbox\" name=\"yit_contact[" . $field['data_name'] . "]\" id=\"" . $field['data_name'] . "-{$form_name}\" value=\"1\" class=\"" . implode($input_class, ' ') . "\"{$checked} />"; if (isset($field['label_checkbox'])) { $html .= ' ' . $field['label_checkbox']; } break; // select // select case 'select': $html .= "<select name=\"yit_contact[" . $field['data_name'] . "]\" id=\"" . $field['data_name'] . "-{$form_name}\" class=\"" . implode($input_class, ' ') . "\">\n"; // options foreach ($field['options'] as $id => $option) { $selected = ''; if (isset($field['option_selected']) && $field['option_selected'] == $id) { $selected = ' selected="selected"'; } if ($id === 'the-form-label') { $html .= "\t\t\t\t\t\t<option value=\"\"{$selected}>{$option}</option>\n"; } else { $html .= "\t\t\t\t\t\t<option value=\"{$option}\"{$selected}>{$option}</option>\n"; } } $html .= "\t\t\t\t\t</select>"; break; // textarea // textarea case 'textarea': $html .= "<textarea name=\"yit_contact[" . $field['data_name'] . "]\" id=\"" . $field['data_name'] . "-{$form_name}\" rows=\"8\" cols=\"30\" class=\"" . implode($input_class, ' ') . "\">{$value}</textarea>"; break; // radio // radio case 'radio': // options foreach ($field['options'] as $i => $option) { $selected = ''; if (isset($field['option_selected']) && $field['option_selected'] == $i) { $selected = ' checked=""'; } $html .= "\t\t\t\t\t\t<input type=\"radio\" name=\"yit_contact[{$field['data_name']}]\" id=\"{$field['data_name']}-{$form_name}-{$i}\" value=\"{$option}\"{$selected} /><label for=\"{$field['data_name']}-{$form_name}-{$i}\">{$option}</label>\n"; } $html .= "\t\t\t\t<div class=\"clear\"></div>\n"; break; // password // password case 'password': $html .= "<input type=\"password\" name=\"yit_contact[{$field['data_name']}]\" id=\"{$field['data_name']}-{$form_name}\" class=\"" . implode($input_class, ' ') . "\" value=\"{$value}\" />"; break; // file // file case 'file': $html .= "<input type=\"file\" name=\"yit_contact[{$field['data_name']}]\" id=\"{$field['data_name']}-{$form_name}\" class=\"" . implode($input_class, ' ') . "\" />"; break; } // Icon $html .= "</div>"; // only for clean code $html .= "\n"; $html .= "\t\t\t\t<div class=\"msg-error\">" . $error_msg . "</div><div class=\"clear\"></div>\n"; $html .= "\t\t\t</li>\n"; } $html .= "\t\t\t<li class=\"submit-button span" . $max_width . "\">\n"; $html .= "\t\t\t\t<div style=\"position:absolute;left:-9999px;\"><input type=\"text\" name=\"email_check_2\" id=\"email_check_2\" value=\"\" /></div>\n"; $html .= "\t\t\t\t<input type=\"hidden\" name=\"yit_action\" value=\"sendemail\" id=\"yit_action\" />\n"; $html .= "\t\t\t\t<input type=\"hidden\" name=\"yit_referer\" value=\"" . yit_curPageURL() . "\" />\n"; $html .= "\t\t\t\t<input type=\"hidden\" name=\"id_form\" value=\"{$this->current_form}\" />\n"; $html .= "\t\t\t\t<input type=\"submit\" name=\"yit_sendemail\" value=\"" . $this->get('submit_label') . "\" class=\"sendmail " . $this->get('submit_alignment') . "\" />"; $html .= "\t\t\t\t<div class=\"clear\"></div>"; $html .= "\t\t\t</li>\n"; $html .= "\t\t</ul>\n\n"; $html .= "\t</fieldset>\n"; $html .= "</form>\n\n"; // messages for javascript validation $html .= "<script type=\"text/javascript\">\n"; $html .= "\tvar messages_form_" . $this->current_form . " = {\n"; foreach ($js_messages as $id => $msg) { $html .= "\t\t{$id}: \"{$msg}\",\n"; } // remove last comma $html = str_replace("\t\t{$id}: \"{$msg}\",\n", "\t\t{$id}: \"{$msg}\"\n", $html); $html .= "\t};\n"; $html .= "</script>"; if ($echo) { echo $html; } return $html; }
'TooltipMarginRight' => 7, 'TooltipTextSharpness' => 50, 'TooltipTextThickness' => -100, 'InfoWidth' => 400, 'InfoBackground' => "0xFFFFFF", 'InfoBackgroundAlpha' => 0.95, 'InfoMargin' => 400, 'InfoSharpness' => 0, 'InfoThickness' => 0, 'Autoplay' => 10, 'FieldOfView' => 45 ); $fields = get_flash_configuration( $settings ); yit_string( ' <Settings ', implode( ' ', $fields ), '></Settings>' ); $transitions = array( 'Pieces' => 9, 'Time' => 1.2, 'Transition' => 'easeInOutBack', 'Delay' => 0.1, 'DepthOffset' => 300, 'CubeDistance' => 30 ); $fields = get_flash_configuration( $transitions ); echo "\n <Transitions>\n"; echo " <Transition " . implode( ' ', $fields ) . "></Transition>\n"; echo " </Transitions>\n";
<!-- post title --> <?php $link = get_permalink(); $title = get_the_title() == '' ? __('(this post does not have a title)', 'yit') : get_the_title(); if ($post_format != 'quote') { yit_string("<h2 class=\"post-title{$upper}\"><a href=\"{$link}\">", $title, "</a></h2>"); } if (!is_single() && $post_format != 'quote') { if (yit_get_option('blog-show-read-more') && !yit_get_option('blog-show-featured')) { the_content(yit_get_option('blog-read-more-text')); } else { the_excerpt(); } } elseif ($post_format == 'quote') { yit_string("<blockquote><p><a href=\"{$link}\">", get_the_content(), "</a></p><cite>" . $title . "</cite></blockquote>"); } if (is_single() && $post_format != 'quote') { the_content(); } ?> <?php edit_post_link(__('Edit', 'yit'), '<p class="edit-link"><i class="icon-pencil"></i>', '</p>'); ?> <?php wp_link_pages(); ?> </div>
?> " title="<?php bloginfo('name'); ?> " alt="<?php bloginfo('name'); ?> " /> </a> <?php } else { ?> <a id="textual" href="<?php echo home_url(); ?> " title="<?php echo str_replace(array('[', ']'), '', bloginfo('name')); ?> "> <?php echo str_replace(array('[', ']'), array('<span>', '</span>'), get_bloginfo('name')); ?> </a> <?php } ?> <?php if (yit_get_option('logo-tagline')) { yit_string('<p id="tagline">', get_bloginfo('description'), '</p>'); }
<div class="contactform_item closed"> <h3> <button type="button" class="remove_item button" rel=""><?php _e('Remove', 'yit'); ?> </button> <div class="handlediv" title="<?php _e('Click to toggle', 'yit'); ?> "></div> <strong><?php echo $value['title']; ?> <?php yit_string('(', $types[$value['type']], ')'); ?> </strong> <input type="hidden" class="contactform_menu_order" name="<?php echo $name; ?> [order]" value="<?php echo $index; ?> " /> </h3> <div class="inside"> <div class="the-metabox text clearfix"> <label for="<?php echo $id;
$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>
$title = is_null(get_the_title()) ? __('(this post has no title)', 'yit') : the_title('<h2>', '</h2>', false); ?> <div id="post-<?php the_ID(); ?> " <?php post_class('hentry-post group blog-big'); ?> > <?php if (get_the_title() == '') { $title = __('(this post does not have a title)', 'yit'); } else { $title = get_the_title(); } yit_string("<h1 class=\"post-title\">", $title, "</h1>"); ?> <!-- post content --> <div class="the-content<?php if (is_single()) { echo ' single'; } ?> group"> <?php the_content(); ?> </div> <?php
echo esc_attr($value); ?> " <?php if (isset($std)) { ?> data-std="<?php echo $std; ?> "<?php } ?> /> </div> </div> <?php yit_string('<span class="desc">', $desc, '</span>'); ?> </span> </div> <script type="text/javascript"> jQuery(document).ready(function($){ $('#<?php echo $id; ?> -option .ui-slider .ui-slider').each(function(e){ var val = <?php echo $value; ?> ; var minValue = <?php
/* * This file belongs to the YIT Framework. * * 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 */ $blog_type = is_singular( 'post' ) ? 'single_' . $blog_type : $blog_type; ?> <?php if ( $show_date && is_singular( 'post' ) ) : ?> <div class="yit_post_meta_date"> <span class="day"> <?php echo get_the_date( 'd' ) ?> </span> <span class="month"> <?php echo get_the_date( 'M' ) ?> </span> </div> <?php endif; ?> <div class="yit_the_content"> <?php ( true == $show_read_more ) ? the_content( $read_more_text ) : the_excerpt(); ?> </div> <?php if ( $show_title ) : ?> <?php yit_string( "<h3 class='post-title'><a href='{$link}'>", $title, "</a></h3>" ); ?> <?php endif; ?>
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();
?> value="<?php echo esc_attr($value); ?> " <?php if (isset($std)) { ?> data-std="<?php echo $std; ?> "<?php } ?> " /> <?php yit_string('<span class="description">', $desc, '</span>'); ?> </span> </div> <script type="text/javascript" charset="utf-8"> jQuery(document).ready( function( $ ) { $('#<?php echo $id; ?> ').spinner({ <?php if (isset($min)) { ?> min: <?php echo $min;
* 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 } ?>
?> <div style="display:none;"> <?php $count = 0; $containers = array(); yit_set_slider_loop($this->shortcode_atts['name']); $i = 1; while (yit_have_slide()) { $containers[$i][] = yit_slide_get('featured-content', array('container' => false)); if ($i == $nslides) { $i = 0; } $i++; } foreach ($containers as $i => $img) { yit_string('<div id="rm_container_' . $i . '">', "\n " . implode("\n ", $img) . "\n", '</div>'); } ?> </div> </div> <!--<div class="rm_controls"> <a id="rm_small_next" href="#" class="rm_small_next"></a> <a id="rm_small_prev" href="#" class="rm_small_prev"></a> <a id="rm_play" href="#" class="rm_play"><?php _e('Play', 'yit'); ?> </a> <a id="rm_pause" href="#" class="rm_pause"><?php _e('Pause', 'yit');
/** * 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; }
else { yit_string( "<h2 class=\"post-title\"><a href=\"$link\">", $title, "</a></h2>" ); } ?> <!-- post author --> <div class="meta"> <?php if( yit_get_option( 'blog-show-author' ) ) : ?><span class="author"><?php _e( 'posted by', 'yit' ) ?> <?php the_author_posts_link() ?></span><?php endif; ?> </div> <!-- post comments --> <?php if( yit_get_option( 'blog-show-comments' ) ) : ?> <p class="comments"> <!--<i class="<?php echo yit_get_icon( 'blog-comments-icon' ) ?>"></i>--> <i class="blog-bazar-comment-icon"></i> <span><?php comments_popup_link( '0', '1', '%' ); ?></span> </p> <?php endif ?> </div> <div class="thumbnail span<?php echo $span ?>"> <div class="border"> <div> <?php yit_string( "<blockquote class=\"post-title\"><a href=\"$link\">", get_the_content(), "</a><cite>" . $title . "</cite></blockquote>" ) ?> </div> </div> </div> <div class="clear"></div>
<?php do_action('yit_before_content'); ?> <!-- START CONTENT --> <div id="content-page" class="content group"> <?php $show_title = yit_get_post_meta(get_the_ID(), '_show-title'); $show_breadcrumb = yit_get_post_meta(get_the_ID(), '_show-breadcrumb'); $tag_title = apply_filters('yit_page_title_tag', 'h2'); do_action('yit_before_breadcrumb'); if ($show_breadcrumb) { yit_breadcrumb(apply_filters('yit_breadcrumb_delimiter', '»')); } do_action('yit_before_page_title'); if ($show_title) { yit_string('<' . $tag_title . '>', get_the_title(), '</' . $tag_title . '>'); } do_action('yit_loop_page'); comments_template(); ?> </div> <!-- END CONTENT --> <?php do_action('yit_after_content'); ?> <?php get_sidebar(); ?> <?php
?> <h3><?php echo apply_filters('yit_archive_author_title', __('Author archive', 'yit')); ?> </h3> <?php } } ?> <?php } elseif (is_search()) { if (yit_get_option('show-title-searches')) { ?> <h3><?php echo apply_filters('yit_archive_search_title', sprintf(yit_get_option('page-searches-title'), yit_string('<span>', get_search_query(), '</span>', false))); ?> </h3> <?php } ?> <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h3><?php echo apply_filters('yit_archive_blog_title', __('Blog Archive', 'yit')); ?> </h3>
/** * Print portfolio page title * * @return void * @since 2.0.0 * @author Antonio La Rocca <*****@*****.**> */ function yit_portfolio_title_bar() { global $post; $portfolio = YIT_Portfolio()->get_portfolio($post->post_type); $custom_button_label = $portfolio->get('custom_button_label'); $custom_button_url = $portfolio->get('custom_button_url'); $html = "<div class='portfolio_small_image portfolio-title-bar'>"; $html .= "<div class='container'>"; $html .= "<div class='row'>"; $html .= "<div class='col-sm-12'>"; $html .= yit_string("<h2 class='post-title portfolio-title'><a href='" . get_permalink() . "'>", get_the_title(), "</a></h2>", false); if ($custom_button_label != '' && $custom_button_url != '') { $html .= "<a class='btn btn-flat' href='" . $custom_button_url . "'>" . $custom_button_label . "</a>"; } $html .= "</div>"; $html .= "</div>"; $html .= "</div>"; $html .= "</div>"; echo $html; }
$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); if ($sticky->have_posts()) { $sticky->the_post(); $has_post_thumbnail = has_post_thumbnail() && ($show_featured == '1' || $show_featured == 'yes');
?> <div class="contactform_item closed"> <h3> <button type="button" class="remove_item button" rel=""><?php _e('Remove', 'yit'); ?> </button> <div class="handlediv" title="<?php _e('Click to toggle', 'yit'); ?> "></div> <strong><?php echo $value[$index]['title']; ?> <?php yit_string('(', $types[$value[$index]['type']], ')'); ?> </strong> <input type="hidden" class="contactform_menu_order" name="<?php echo $name; ?> [<?php echo $index; ?> ][order]" value="<?php echo esc_attr($index); ?> " /> </h3> <div class="inside">
} 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>'); }
?> " height="<?php echo $thumbnail_height; ?> " style="width:<?php echo $thumbnail_width; ?> px;" /> </div> <div class="accordion-item-content" style="margin-left: <?php echo $thumbnail_width + apply_filters('yit_accordion_text_offset', 32); ?> px;"> <h4><?php if (yit_accordion_item_get('website')) { yit_string('<a style="color:inherit" href=' . yit_accordion_item_get('website') . '>', yit_accordion_item_get('subtitle'), '</a>'); } else { yit_accordion_item_the('subtitle'); } ?> </h4> <?php echo yit_content(yit_accordion_item_get('content'), 1000); ?> <?php echo yit_content(yit_accordion_item_get('social')); ?> </div> </div> <div class="clear"></div>
//$image = wp_get_attachment_image_src( $attachment->ID, 'blog_big' ); $image_url = yit_image("id={$attachment->ID}&size=blog_img&output=url"); $html .= $image_url . PHP_EOL; } $html = '[images_slider effect="fade" width="0" height="auto" direction="horizontal" speed="5000"]' . PHP_EOL . $html . '[/images_slider]'; echo do_shortcode($html); } ?> <!-- post meta --> <div class="meta group span4"> <?php if (is_single()) { yit_string("<h1 class=\"post-title\"><a href=\"{$link}\">", $title, "</a></h1>"); } else { yit_string("<h2 class=\"post-title\"><a href=\"{$link}\">", $title, "</a></h2>"); } ?> <div> <?php if (yit_get_option('blog-show-author')) { ?> <p class="author"><?php echo yit_get_icon('blog-author-icon', true); ?> <span><?php _e('Author:', 'yit'); ?> </span> <?php the_author_posts_link();
the_content($readmore_text); } else { echo yit_content('content', $excerpt_length); } } ?> </div><!-- THUMBNAIL DIV--> </div><!-- END STICKY POST DIV --> <?php $i++; continue; } /** End Sticky Post **/ if ($i == 1 && $sticked) { yit_string('<div class="' . $sb_span_class_max . '"><h4 class="other-articles">', $other_posts_label, '</h4></div>'); } if ($i == 0 && !$sticked || $i == 1 && $sticked) { echo "<div class=\"blog-row\">"; } ?> <?php if ($i != 0 || !$sticked) { ?> <div class="<?php echo $sb_span_class; echo $y % $postsPerRow == 0 ? " post_first" : ""; ?> "> <?php if ($i == 0) {