/** * Customize the columns in the table of all post types * * @since 1.0.0 */ public function custom_columns($column) { global $post; switch ($column) { case "image": if (has_post_thumbnail()) { echo get_the_post_thumbnail(null, 'thumb-testimonial'); } break; case 'story': the_excerpt(); break; case 'website': $label = yit_get_post_meta(get_the_ID(), '_site-label'); $siteurl = yit_get_post_meta(get_the_ID(), '_site-url'); if ($siteurl != '') { if ($label != '') { echo '<a href="' . esc_url($siteurl) . '">' . $label . '</a>'; } else { echo '<a href="' . esc_url($siteurl) . '">' . $siteurl . '</a>'; } } break; } }
/** * Customize the columns in the table of all post types * * @since 1.0.0 */ public function custom_columns($column) { global $post; switch ($column) { /* case "image": if ( has_post_thumbnail() ) echo get_the_post_thumbnail( null, 'thumb-logo' ); break; case 'story': the_excerpt(); break; */ case 'link': $link = yit_get_post_meta(get_the_ID(), '_site-link'); if ($link != '') { echo '<a href="' . esc_url($link) . '">' . $link . '</a>'; } break; } }
// Use nonce for verification wp_nonce_field('metaboxes-fields-nonce', 'yit_metaboxes_nonce'); ?> <?php foreach ($tabs as $tab) { ?> <div class="tabs-panel" id="<?php echo sanitize_key($tab); ?> "> <?php if (!isset($options[$tab])) { continue; } foreach ($options[$tab] as $option) { $value = yit_get_post_meta($post->ID, $option['name']); $option['value'] = $value != '' ? $value : (isset($option['std']) ? $option['std'] : ''); $option['name'] = yit_option_metabox_name($option['name']); ?> <div class="the-metabox <?php echo $option['type']; ?> clearfix<?php if (empty($option['title'])) { ?> no-label<?php } ?> "> <?php yit_get_template('admin/metaboxes/types/' . $option['type'] . '.php', array('args' => $option));
<?php /** * Info Tab */ global $post; $show = yit_get_post_meta($post->ID, '_use_ask_info'); $form_id = yit_get_option('shop-products-details-contact-form'); if ($form_id != -1 && ($show || $show == '')) { ?> <?php echo do_shortcode('[contact_form name="' . $form_id . '" ]'); }
<?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 */ $bg_slider = yit_get_post_meta(yit_post_id(), '_bg_slider'); echo do_shortcode('[slider name="' . $bg_slider . '"]');
} ?> <?php $i = 0; $row = yit_get_sidebar_layout() == 'sidebar-no' ? 4 : 3; while ($tests->have_posts()) { $tests->the_post(); if ($i == 0 || $i % $row == 0) { echo '<div class="row">'; } $fulltext = ''; $text = strcmp(yit_get_option('text-type-testimonials'), 'content') == 0 ? get_the_content() : get_the_excerpt(); $title = yit_get_option('link-testimonials') ? the_title('<a href="' . get_permalink() . '" class="name">', '</a>', false) : the_title('<p class="name">', '</p>', false); $label = yit_get_post_meta(get_the_ID(), '_site-label'); $siteurl = yit_get_post_meta(get_the_ID(), '_site-url'); $smallquote = yit_get_post_meta(get_the_ID(), '_small-quote'); $website = ''; if ($siteurl != '') { if ($label != '') { $website = '<a class="website" href="' . esc_url($siteurl) . '">' . $label . '</a>'; } else { $website = '<a class="website" href="' . esc_url($siteurl) . '">' . $siteurl . '</a>'; } } else { $website = '<span class="website">' . $label . '</span>'; } ?> <div class="span3"> <div class="testimonial"> <?php if (isset($smallquote) && $smallquote != '') {
$tests->the_post(); if ($i == 0 || $i % $row == 0) { echo '<div class="row-fluid">'; } if ($text_type == 'excerpt') { $length = create_function('', "return {$limit};"); add_filter('excerpt_length', $length); $text = get_the_excerpt(); remove_filter('excerpt_length', $length); } else { $text = get_the_content(); } $title = the_title('<p class="name">', '</p>', false); $label = yit_get_post_meta(get_the_ID(), '_yit_testimonial_social'); $siteurl = yit_get_post_meta(get_the_ID(), '_yit_testimonial_website'); $small_quote = yit_get_post_meta(get_the_ID(), '_yit_testimonial_small_quote'); $website = ''; $has_post_thumbnail = has_post_thumbnail(); if ($siteurl != '') { if ($label != '') { $website = '<span class="testimonialwebsite">' . $title . ' - ' . '<a href="' . esc_url($siteurl) . '">' . $label . '</a> </span>'; } else { $website = '<span class="testimonialwebsite">' . $title . ' - ' . '<a href="' . esc_url($siteurl) . '">' . $siteurl . '</a> </span>'; } } elseif ($label != '') { $website = '<span class="testimonialwebsite">' . $title . '</span>'; } else { $website = '<span class="testimonialwebsite">' . $title . '</span>'; } ?> <div class="testimonial">
/** * Define the body background for the page. * * First get the setting for the current page. If a setting is not defined * in the current page, will be get the setting from the theme options. * All css will be shown in head tag, by the action 'wp_head' * * @since 1.0.0 */ function yit_body_background() { $post_id = yit_post_id(); // get color and background from postmeta $color = yit_get_post_meta($post_id, '_bg_color', true); $image = yit_get_post_meta($post_id, '_bg_image', true); // get the color and background from theme options, if above are empty $background = yit_get_option('background-style'); if (empty($image) && empty($color)) { $image = $background['image']; if ($image == 'custom') { $image = yit_get_option('bg_image'); } } if (empty($color)) { $color = $background['color']; } $image_repeat = yit_get_option('bg_image_repeat'); $image_position = yit_get_option('bg_image_position'); $image_attachment = yit_get_option('bg_image_attachment'); $css = array(); if (!empty($color)) { $css[] = "background-color: {$color};"; } if (!empty($image) && $image != 'none') { $css[] = "background-image: url('{$image}');"; } if (!empty($image) && !empty($image_repeat)) { $css[] = "background-repeat: {$image_repeat};"; } if (!empty($image) && !empty($image_position)) { $css[] = "background-position: {$image_position};"; } if (!empty($image) && !empty($image_attachment)) { $css[] = "background-attachment: {$image_attachment};"; } if (empty($css)) { return; } ?> <style type="text/css"> body { <?php echo implode(' ', $css); ?> } </style> <?php }
* @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 */ global $post; if (!isset($post->ID)) { return; } $post_id = yit_post_id(); $show_title = is_page() ? yit_get_post_meta($post_id, '_show-title') : false; $show_breadcrumb = is_page() ? yit_get_post_meta($post_id, '_show-breadcrumb') : (bool) yit_get_option('breadcrumb'); if ($show_title || $show_breadcrumb) { $tag_title = apply_filters('yit_page_slogan_tag', 'h1'); ?> <!-- START PAGE META --> <div id="page-meta" class="group margin-top"> <div class="container"> <div class="row"> <div class="span12"> <?php if ($show_title) { ?> <!-- TITLE --> <div class="title"> <?php if (is_category()) {
/** * 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 */ 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>
<?php } else { ?> <?php echo $image; ?> <?php } ?> <?php if ($_show_overlay_box) { ?> <?php $google_map_overlay_address = yit_get_post_meta(get_the_ID(), '_google_map_overlay_address'); $google_map_overlay_info = yit_get_post_meta(get_the_ID(), '_google_map_overlay_info'); ?> <div class="map_info"> <div class="row"> <div class="container_map_box_info col-sm-4"> <div class="map_box_info"> <?php if (isset($google_map_overlay_address) && $google_map_overlay_address) { echo "<h4>" . $google_map_overlay_address . "</h4>"; } ?> <?php if (isset($google_map_overlay_info) && $google_map_overlay_info) { echo "<p>" . nl2br($google_map_overlay_info) . "</p>"; } ?>
function yit_woocommerce_add_tabs($tabs = array()) { global $post; $custom_tabs = yit_get_post_meta($post->ID, '_custom_tab'); if (!empty($custom_tabs)) { foreach ($custom_tabs as $tab) { yit_wpml_register_string('bishop-theme', 'custom_tab_' . sanitize_title($tab["name"]), $tab["name"]); $tab["name"] = yit_wpml_string_translate('bishop-theme', 'custom_tab_' . sanitize_title($tab["name"]), $tab["name"]); yit_wpml_register_string('bishop-theme', 'custom_tab_' . sanitize_title($tab["value"]), $tab["value"]); $tab["value"] = yit_wpml_string_translate('bishop-theme', 'custom_tab_' . sanitize_title($tab["value"]), $tab["value"]); $tabs['custom' . $tab["position"]] = array('title' => $tab["name"], 'priority' => 30, 'callback' => 'yit_woocommerce_add_custom_panel', 'custom_tab' => $tab); } } return $tabs; }
<?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 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly $image_size['height'] = $blog_type == 'big' && is_singular('post') ? (int) $image_size['height'] * 1.5 : $image_size['height']; $video = array('id' => preg_replace('/[&|&]feature=([\\w\\-]*)/', '', yit_get_post_meta(get_the_ID(), '_video-id')), 'host' => yit_get_post_meta(get_the_ID(), '_video-host'), 'width' => '100%', 'height' => $image_size['height']); $layout_sidebar = YIT_Layout()->sidebars['layout']; if ($layout_sidebar == 'sidebar-no') { $bootstrap_cols = "col-sm-5 col-xs-12"; } elseif ($layout_sidebar == 'sidebar-double') { $bootstrap_cols = "col-xs-12"; } else { $bootstrap_cols = "col-sm-6 col-xs-12"; } extract($video); switch ($video['host']) { case 'youtube': ?> <div class="post-format <?php echo esc_attr($post_format); ?>
function yit_woocommerce_add_tabs($tabs) { global $post; if (yit_get_post_meta($post->ID, '_use_ask_info')) { $tabs['info'] = array('title' => apply_filters('yit_ask_info_label', __('Product Inquiry', 'yit')), 'priority' => 30, 'callback' => 'yit_woocommerce_add_info_panel'); } $custom_tabs = yit_get_post_meta($post->ID, '_custom_tabs'); if (!empty($custom_tabs)) { foreach ($custom_tabs as $tab) { $tabs['custom' . $tab["position"]] = array('title' => $tab["name"], 'priority' => 30, 'callback' => 'yit_woocommerce_add_custom_panel', 'custom_tab' => $tab); } } return $tabs; }
<div class="nav"> <a class="prev" href="#"><i class="fa fa-angle-left"></i></a> <a class="next" href="#"><i class="fa fa-angle-right"></i></a> </div> <div class="list_carousel"> <ul class="logos-slides" data-speed="<?php echo $speed; ?> "> <?php 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(), '_logo_site'); ?> <li style="height: <?php echo $height; ?> px;"> <?php if ($logo_link != '') { echo '<a href="' . esc_url($logo_link) . '" class="bwWrapper">'; } else { echo '<a href="#" class="bwWrapper" >'; } $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id, 'full'); $image_url = $image_url[0]; echo '<img src="' . $image_url . '" style="max-height: ' . $height . 'px;" class="logo" />';
/** * Retrieve the sidebar settings for the current post. * * @param string $setting * @return string * @since 1.0.0 */ function yit_get_sidebar_setting() { global $post, $yit_sidebar_layout; global $wp_query; $post_id = yit_post_id(); if (empty($post_id) || is_category() || is_archive() || is_search()) { $yit_sidebar_layout = yit_get_standard_sidebar(); return; } else { $sidebar_layout = yit_get_post_meta($post_id, '_sidebar-layout'); if (!empty($sidebar_layout) && isset($sidebar_layout['sidebar']) && $sidebar_layout['sidebar'] != -1 || isset($sidebar_layout["layout"]) && $sidebar_layout["layout"] == 'sidebar-no') { $yit_sidebar_layout = $sidebar_layout; } else { $yit_sidebar_layout = yit_get_standard_sidebar(); } } }
?> px;"> <?php if (!empty($static_image_link)) { ?> <a href="<?php echo $static_image_link; ?> " title="" target="<?php echo yit_get_post_meta($post_id, '_static_image_target'); ?> "><?php } ?> <img src="<?php echo yit_get_post_meta($post_id, '_static_image'); ?> " alt="<?php bloginfo('name'); ?> Header" /> <?php if (!empty($static_image_link)) { ?> </a><?php } ?> </div> </div> <?php define('YIT_SLIDER_USED', true);
function yit_load_bg_slider() { $bg_slider = yit_get_post_meta(yit_post_id(), '_bg_slider'); if (empty($bg_slider) || $bg_slider == 'none') { return; } yit_add_body_class('background-slider'); add_action('wp_head', 'yit_bg_slider'); }
<div class="<?php if (!$has_thumbnail) { echo 'without '; } ?> thumbnail"> <!-- post title --> <?php $link = get_permalink(); if (get_the_title() == '') { $title = __('(this post does not have a title)', 'yit'); } else { $title = get_the_title(); } $id = yit_get_post_meta(get_the_ID(), '_format_video'); $type = yit_get_post_meta(get_the_ID(), '_format_video_host'); echo do_shortcode('[' . $type . ' video_id="' . $id . '"]'); ?> <!-- post meta --> <?php if (get_post_type() == 'post') { ?> <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>"); } ?>
do_action('yit_before_primary'); ?> <!-- START PRIMARY --> <div id="primary" class="<?php yit_sidebar_layout(); ?> "> <div class="inner group"> <?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
/** * Customize link column * * Customize the columns in the table of all post types * * @param $column Column name * * @return void * @since 1.0.0 * @author Antonio La Rocca <*****@*****.**> */ public function custom_columns($column) { global $post; switch ($column) { case "image-logos": if (has_post_thumbnail()) { echo get_the_post_thumbnail(null, 'thumb'); } break; case 'logo_site': $link = yit_get_post_meta(get_the_ID(), '_logo_site'); if ($link != '') { echo '<a href="' . esc_url($link) . '">' . $link . '</a>'; } break; } }
/** * Print the columns information * * @param $review * @param $column_name * * @return string */ public function column_default($review, $column_name) { switch ($column_name) { case $this->ywar->custom_column_review: $post = get_post($review->ID); if (empty($post->post_title) && empty($post->post_content)) { return; } $edit_link = get_edit_post_link($review->ID); echo '<a class="row-title" href="' . $edit_link . '">'; if (!empty($post->post_title)) { echo '<span class="review-title">' . wc_trim_string($post->post_title, 80) . '</span>'; echo "<br>"; } if (!empty($post->post_content)) { echo '<span class="review-content">' . wc_trim_string($post->post_content, 80) . '</span>'; } echo '</a>'; $post_type_object = get_post_type_object($this->ywar->post_type_name); if ('trash' == $post->post_status) { $actions['untrash'] = "<a title='" . esc_attr__('Restore this item from the bin') . "' href='" . $this->ywar->untrash_review_url($post) . "'>" . __('Restore') . "</a>"; } elseif (EMPTY_TRASH_DAYS) { $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__('Move this item to the bin') . "' href='" . get_delete_post_link($post->ID) . "'>" . __('Bin') . "</a>"; } if ('trash' == $post->post_status || !EMPTY_TRASH_DAYS) { $actions['delete'] = "<a class='submitdelete' title='" . esc_attr__('Delete this item permanently') . "' href='" . get_delete_post_link($post->ID, '', true) . "'>" . __('Delete permanently') . "</a>"; } $actions = apply_filters('yith_advanced_reviews_row_actions', $actions, $post); echo $this->row_actions($actions); break; case $this->ywar->custom_column_rating: if (0 == $review->post_parent) { $rating = get_post_meta($review->ID, $this->ywar->meta_key_rating, true); echo '<div class="woocommerce"> <div class="star-rating" title="' . sprintf(__("Rated %d out of 5", 'yith-woocommerce-advanced-reviews'), $rating) . '"> <span style="width:' . $rating / 5 * 100 . '%"><strong>' . $rating . '</strong>' . __("out of 5", 'yith-woocommerce-advanced-reviews') . ' </span> </div> </div>'; } break; case $this->ywar->custom_column_product: $product_id = get_post_meta($review->ID, $this->ywar->meta_key_product_id, true); echo get_the_title($product_id) . "<br>"; if (current_user_can('edit_post', $product_id)) { echo "<a class='edit-product-review' href='" . get_edit_post_link($product_id) . "'>" . __("Edit", 'yith-woocommerce-advanced-reviews') . '</a>'; } echo "<a class='view-product-review' href='" . get_permalink($product_id) . "' target='_blank'>" . __("View", 'yith-woocommerce-advanced-reviews') . '</a>'; break; case $this->ywar->custom_column_author: if ($review->post_author) { $user = get_userdata($review->post_author); $author_name = $user ? $user->display_name : __('Anonymous', 'yith-woocommerce-advanced-reviews'); } else { $user = yit_get_post_meta($review->ID, $this->ywar->meta_key_review_author); if ($user) { $author_name = $user ? $user : __('Anonymous', 'yith-woocommerce-advanced-reviews'); } } echo $author_name; break; case $this->ywar->custom_column_date: $t_time = get_the_time(__('Y/m/d g:i:s a')); $m_time = $review->post_date; $time = get_post_time('G', true, $review); $time_diff = time() - $time; if ($time_diff > 0 && $time_diff < DAY_IN_SECONDS) { $h_time = sprintf(__('%s ago'), human_time_diff($time)); } else { $h_time = mysql2date(__('Y/m/d'), $m_time); } echo '<abbr title="' . $t_time . '">' . $h_time . '</abbr>'; break; default: do_action('yith_advanced_reviews_show_advanced_reviews_columns', $column_name, $review->ID); } return null; }
/** * Add body class when the page have a map * */ function yit_add_map_class_body() { global $post; if (!is_page() || !isset($post->ID)) { return; } $map_url = yit_get_post_meta(get_the_ID(), '_google-map'); if (!empty($map_url)) { yit_add_body_class('page-with-map'); } }
/** * Your Inspiration Themes * * In this files there is a collection of a functions useful for the core * of the framework. * * @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 */ global $post, $is_extra_content; wp_reset_query(); $is_extra_content = true; //used to know if we are in extra content or not $post_id = isset($post->ID) ? $post->ID : 0; $extra_content = yit_clean_text(yit_get_post_meta($post_id, '_extra-content')); if (!empty($extra_content)) { ?> <div class="extra-content margin-top group span12"><?php echo $extra_content; ?> </div> <?php } $is_extra_content = false;
if (preg_match('#(www|maps)\\.google\\.([a-z]{2,4}(\\.([a-z]{2,4}))?)/(maps|\\?)#', $map_url)) { $is_gmap = true; } if (!$is_gmap) { $image_id = yit_get_attachment_id($map_url); if ($image_id != 0) { list($image_url, $image_width, $image_height) = wp_get_attachment_image_src($image_id, 'map_image'); if (empty($width)) { $width = $image_width; } if (empty($height)) { $height = $image_height; } $img_attrs['src'] = $image_url; } $image_link = yit_get_post_meta(get_the_ID(), '_google-map-link'); if (!empty($image_link)) { $image = '<a target="_blank" style="display:block;" href="' . $image_link . '"><img class="span12" src="' . $image_url . '" title="" alt="" /></a>'; } else { $image = '<img class="span12" src="' . $image_url . '" title="" alt="" />'; } } ?> <!-- START MAP --> <div id="map"> <div class="border"> <?php if ($is_gmap) { ?> <iframe frameborder="0"
<?php /** * Size chart modal */ global $post; if (!shortcode_exists('modal')) { return; } $show = yit_get_post_meta($post->ID, '_modal_window'); $img = yit_get_post_meta($post->ID, '_modal_window_img'); $title = yit_get_post_meta($post->ID, '_modal_window_title'); $text = yit_get_post_meta($post->ID, '_modal_window_text'); $icon = yit_get_post_meta($post->ID, '_modal_window_icon'); $img_html = '<img src="' . $img . '">'; if ($show == 'yes') { ?> <div id="modal-window"> <?php if ($icon['select'] != 'none') { if ($icon['select'] == 'icon') { ?> <span class="icon-form" <?php echo YIT_Icon()->get_icon_data($icon['icon']); ?> ></span> <?php } else { ?> <span class="custom-icon"><img src="<?php echo esc_url($icon['custom']);
echo $title; ?> </h4> <ul class="testimonial-content"> <?php //loop $c = 0; while ($tests->have_posts()) { $tests->the_post(); $length = create_function('', "return {$excerpt};"); add_filter('excerpt_length', $length); add_filter('excerpt_length', $length); $title = the_title('<a class="name">', '</a>', false); $label = yit_get_post_meta(get_the_ID(), '_site-label'); $siteurl = yit_get_post_meta(get_the_ID(), '_site-url'); $text = strcmp(yit_get_option('text-type-testimonials'), 'content') == 0 ? get_the_content() : get_the_excerpt(); $website = ''; if ($siteurl != '') { if ($label != '') { $website = '<a href="' . esc_url($siteurl) . '">' . $label . '</a>'; } else { $website = '<a href="' . esc_url($siteurl) . '">' . $siteurl . '</a>'; } } ?> <li class='item'> <blockquote><p>”<?php echo $text; ?>
wp_nonce_field('metaboxes-fields-nonce', 'yit_metaboxes_nonce'); ?> <?php foreach ($tabs as $tab) { ?> <div class="tabs-panel" id="<?php echo urldecode(sanitize_title($tab['label'])); ?> "> <?php if (!isset($tab['fields'])) { continue; } $tab['fields'] = apply_filters('yit_metabox_' . sanitize_title($tab['label']) . '_tab_fields', $tab['fields']); foreach ($tab['fields'] as $id_tab => $field) { $value = yit_get_post_meta($post->ID, $field['id']); $field['value'] = $value != '' ? $value : (isset($field['std']) ? $field['std'] : ''); ?> <div class="the-metabox <?php echo $field['type']; ?> clearfix<?php if (empty($field['label'])) { ?> no-label<?php } ?> "> <?php $args = apply_filters('yit_fw_metaboxes_type_args', array('basename' => YIT_CORE_PLUGIN_PATH, 'path' => '/metaboxes/types/', 'type' => $field['type'], 'args' => array('args' => $field))); extract($args);
* * @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 */ yit_get_template( 'blog/big-ribbon/post-formats/standard.php' ); $span = yit_get_sidebar_layout() == 'sidebar-no' ? yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 11 : 12 : 8; if( is_single() || yit_get_option( 'blog-post-formats-list' ) ) : ?> <div class="soundcloud-frame span<?php echo $span ?>"> <?php $url = yit_get_post_meta( get_the_ID(), '_format_audio' ); $iframe = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_iframe' ); $show_artwork = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_artwork' ); $show_comments = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_comments' ); $auto_play = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_autoplay' ); $color = yit_get_post_meta( get_the_ID(), '_format_audio_color' ); echo do_shortcode( '[soundcloud iframe="' . $iframe . '" url="' . $url . '" show_artwork="' . $show_artwork . '" show_comments="' . $show_comments . '" auto_play="' . $auto_play . '" color="' . $color . '"]' ); ?> </div> <div class="clear"></div> <?php endif ?>
<?php /** * Description tab * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ global $post; $tabs = yit_get_post_meta($post->ID, '_custom_tabs'); if (!empty($tabs)) { foreach ($tabs as $tab) { if ($tab["name"] != "" && $tab["value"] != "") { ?> <li class="custom_tab"><a href="#tab-custom-<?php echo $tab["position"]; ?> "><?php echo $tab["name"]; ?> </a></li> <?php } } }