Program Codes
Program Codes
themify_content_after(); // hook
$show_menu_navigation =
$cl='tf_box tf_w'; $show_mobile_menu &&
themify_get_sidebar();
themify_theme_show_area('menu_navigati
?> on');
if($header_design==='header-
</div> left-pane' || $header_design==='header-
right-pane'){
<!-- /layout-container -->
$cart_is_dropdown=$cart_style==='dropdo
<?php wn';
$cl.=' tf_scrollbar';
get_footer();
} themify_header_start(); // hook
Header
?> ?>
<!DOCTYPE html>
<div id="headerwrap" <?php <?php if
<html <?php language_attributes(); ?>> themify_theme_header_background('heade ($show_menu_navigation===true): ?>
r',$cl) ?>>
<head> <?php
<?php if ($show_cart === true &&
<?php $header_design!=='header-left-pane'&&
$show_cart =
$header_design!=='header-right-pane'&&
wp_head(); themify_is_woocommerce_active() &&
$header_design!=='header-minbar-left'&&
themify_theme_show_area('cart');
?> $header_design!=='header-minbar-right'): ?
$cart_style = >
</head> $show_cart === true ?
themify_get_cart_style():false;
<body <?php body_class(); ?>> <div id="cart-link-mobile"
$total = class="tf_hide tf_text_dec">
$show_cart === true && is_object(WC()-
>cart) ? WC()->cart-
<?php
>get_cart_contents_count() : 0;
<a <?php if
global $themify; ($cart_is_dropdown === false &&
$cart_style !== 'link_to_cart'): ?>id="cart-
link-mobile-link"<?php endif; ?>
<?php </div>
if ($header_design === 'header-overlay'): ?
> <?php if
themify_get_ecommerce_template('include ($themify->sticky_sidebar) : ?>
s/shopdock');
} <div
<div class="overlay-menu- id="toggle-mobile-sidebar-button"
sticky"> class="open-toggle-sticky-sidebar toggle-
?>
</div> sticky-sidebar tf_hide">
<?php
<?php endif; ?> endif; ?>
<a id="menu-
icon" class="tf_text_dec tf_box" <?php <i class="mobile-
href="#mobile-menu"><span include THEME_DIR.'/includes/header- sticky-sidebar-icon "></i>
class="menu-icon-inner tf_vmiddle icons.php'; ?>
tf_inline_b tf_rel tf_box"></span><span </div>
class="screen-reader-text"><?php <?php
themify_mobile_menu_start(); // hook ?> <?php
_e( 'Menu', 'themify' ); ?></span></a>
endif; ?>
<?php <?php if
(themify_theme_show_area('menu_navigat <!-- /#mobile-
endif; ?>
ion')): ?> menu -->
<?php $header_design=
<?php
endif; ?> themify_theme_get_header_design();
?>
<?php if($footer_widgets){
themify_header_end(); // hook ?> <?php themify_layout_after(); // hook ?>
$footer_position =
</header> </div> themify_get('footer_widget_position');
'themify/themify-utils.php', <?php
$backTop=sprintf( '<div
themify_footer_before(); // hook ?>
class="back-top tf_vmiddle tf_inline_b
tf_textc tf_clearfix %s"><div
'themify/themify-config.php', class="arrow-up"><a aria-label="%s"
rel="nofollow" href="#header"><span <?php
'theme- class="screen-reader-text">%s</span></a> get_template_part( 'includes/footer-
options.php', </div></div>' banners' ); ?>
'theme- , <footer id="footer"
functions.php', $is_float ? 'back-top-float back-top-hide' : class="pagewidth tf_box tf_clearfix<?php
'', if($header_design==='header-bottom'):?>
<?php
Themify_Enqueue_Assets::loadThemeStyl endif;?> if
eModule('footer-logo'); ($header_design!=='header-bottom' &&
$backTop!=='' ) {
echo <?php
themify_logo_image( 'footer_logo', 'footer- if
logo' ); ?> ( themify_theme_show_area( 'footer_menu
echo $backTop;
_navigation' ) ) : ?>
<!-- /footer-logo }
--> <?php
Themify_Enqueue_Assets::loadThemeStyl
eModule('footer-nav');?>
?>
<?php endif; ?>
<div class="footer-nav-wrap
tf_clear tf_textc"> <div
<?php if class="footer-text tf_vmiddle tf_inline_b
( is_active_sidebar( 'below-logo-widget' ) ) tf_clearfix">
: ?>
<?php
themify_menu_nav( array(
<div <?php if
class="below-logo-widget"> ( themify_theme_show_area( 'footer_texts'
) ) : ?>
'theme_location' => 'footer-nav',
<?php
dynamic_sidebar( 'below-logo-widget' ); ?
> <?php
'fallback_cb' => '',
themify_the_footer_text();
</div>
$wishlist = self::get();
<!-- wp_footer -->
<!-- /.footer-text --> ?>
<?php wp_footer(); ?>
<div class="wishlist-
</body> wrap tf_inline_b tf_vmiddle">
</div>
</html> <a data-
</div> id="<?php echo $id ?>"
Deprecated onclick="javascript:void(0)" class="<?php
echo!self::$is_wishlist_page ? 'wishlist-
<?php button tf_inline_b tf_textc' : 'wishlist-
<?php
themify_footer_end(); // hook ?> remove tf_close' ?><?php if (in_array($id,
global $themify; $wishlist)): ?> wishlisted<?php endif; ?>"
</footer> href="#" rel="nofollow">
$themify->hide_product_image='';
<?php function themify_is_product_search(){}
if($header_design==='header-bottom'):?> <?php echo !self::
function themify_hide_social_share(){} $is_wishlist_page ?
<a class="footer-tab
themify_get_icon('heart','ti',false,false,arra
tf_box" href="#"> function themify_hide_quick_look(){} y('aria-
<?php echo label'=>__('Wishlist','themify'))).'<span
Class-wishlist class="tooltip">' . __('Wishlist', 'themify') .
themify_get_icon('angle-down','ti')?>
'</span>' :'' ?>
<?php
</a>
</a>
if (!themify_is_woocommerce_active()) {
<?php endif;?>
</div>
return;
<!-- /#footer -->
<?php
}
}
class Themify_Wishlist {
$data[self::$key] = $post_id; } }
} else { Themify_WC::set_wc_vars();
}
add_action('wp_head',array(__CLASS__,'h
ead')); remove_action( 'woocommerce_before_sh
public static function removeItem($id =
op_loop',
false) {
} 'woocommerce_catalog_ordering', 8 );
if (!$id) {
} global $wp_query,
$woocommerce_loop; $id = get_the_ID();
public static function head(){
}
$woocommerce_loop['total']=count($items
); $wishlist = self::get();
self::setValue($id); foreach
public static function setValue($id) { ($themify_theme_config['panel']['settings']
$event = true; ['tab']['shop_settings']['custom-module'] as
$wishlist = self::get();
$index => $val) {
}
$wishlist[] = $id;
if ($index === 2) {
} elseif ($action === 'remove' &&
self::setCookies($wishlist); $is_add) { $config[] = array(
} $post = get_post($id); 'title' => __('Wishlist Settings',
public static function 'themify'),
if ($post->post_type ===
setCookies($wishlist) { 'product') { 'function' =>
array(__CLASS__, 'config_view')
self::removeItem($id);
$wishlist = );
$event = true;
json_encode(stripslashes_deep(array_uniq
}
ue($wishlist))); }
$config[] = $val;
$time = self::get_expiration(); }
}
$_COOKIE[self::$cookie_name] = if ($event) {
$wishlist; $themify_theme_config['panel']
$total = self::get_total(); ['settings']['tab']['shop_settings']['custom-
wc_setcookie(self::$cookie_name,
module'] = $config;
$wishlist, $time, false);
return $themify_theme_config;
} die("$total");
}
public static function get($recalculate = }
false) {
}
static $wishlist = null; public static function config_view() {
wp_die();
if (is_null($wishlist) || $recalculate) { $key = 'setting-wishlist_disable';
}
$wishlist = ! $html = '<p><span class="label">' .
empty($_COOKIE[self::$cookie_name]) ? public static function
__('Wishlist', 'themify') . '</span>
json_decode(stripslashes($_COOKIE[self:: enqueue_settings($settings) {
$cookie_name]), true) : array(); <label for="' . $key . '"><input
type="checkbox" id="' . $key . '" name="' .
} $key . '" ' . checked(themify_get($key),
$settings['wishlist'] = array(
'on', false) . ' /> ' . __('Disable Wishlist',
return $wishlist;
'no_items' => __('There is no 'themify') . '</label></p>';
} wishlist item.', 'themify'),
$page_wishlist = themify_get(self::
public static function ajax_add() { 'cookie' => self::$cookie_name, $key,false,true);
if (is_null($is_enabled)) { if($text){
'linkedin'=>'//www.linkedin.com/cws/share $args['t'] = $text;
$is_enabled = !
?url='
themify_get('setting-
wishlist_disable',false,true); }
);
} $args['original_referer'] =
public static function get_the_permalink();
get_all_networks() {
return $is_enabled;
break;
if
}
( is_null( self::$all_networks ) ) { case 'twitter':
}
if($text){
case 'pinterest':
return 'yes' !== $themify-
$url.='&token=&isFramed=true'; >hide_meta;
return
break; 'toolbar=no,width=700,height=300';
}
case 'pinterest': }
if
} ( 'single' === $context ) {
if($text){
} $social_share_status
foreach ( $networks as
= 'yes' !== $hide_social_share;
if(!empty($args)){ $network_slug => $network_label ) {
foreach($args as $k=>$v){
} else {
if
$url.='&'.
( themify_check( "setting-
$k.'='.urlencode(html_entity_decode($v,
social_share_exclude_$network_slug",true
ENT_COMPAT, 'UTF-8')); $social_share_status
)){
= ! themify_check( 'setting-
} social_share_single_disabled',true );
} continue;
return esc_url($url); }
} }
} $get_social_image = $key,
wp_get_attachment_image_src( get_post_t
humbnail_id(), 'full' );
if ( ! empty( $hide_social_share
) && 'default' !== $hide_social_share ) { checked( themify_get( $key,false,true ),
$share_image = 'on', false ),
isset( $get_social_image[0] )?
$social_share_status $get_social_image[0]:'';
= 'yes' !== $hide_social_share; esc_html__( 'Disable social
} else{
share in archive views (eg. category, tag
pages, etc.)', 'themify' )
} else {
$share_image = );
themify_get( 'post_image','' );
$key =
$social_share_status } 'setting-social_share_single_disabled';
= ! themify_check( 'setting-
social_share_archive_disabled',true ); return $html .=
themify_https_esc( $share_image ); sprintf(
}
}
public static function '<p><label for="%1$s"><input
shortcode($atts){ type="checkbox" id="%1$s"
return $social_share_status && name="%1$s" %2$s />
( ! is_singular() || themify_is_query_page() ob_start(); %3$s</label></p>',
);
} get_template_part('includes/social-share'); $key,
left:0; box-sizing:border-box
transform:none; }
sprintf( esc_html__( 'Exclude
%s', 'themify' ), $network_label ) text-align:left .menu-icon-inner:before{
} top:0;
); height:100%
body:not(.header-minbar-left):not(.header-
} minbar-right):not(.header-left-
pane):not(.header-right-pane):not(.header- }
return slide-left):not(.header-slide-right)#site-
.menu-icon-inner:after{
$html; description:before{
top:50%;
} left:0;
transform:translateY(-50%)
} margin-left:24px
}
} }
#menu-icon-close{
add_shortcode( 'themify_share_buttons', #menu-icon{
array('Themify_Social_Share','shortcode')); display:block;
position:absolute;
Mobile-menu.css position:absolute;
top:12px;
#headerwrap{ text-decoration:none;
right:0;
min-height:60px top:14px;
z-index:9999;
} right:12px;
line-height:1em;
#header{ min-width:36px;
border-radius:100%;
height:auto; min-height:36px;
padding: 12px 10px;
width:auto; transform-origin:center;
}
text-align:initial; z-index:1;
#menu-icon:hover{
padding:0; border-radius:100%;
background-
} color:rgba(150,150,150,.15); }
#site-logo{ } #menu-icon-close:before,
} width:22px; height:60%
#site-description{ height:18px }
left:0; } #menu-icon-close:hover{
margin-top:11px } width:276px;
} display:block; text-align:left
.top-icon-wrap{ text-align:center; }
} left:auto
} margin-left:auto; float:left;
margin-left:0; } padding-left:23px
left:auto; transform:none;
.skin-sport.woocommerce #respond
input#submit.alt:before, left:auto;
right:-6px
.skin-sport.woocommerce a.button:before, right:0
}
.skin-sport.woocommerce }
body:not(.header-boxed-content).skin-sport button.button:before,
#site-description{
.list-thumb-image .wishlist-
.skin-sport.woocommerce button .tooltip:before,
margin-left:0; input.button:before,
margin-right:7px .list-large-image .wishlist-
.skin-sport.woocommerce button .tooltip:before,
a.button.alt:before,
}
.auto_tiles .wishlist-button .tooltip:before{
.skin-sport.woocommerce
.skin-sport.woocommerce .woocommerce-
button.button.alt:before, transform:none;
ordering select{
.skin-sport.woocommerce left:auto;
padding:.8em 1em
input.button.alt:before{
} right:11px
transform:skewX(20deg)
.skin-sport.woocommerce .woocommerce- }
}
ordering:after{
.woocommerce .woocommerce-product-
.woocommerce ul.cart_list li img, rating .star-rating{
margin-right:-40px;
.woocommerce ul.product_list_widget li float:right;
margin-left:30px
img{
} margin-left:4px;
margin-right:4px;
body:not(.header-block):not(.header- margin-right:0
margin-left:0;
minbar-left):not(.header-minbar-
}
right).skin-sport .icon-menu li > float:left
a .tooltip:before, .woocommerce div.product
} form.cart .button,
.skin-sport .icon-menu .icon-menu-
count:before, .woocommerce #content div.product .woocommerce .quantity .qty{
div.summary{
margin-right:0;
background-repeat:no-repeat;
margin-left:1px;
background-size:12px;
text-transform:uppercase;
transition-property:background- } top:0;
color,transform,box-shadow;
.col4-1, left:0;
transition-duration: .3s
.col4-2, bottom:0;
}
.col3-1{ right:0;
input[type=reset]:hover,input[type=submit]
:hover,button:hover{ float:left; pointer-events:none;
color:#fff; } -webkit-backdrop-
filter:blur(5px);
transform:translateY(-2px); .col4-1{
backdrop-filter:blur(5px)
box-shadow:0 5px 12px 3px width:22.6%
rgba(0,0,0,.12) }
}
} .slide-cart-visible #headerwrap:before,
.col4-2{
img,textarea,input,.author- .mobile-menu-visible #headerwrap:before{
box,.widget,.col4-1,.col4-2,.col3-1{ width:48.4%
display:none;
box-sizing:border-box }
}
} .col3-1{
.fixed-header-enabled #headerwrap{
.pagewidth, width:31.2%
position:sticky;
.module_row>.row_inner, }
position:-webkit-sticky; /*for safari*/
.module-layout- .col4-1.first,
part .module_row.fullwidth_row_container }
.col4-2.first,
>.row_inner{
.transparent-header #headerwrap,
.col3-1.first{
width:1160px;
.transparent-header.no-fixed-header
margin-left:0; #headerwrap{
max-width:100%;
clear:left position:fixed
margin:0 auto
} }
}
#headerwrap{ /* Announcement Bar compatibility */
#content{
background- .themify_announcement.bar .announcemen
width:72%;
color:rgba(255,255,255,.9); t_container{
padding:6.5% 0
left:0; width:auto;
}
top:0; margin:0 28px
.full_width #layout{
z-index:999; }
width:100%;
position:relative; #header{
max-width:100%
text-align:center; width:calc(100% - 56px);
}
box-shadow:0 1px 15px max-width:none;
.full_width #content{
rgba(0,0,0,.12); margin:0 28px
#headerwrap a{ } }
} display:flex; background-
color:rgba(150,150,150,.15);
#headerwrap a:hover{ align-items:center;
}
color:#dcaa2e flex-wrap:wrap
.icon-menu li>a{
} }
display:inline-block;
.header-icons .search-button{ .icon-menu{
text-decoration:none;
text-decoration:none; margin:0;
margin:3px 5px;
text-align:center; padding:0;
position:relative
outline:0; list-style:none;
}
border-left:1px solid }
rgba(0,0,0,.05); .icon-shopping-cart svg {
.icon-menu li{
margin-right:-28px; margin-top:-2px;/* for
display:inline-block; alignment */
margin-left:10px
vertical-align:middle; }
}
margin:0; .icon-shopping-cart.tf_loader svg {
.header-icons .search-button:hover{
padding:10px 0; display:none
background:rgba(150,150,150,.15)
position:relative; }
}
list-style:none; .icon-menu ul li{
.search-button:focus{
} padding:0
outline:0
.icon-menu i{ }
}
font-size:19px; .icon-menu li>.sub-menu{
.search-button .tf_fa{
padding:9px 10px; text-align:left
display:block;
display:inline-block; }
font-size:1.3em;
vertical-align:middle; .cart-style-dropdown .icon-menu .cart
margin:auto; a .tooltip{
line-height:1;
padding:1.06em .8em display:none
box-shadow:none;
} }
text-shadow:none;
.header-icons{ .icon-menu li>a .tooltip{
border-radius:100%;
position:absolute; background-color:#000;
}
right:0; color:#fff;
#header .icon-shopping-cart.tf_loader{
bottom:0; display:inline-block;
font-size:7px;
display:flex; font-size:.8em;
padding:9px
flex-wrap:wrap;
}
line-height:1.3em;
#header .icon-shopping-
align-items:center; cart.tf_loader:before{ text-align:center;
bottom:100%; } #main-nav>.current-menu-
item>a:hover:before{
left:50%; #main-nav li{
color:#dcaa2e
margin-left:-5px margin:0;
}
} padding:0;
#main-nav .highlight-link>a{
list-style:none;
padding:.2em 1em;
position:relative;
position:absolute;
#slide-cart.sidemenu-on,
.empty-shopdock{
width:10px; top:0;
background:rgba(214,214,214,.4)
transform:rotate(45deg); }
}
background:currentColor; .icon-menu li>.sub-menu ul{
#main-nav li>.sub-menu{
z-index:9999; left:auto;
display:none
border-radius:10px; right:100%;
}
} top:0;
}
.child-arrow:after{ margin-top:-10px
.icon-menu li>.sub-menu,
left:16px; }
#main-nav li>.sub-menu{
transform:rotate(-45deg) #main-nav .tf_post_count {
color:#484848;
}
background-color:#fff;
.toggle-on>a .child-arrow:after, background:rgba(150,150,150,.15);
box-shadow:0 6px 20px 5px
.toggle-on>a .child-arrow:before{ rgba(0,0,0,.12); border-radius:100%;
} text-decoration:none; vertical-align:middle
float:left; } .post-cat-tag-wrap{
background-color:#fff; .post-image{ }
padding:0; } .post-tag{
} float:left; color:#e1e1e1
.author-posts-by{ margin-right:1em }
font-size:1.4em; float:right; }
text-transform:uppercase; display:block; }
} text-shadow:none; }
} background-image:none }
.post-date{ } .post-pagination a{
display:inline-block; } }
border-radius:100%;
border:none; } }
} font-weight:500; margin-left:4%
color:#000 } margin-bottom:1em
} .footer-text .one, }
} vertical-align:middle margin-right:2em
#footer{ } }
} margin-right:1em float:right;
} padding-top:2.5em margin-left:auto;
} margin-right:auto
text-align:center; } font-size:2.4em
max-width:100% .mobile-menu-visible, }
font-style:italic; } .module_row>.row_inner,
position:static } width:100%;
} #pagewrap, max-width:100%;
} max-width:100% }
}
@media screen and (max-width:800px){ .tf-mc-form .mc4wp-form-fields
.mobile-menu-visible #headerwrap #menu- input[type=submit]{
icon:hover{ .page-title,
padding-left:.5em;
#content{padding:0;width:auto;max-
width:100%;float:none}.col4-1,.col4- color:rgba(150,150,150,.15)}.icon-menu item>a:hover:before{color:#dcaa2e}#main
2,.col3-1{float:left;margin-left:3.2%}.col4- li>a{display:inline-block;text- -nav .highlight-link>a{padding:.2em
1{width:22.6%}.col4- decoration:none;margin:3px 1em;border:1px solid;border-
2{width:48.4%}.col3- 5px;position:relative}.icon-shopping-cart radius:8px}.icon-menu ul a,#main-nav ul
svg{margin-top:-2px}.icon-shopping- a{border:0;border-bottom:1px solid
// ),
Show Cart Icon
'after' => '<div array(
class="clear"></div>', array(
),
'name' =>
array( 'name' => 'exclude_cart', 'exclude_icon_menu_links',
'title' => __('Site Tagline', 'type' => 'dropdownbutton', 'type' => 'dropdownbutton',
'themify'),
),
), ),
'name' =>
array( array( 'exclude_menu_navigation',
),
'type' => 'dropdownbutton', array('name' => __('Flip from
array( Bottom', 'themify'), 'value' => 'flip-from-
bottom'),
'name' =>
'states' =>$states, 'mobile_menu_styles',
array(
array('name' => __('Boxed', array('name' => __('Rotate
'themify'), 'value' => 'boxed'), ZoomIn', 'themify'), 'value' => 'rotate-
zoomin'),
'name' =>
'exclude_top_bar_widgets',
array('name' => __('Dropdown',
'themify'), 'value' => 'dropdown'), array('name' => __('Slide
Down', 'themify'), 'value' => 'slide-down'),
'description' => '',
),
array('name' => __('FlipIn array('name' => __('Swing
), Right', 'themify'), 'value' => 'flipin-right'), Right to Left', 'themify'), 'value' => 'swing-
right-to-left'),
'descripti
on' => '',
array('name' => __('Flip from
Left', 'themify'), 'value' => 'flip-from-left'), array('name' => __('Swing Top
'before' to Bottom', 'themify'), 'value' => 'swing-
=> '', top-to-bottom'),
'after' => array('name' => __('Flip from
'<div class="clear"></div>', Right', 'themify'), 'value' => 'flip-from-
right'), array('name' => __('Swipe Left',
'themify'), 'value' => 'swipe-left'),
'value' ),
=> 'link_to_cart', array('value' => '', 'name' => '',
),
'selected' => true),
'name'
=> __('Link to cart page', 'themify'),
), 'toggle' =>
array('value' => 'right-center', array('solid-toggle', 'video-toggle'),
'name' => __('Right Center', 'themify')), ),
'class' => 'hide-if
'descripti none',
on' => __('Video format: mp4. Note: video
array('value' => 'right-bottom', background does not play on some mobile ),
'name' => __('Right Bottom', 'themify')), devices, background image will be used as
fallback.', 'themify'), array(
'after' =>
'',
'title' => '',
array('value' => 'separator
'center-center', 'name' => __('Center ' => '' 'description' =>
Center', 'themify')), __('Background Image Mode', 'themify'),
),
'type' =>
array('value' => 'center-bottom', 'toggle' => 'video- 'dropdown',
'name' => __('Center Bottom', 'themify')) toggle',
'meta' => array(
), 'class' => 'hide-if
none', array(
'toggle' =>
), 'value'
'fullcover-toggle slider-toggle',
=> 'fullcover',
'class' => 'hide-if array(
'name'
none',
'name' => => __('Fullcover', 'themify')
), 'background_color',
),
array( 'title' =>
__('Header Background', 'themify'), array(
'type' => 'multi',
'description' => '', 'value'
'name' => => 'repeat',
'_video_select', 'type' => 'color',
'name'
'title' => 'meta' => => __('Repeat all', 'themify')
__('Header Video', 'themify'), array('default' => null),
),
'meta' => array( 'toggle' =>
array('solid-toggle', 'slider-toggle', 'video- array(
'fields' => toggle'),
'value'
array(
'class' => 'hide-if => 'no-repeat',
array( none',
'name'
'format' => 'rgba', => __('No repeat', 'themify')
'value' ),
=> 'repeat-y',
// Footer Group 'name' =>
'name' 'exclude_footer_site_logo',
=> __('Repeat vertically', 'themify') array(
'name' =>
'exclude_footer_back', 'name' array('name' => __('None',
=> __('Default', 'themify') 'themify'), 'value' => 'none'),
),
'description' => '',
array('name' => __('Grayscale',
array(
'themify'), 'value' => 'grayscale'),
'title' => __('Back to Top 'value'
Arrow', 'themify'), => 'bottom',
array('name' => __('Sepia',
'name' 'themify'), 'value' => 'sepia'),
=> __('After Footer Text', 'themify')
'type' => 'dropdownbutton',
),
array('name' => __('Blur',
array( 'themify'), 'value' => 'blur'),
'states' =>$states,
'value' ),
=> 'top',
'class' => 'hide-if none', 'default' =>
'name' 'initial',
=> __('Before Footer Text', 'themify')
),
'after' => '<div
class="clear"></div>', )
array(
), ),
'name' =>
) 'imagefilter_options_hover',
),
),
'source' => }
'https://downloads.wordpress.org/plugin/th wp_enqueue_script( 'themify-admin-
emify-wc-product-filter.zip', warning', themify_enque(THEME_URI . die;
'/admin/js/themify.admin.warning.js'),
'required' => false, array('jquery'), Themify_Enqueue_Assets:: }
$themeVersion, true );
'version' => '1.1.9',
echo '<div
add_action( 'wp_ajax_themify_dismiss_wa
'force_activation' => false, class="update-nag">'.__('Remember to
rning', 'themify_dismiss_warning' );
install and activate WooCommerce plugin
'force_deactivation' => false, to enable the shop.', 'themify'). ' <a }
href="#" class="themify-close-warning"
), data-warning="' . $warning . '" data- function
nonce="' . wp_create_nonce( 'themify- themify_theme_skins_list( $skins ) {
array(
warning' ) . '">' . __("Got it, don't remind
'name' me again.", 'themify') . '</a></div>'; unset( $skins[0] ); // remove No
=> __( ' Themify Popup', 'themify' ), Skin option
}
'slug'
}
=> ' themify-popup',
// set Default as the first choice
add_action( 'admin_notices',
'source'
'themify_check_ecommerce_environment_ $default = $skins['default'];
=>
admin' );
'https://downloads.wordpress.org/plugin/th unset( $skins['default'] );
emify-popup.zip', }
'required' function themify_admin_script_style() {
=> false,
wp_enqueue_script('themify-admin-
'version' script', themify_enque(THEME_URI . return
=> '1.1.4', '/admin/js/admin- array_merge( array( 'default' => $default ),
script.js'),null,Themify_Enqueue_Assets:: $skins );
'force_act
$themeVersion,true);
ivation' => false, }
}
'force_de function
activation' => false, if ( ! themify_theme_bonus_addons_update( $m
function_exists( 'themify_dismiss_warning' atch, $subs ) {
)
)){
$theme = wp_get_theme();
);
function
$theme_name =
return $plugins; themify_dismiss_warning() {
( is_child_theme() ) ? $theme->parent()-
>Name : $theme->display('Name');
}
check_ajax_referer( 'themify- $theme_name =
if ( ! themify_is_woocommerce_active() ) warning', 'nonce' ); preg_replace( '/^Themify\s/', '',
{
$theme_name );
$result = false;
/**
foreach ( $subs as $value ) {
if
* Check in admin if Woocommerce is ( isset( $_POST['warning'] ) ) { if
enabled and show a notice otherwise.
( ( stripos( $value['title'], $theme_name ) !
} global
$post; 6 => sprintf( __('%s published.',
else{ 'themify'), $post_type_object->labels-
>name ),
if(!$post)
add_filter('themify_metabox/fields/themify {
-meta-boxes', 7 => sprintf( __('%s saved.',
'themify_theme_setup_metaboxes', 10, 2); 'themify'), $post_type_object->labels-
>name ),
$post = get_post();
add_filter('themify_post_type_default_opti
ons', 8 => sprintf( __('%s submitted.',
'themify_theme_setup_CPT_metaboxes'); 'themify'), $post_type_object->labels-
}
>name ),
}
add_filter( 'themify_theme_required_plugi
ns', $post_type = $post-
'themify_theme_register_required_plugins' >post_type;
9 => sprintf( __( '%s scheduled
);
for: <strong>%s</strong>.', 'themify' ),
add_filter( 'themify_builder_validate_login
$post_type_object =
', 'themify_theme_bonus_addons_update',
get_post_type_object( $post_type );
10, 2 ); $post_type_object-
>labels->name, date_i18n( __( 'M j, Y @
Post-type-portfolio $view = G:i', 'themify' ), strtotime( $post-
get_permalink( $post->ID ); >post_date ) ) ),
<?php
if ( ! class_exists( 'Themify_Portfolio' ) ) {
10 => sprintf( __( '%s draft
if ( 'true' == $more_link ) { }
'more_text' => __('More →',
'themify'),
$more_link =
get_post_type_archive_link( $post_type ); switch ( $atts['style'] ) {
'limit' => 4,
} case 'list-post':
'category' => 'all', // integer
category ID
$args['image_w'] = 1160;
'order' => 'DESC', // ASC
break;
break; 'post_type' => $post_type,
case 'grid2-thumb':
case 'grid3': 'posts_per_page' => $limit,
if( '' !=
$id ){
$args['image_w'] = 1280;
$args['image_w'] = 561;
if(strpos($id, ',')){
$args['image_h'] = 500;
$args['image_h'] = 321;
$ids = explode(',',
str_replace(' ', '', $id));
break;
break;
foreach ($ids as
} $string_id) {
case 'list-large-
image': }
return $int_ids[]
do_shortcode( $this- = intval($string_id);
$args['image_w'] = 800; >shortcode( shortcode_atts( $args, $atts ),
$this->post_type ) );
}
}
} } // Reverse logic
} $out = '';
if( '' == $image_h ){
$class=apply_filters( 'themify_loops_wrap
per_class', array($post_type,$style),
$themify->hide_title = 'yes' }
$post_type,$themify-
=== $title? 'no': 'yes'; >post_layout,'shortcode' );
$themify-
$themify->unlink_title = ( '' == >use_original_dimensions = 'yes' ===
$out = '<div data-lazy="1"
$unlink_title || 'no' === $unlink_title )? 'no' $use_original_dimensions? 'yes': 'no';
class="loops-wrapper shortcode ' .
: 'yes'; implode(' ',$class) . ' tf_clear">';
$themify->display_content =
$themify->hide_image = 'yes' $display;
if ( 'slider' ===
=== $image? 'no': 'yes'; $themify->post_layout ) {
$themify->more_link =
$themify->hide_meta = 'yes' $more_link;
switch
=== $post_meta? 'no': 'yes'; ( $speed ) {
$themify->more_text =
$themify->hide_date = 'yes' $more_text;
=== $post_date? 'no': 'yes'; case 'fast':
$themify->post_layout =
if(!$multiple) { explode(' ',$style);
$speed = '500';
$themify-
if( '' == $image_w || >post_layout=trim($themify-
get_post_meta($args['p'], 'image_width', >post_layout[0]);
break;
true ) ){
$themify->query_taxonomy =
if( '' == $image_h || $this->tax; break;
get_post_meta($args['p'], 'image_height',
true ) ){
ob_start();
case 'slow':
$themify-
>height = get_post_meta($args['p'],
'image_height', true );
get_template_part(
'includes/filter', $this->post_type ); $speed = '4000';
new Themify_Portfolio();
}
if( item.hasClass( 'menu-item-
depth-0' ) ) {
$out .= Admin-nav-menu.js
'<div class="slideshow tf_carousel swiper-
container tf_overflow tf_rel" data-lazy="1" jQuery(function($){ item.find( '.edit-menu-item-title'
data-autoplay="' . $autoplay . '" data- ).closest( 'p' ).show();
speed="' . $speed . '" data-scroll="' . $scroll function add_item_callback() {
. '" data-visible="' . $visible . '"><div }
$( '.spinner',
class="swiper-wrapper tf_lazy tf_rel tf_w
'#themify-widget- }
tf_h">';
section' ).fadeOut(function(){
});
$
(this).remove(); $( 'body' ).on( 'change',
$out .= '.themify_field_tf-mega', function(){
themify_get_shortcode_template($posts, });
'includes/loop-portfolio', 'index'); if( $( this ).val() == ''
} ){
$( '#themify-widget-menu- $
$out .= submit' ).click(function(){ ( this ).closest( '.menu-item' ).find( '.tf-
'</div></div>'; dropdown-columns-field' ).show();
var selected = $
('#themify-menu-widgets :checked'), } else {
} else {
$button = $
$( this ); ( this ).closest( '.menu-item' ).find( '.tf-
dropdown-columns-field' ).hide();
$out .= if( selected.length >
themify_get_shortcode_template($posts, 0){ }
'includes/loop-portfolio', 'index');
$( '<span if( $( this ).val() ==
class="spinner" style="visibility: visible; 'columns' ) {
} display:
inline-block;"></span>' ).insertBefore( $bu $
tton ); ( this ).closest( '.menu-item' ).find( '.tf-
mega-columns-layout' ).show();
$out .= $this-
>section_link($more_link, $more_text, } else {
$post_type);
wpNavMenu.addLinkToMenu( '#' + $
selected.val(), selected.text(), null, ( this ).closest( '.menu-item' ).find( '.tf-
add_item_callback ); mega-columns-layout' ).hide();
$out .= '</div>';
} }
$themify = clone }); } );
$themify_save; // revert to original
$themify state $( '#update-nav-menu' ) $( '#update-nav-
menu' ).on('click', '.item-edit', function(){
.on('click', '.item-edit',
function(){ $
( this ).closest( '.menu-
var item = $
item' ).find( '.themify_field_tf-
(this).closest( 'li.menu-item-custom' );
mega' ).trigger( 'change' );
if( item.length < 1 )
wp_reset_postdata(); });
return;
}
themify_options_module($default_options, $post_types =
$class = "";
'setting-hide_page_title') . ' get_post_types(array('public' => true,
} 'publicly_queryable' => 'true'), 'objects');
$class = "";
foreach($custom_posts as $key
=> $cPost){ </p>';
}
$output .= '<p> }
}
if ($cPost['archive']) { $val = isset( $data[$prefix.
$key.'_single'] ) ? $data[$prefix.
$key.'_single'] : '';
$output .= '<input
$output .= '<p>'. type="hidden" name="'.($prefix.
sprintf('<span class="label">%s $key).'_archive" class="val" value="'.
%s</span>', $cPost['name'], __('Archive $val.'" /></p>'; foreach
Sidebar', 'themify')); ( $sidebar_location_options as $option ) {
$output .= '<p
$val = class="pushlabel" data-show-if- if ( ( '' == $val || !
isset( $data[$prefix.$key.'_archive'] ) ? element="[name=' . ($prefix.$key) . $val || ! isset( $val ) ) &&
$data[$prefix.$key.'_archive'] : ''; '_archive]" ( isset( $option['selected'] ) &&
$option['selected'] ) ) {
data-show-if-
value=\'["sidebar1", "sidebar1 sidebar-
left"]\'>
$val =
foreach $option['value'];
( $sidebar_location_options as $option ) {
<label
} else { array(
</label>
'name' =>
'query_all_post_types',
$class =
""; </p></p>';
'type' => 'dropdown',
}
'title' => __('Query All Post
} } Types', 'themify'),
) 'name' =>
__('Enable', 'themify'),
'name' =>
__('Polaroid', 'themify'), ),
),
),
array(
array( array(
'name' => 'post_gutter',
'value' => 'boxed', 'value' =>
'title' => __('Post Gutter', 'pagination',
'name' => 'themify'),
__('Boxed', 'themify'), 'name' =>
'description' => '', __('Disable', 'themify'),
),
'type' => 'dropdown', ) )
array( ),
'meta' => array(
'value' => 'flip', array(
array(
'name' => 'name' => 'posts_per_page',
__('Flip', 'themify'), 'value' => '',
'title' => __('Posts Per Page',
) 'name' => '', 'themify'),
), array(
thumbnails/'),
array( 'value' =>
'infinite', 'type' => 'featimgdropdown',
'value' =>
'disable', 'name' => 'display_callback' =>
__('Enable', 'themify'), 'themify_is_image_script_disabled'
'name' =>
__('Disable', 'themify'), ), ),
) ) array( array(
),
'value' => 'name' =>
array( 'pagination', 'product_show_sorting_bar',
'name' => 'product_gutter', 'name' => 'title' => __('Show Sorting
__('Disable', 'themify'), Bar', 'themify'),
'title' => __('Gutter Spacing',
'themify'), ) ) 'description' => '',
),
'description' => '', 'type' => 'dropdown',
array(
'type' => 'dropdown', 'meta' => array(
'name' =>
'meta' => array( 'product_archive_show_short', array('value' => '',
'name' => '', 'selected' => true),
array( 'title' => __('Product
Description', 'themify'), array('value' => 'no',
'value' => '',
'name' => __('No', 'themify')),
'description' => '',
$output .=
'. themify_post_meta_options($prefix .
<span
checked(themify_get(esc_attr($prefix) . 'post_meta', $data);
class="label">' . __('Post Sidebar Option',
'post_sticky_sidebar'), 1, false) . '
'themify') . '</span>'; $output .= '<p>
$val = themify_get($prefix .
'post_layout');
/>' . __('Enable sticky sidebar', <span
foreach ($sidebar_location_options as 'themify') . ' class="label">' . __('Hide Post Date',
$option) { 'themify') . '</span>
$class = 'selected';
themify_options_module($default_options,
} else { $prefix . 'post_date') . '
<span
$class = ''; class="label">' . __('Hide Post Title',
'themify') . '</span>
</select>
}
</p>';
</p>'; $output .= '<p><span class="label">' .
$output .= '<p> __('Show Author Box', 'themify') .
$output .= '</span><label for="' . $pre . '"><input
themify_feature_image_sizes_select('imag type="checkbox" id="' . $pre . '" name="' .
e_post_single_feature_size'); $pre . '" ' . $author_box_checked . ' /> ' .
<span class="label">' .
__('Featured Image Position', 'themify') . __('Show author box in all Posts', 'themify')
$output .= '<p>
'</span> . '</label></p>';
<span
$pre = 'setting-post_nav_';
class="label">' . __('Image Size', 'themify')
<select name="' . . '</span> $output .= '<p>
esc_attr($prefix) .
'single_media_position">' .
<input type="text" <span
class="width2" name="setting- class="label">' . __('Post Navigation',
themify_options_module(themify_media_p image_post_single_width" value="' . 'themify') . '</span>
osition(), $prefix . 'single_media_position') themify_get('setting-
.' image_post_single_width') . '" /> ' .
__('width', 'themify') . '
<label for="' . $pre .
<small>(px)</small>
'disable">
</select>
</label>
<select name="' . <br /><span
$prefix . 'post_image">' . class="pushlabel
show_if_enabled_img_php"><small>' . <span
__('Enter height = 0 to disable vertical class="pushlabel vertical-grouped">
themify_options_module($default_options, cropping with img.php enabled', 'themify')
$prefix . 'post_image') . '
<label
for="' . $pre . 'same_cat">
. '</small></span>
</select>
);
themify_image_dimensions_field(array('titl
e' => __('Product Image Dimension', $default_options = array(
'themify'))) $output .= '<p class="pushlabel" data-
array('name' => '', 'value' => ''), show-if-element="[name=setting-
); }} shop_layout]"
array('name' => __('Yes',
function themify_shop_layout($data = 'themify'), 'value' => 'yes'), data-show-if-
array()) { value=\'["sidebar1", "sidebar1 sidebar-
array('name' => __('No', left"]\'>
$data = themify_get_data(); 'themify'), 'value' => 'no')
$sidebar_options = array( ); <label
array('value' => 'sidebar1', 'img' for="setting-shop_sticky_sidebar">
$content_options = array(
=> 'images/layout-icons/sidebar1.png',
'title' => __('Sidebar Right', 'themify')), array('name' => __('Short
Description', 'themify'), 'value' =>
array('value' => 'sidebar1 'excerpt'), <input type="checkbox"
sidebar-left', 'img' => 'images/layout- id="setting-shop_sticky_sidebar"
icons/sidebar1-left.png', 'title' => array('name' => __('Full name="setting-shop_sticky_sidebar"
__('Sidebar Left', 'themify')), Content', 'themify'), 'value' => 'content'), value="1"
array('value' => 'sidebar-none', array('name' => __('None',
'img' => 'images/layout-icons/sidebar- 'themify'), 'value' => ''),
none.png', 'title' => __('No Sidebar',
'themify'), 'selected' => true) ); ' . checked(themify_get('setting-
shop_sticky_sidebar'), 1, false) . '
); $val = isset($data['setting-shop_layout'])
? $data['setting-shop_layout'] : '';
$output = '';
<span
themify_options_module(array(
class="label">' . __('Hide Product Title',
<label for="setting- array('name' => 'themify') . '</span>
shop_masonry_disabled"><input __('Default', 'themify'), 'value' => 'gutter'),
type="checkbox" id="setting-
shop_masonry_disabled" name="setting- array('name' => <select
shop_masonry_disabled" ' . __('No gutter', 'themify'), 'value' => 'no- name="setting-
checked(themify_get('setting- gutter') product_archive_hide_title">
shop_masonry_disabled'), 'on', false) . ' />
' . __('Disable masonry layout', 'themify') . ), 'setting-
'</label></p>'; product_post_gutter') . '
'.
themify_options_module($default_options,
'setting-product_archive_hide_title') . '
$default_options = array(
<input type="checkbox" <span
array('name' => '', 'value' => ''), id="setting-single_product_sticky_sidebar" class="label">' . __('Image Size',
name="setting- 'themify') . '</span>
array('name' => __('Yes', single_product_sticky_sidebar" value="1"
'themify'), 'value' => 'yes'),
<input type="text"
array('name' => __('No',
class="width2" name="setting-
'themify'), 'value' => 'no')
' . checked(themify_get('setting- default_product_single_image_post_width
); single_product_sticky_sidebar'), 1, false) . ' " value="' . themify_get('setting-
default_product_single_image_post_width'
$val = isset($data['setting- ) . '" /> ' . __('width', 'themify') . '
single_product_layout']) ? $data['setting- <small>(px)</small>
single_product_layout'] : ''; />' . __('Enable sticky sidebar',
'themify') . '
$output = '<p><span class="label">' . <input type="text"
__('Product Sidebar Option', 'themify') . class="width2" name="setting-
'</span>'; default_product_single_image_post_height
</label>
" value="' . themify_get('setting-
foreach ($options as $option) {
default_product_single_image_post_height
if (( '' == $val || !$val || ! ') . '" /> <span>' . __('height', 'themify') . '
</p>';
isset($val) ) && ( isset($option['selected']) <small>(px)</small></span>
&& $option['selected'] )) { $val = isset($data['setting-
product_image_layout']) ? $data['setting-
$val = $option['value']; product_image_layout'] : ''; <br /><span
class="pushlabel"><small>' . __('Enter
} $output .= '<p><span class="label">' . height = 0 to disable vertical cropping with
__('Product Image Layout', 'themify') . img.php enabled', 'themify') .
if ($val == $option['value']) { '</span>'; '</small></span>
$class = 'selected'; foreach ($defaul_image_layout as
$option) {
} else {
<input
<span <label for="setting-
type="checkbox" id="setting-
class="label">' . __('Product Gallery', hide_shop_single_breadcrumbs"><input
product_reviews_empty" name="setting-
'themify') . '</span> type="checkbox" id="setting-
product_reviews_empty" value="1" ' .
hide_shop_single_breadcrumbs"
checked(themify_get("setting-
name="setting-
product_reviews_empty"), 1, false) . '
<label><input hide_shop_single_breadcrumbs" ' .
/>' . __('Always show rating
type="radio" name="setting- checked(themify_get('setting-
stars (even when it has no rating)',
product_gallery_type" value="zoom" ' . hide_shop_single_breadcrumbs'), 'on',
'themify') . '
checked($gallery_type, 'zoom', false) . '/> false) . ' /> ' . __('Hide shop breadcrumbs',
' . __('Zoom Image', 'themify') . '</label> 'themify') . '</label></p>';
$key = 'setting-
full_height_header'; checked( themify_get( 'setting-
checked( themify_get( 'setting-
exclude_site_tagline','',true ), 'on', false ),
exclude_search_button','',true ), 'on',
$html .= sprintf('<p false ),
class="hide-if none header-logo-left
header-left-pane header-minbar-left __('Exclude Site Tagline.',
header-minbar-right header-slide-left 'themify')
'setting-
array( 'name' => __( 'SlideIn
exclude_menu_navigation',
array( 'name' => __( 'Fadein Left', 'themify' ), 'value' => 'slidein-left' ),
Down', 'themify' ), 'value' => 'fadein-down'
),
checked( themify_get( 'setting-
array( 'name' => __( 'SlideIn
exclude_menu_navigation','',true ), 'on',
Right', 'themify' ), 'value' => 'slidein-
false ),
array( 'name' => __( 'Flip right' ),
Down', 'themify' ), 'value' => 'flip-down' ),
$html .= '<p array( 'name' => __( 'Flip from array( 'name' => __( 'Swipe
class="hide-if none" data-show-if- Bottom', 'themify' ), 'value' => 'flip-from- Right', 'themify' ), 'value' => 'swipe-right' ),
element="[name=setting- bottom' ),
exclude_menu_navigation]" data-show-if-
value="false"><span class="label">' . array( 'name' => __( 'Zoom
__( 'Mobile Menu Style', 'themify' ) . Down', 'themify' ), 'value' => 'zoomdown' ),
'</span>'; array( 'name' =>
__( 'Morphing', 'themify' ), 'value' => ), 'setting-mobile-
$html.='<select 'morphing' ), menu-styles' ) . '
name="setting-mobile-menu-styles">' .
themify_options_module( array( </select></p>';
array( 'name' => __( 'Overlay $html .= sprintf('<p
ZoomIn', 'themify' ), 'value' => 'overlay- class="hide-if none pushlabel" data-show-
array( 'name' => __( 'Default', zoomin' ),
'themify' ), 'value' => 'default' ), if-element="[name=setting-
exclude_menu_navigation]" data-show-if-
array( 'name' => __( 'Overlay value="false"><label for="%1$s"><input
array( 'name' => __( 'Boxed', ZoomIn Right', 'themify' ), 'value' => type="checkbox" id="%1$s"
'themify' ), 'value' => 'boxed' ), 'overlay-zoomin-right' ), name="%1$s" %2$s />
%3$s</label></p>',
);
elseif($option['value']==='footer-block'){ checked( themify_get( $key . $html .= sprintf('<p class="hide-if
'footer_widgets','',true ), 'on', false ), none pushlabel" data-show-if-
$prefix = 'setting-default_';
<span class="label">' . ), $key . '_hover' ) . '
__( 'Image Filter', 'themify' ) . '</span> if ( ! isset( $data[$prefix .
'more_text'] ) || '' == $data[$prefix .
</select> 'more_text'] ) {
<select name="' . $key . '">' .
themify_options_module( array( </p>'; $more_text =
__( 'More', 'themify' );
$key1 = 'setting-
imagefilter_applyto'; } else {
array( 'name' =>
__( 'None', 'themify' ), 'value' => '' ), $preset = $more_text =
themify_get( $key1,'featuredonly',true ); $data[$prefix . 'more_text'];
</select> array('name'=>__('Yes',
'<br/>
'themify'),'value'=>'yes'),
</p>';
array('name'=>__('Below Post
Title', 'themify'), 'value'=>'below'), </p>';
array( 'name' => __( 'Boxed',
); $output .= '<p> 'themify' ), 'value' => 'boxed' ),
$val =
<span
themify_get_default_selection($prefix.'pos ),
class="label">' . __('Archive Sidebar
t_layout', 'setting-post_content_layout' ) . '
Option', 'themify') . '</span>';
$data ,themify_default_post_layout_option
$val = s() );
themify_get_default_selection($prefix.'lay </select>
$output .=
out',
themify_render_option_items( themify_def
$data ,themify_sidebar_location_options()
ault_post_layout_options(), $val );
); </p>';
$output .= ' <input
$output .= $output .= '<p data-show-if-
type="hidden" name="' . esc_attr( $prefix )
themify_render_option_items( themify_sid element="[name=setting-
. 'post_layout" class="val" value="' .
ebar_location_options(), $val ); default_post_layout]" data-show-if-
esc_attr( $val ) . '" />
value=' .
$output .= ' <input
'["grid2","grid3","grid4","grid5","grid6"]' .
type="hidden" name="' . esc_attr( $prefix )
</p>'; '>
. 'layout" class="val" value="' .
esc_attr( $val ) . '" />
$output .= '<p data-show-if-
element="[name=setting- <span
default_post_layout]" data-show-if-value=' class="label">' . __('Post Masonry',
</p>';
. 'themify') . '</span>
$output .= '<p '["grid2","grid3","grid4","grid5","grid6","li
class="pushlabel" data-show-if- st-post"]' . '>
element="[name=' . esc_attr( $prefix ) . <select
'layout]" name="setting-post_masonry">' .
<span
data-show-if- class="label">' . __( 'Post Content Style',
value=\'["", "sidebar1", "sidebar1 sidebar- 'themify' ) . '</span>
left"]\'>
themify_options_module($binary_options,
<select 'setting-post_masonry') . '
<label name="setting-post_content_layout">'.
for="'.esc_attr($prefix).'sticky_sidebar">
</select>
</span>
),
'setting-post_gutter' ) . '
<span class="label">' .
</p>'; __('Unlink Post Title', 'themify') . '</span>
themify_options_module($default_options,
<span $prefix.'unlink_post_title') . '
<input type="text"
class="label">' . __('Display Content',
name="' . esc_attr( $prefix ) . 'more_text"
'themify') . '</span>
value="' . esc_attr( $more_text ) . '">
</select>
<select name="' .
esc_attr( $prefix ) . 'layout_display">'.
</p>';
<span $output .=
class="pushlabel vertical-grouped"><label themify_post_meta_options($prefix.'post_
for="setting-excerpt_more"><input meta', $data);
themify_options_module($default_display
type="checkbox" value="1" id="setting-
_options, $prefix.'layout_display').' $output .= '<p>
excerpt_more" name="setting-
excerpt_more"
'.checked( themify_get( 'setting-
</select> excerpt_more' ), 1, false ).'/> ' . __('Display <span
more link button in excerpt mode as well.', class="label">' . __('Hide Post Date',
'themify') . '</label></span> 'themify') . '</span>
</p>';
$output .=
themify_options_module($default_options, __('Infinite Scroll (posts are loaded on the
</p>'; $prefix.'unlink_post_image') . ' same page)', 'themify');
$output .= '<p>
$output .= '<div
</select> class="pushlabel indented-field" data-
show-if-element="[name=setting-
<span more_posts]:checked" data-show-if-
class="label">' . __( 'Featured Image value="infinite">';
Position', 'themify' ) . '</span> </p>';
$output = '<p>
$output.='<div
$output .= '<br/>';
class="pushlabel" data-show-if-
<span
$output .= '<label for="' . class="label">' . __('Search Sidebar
esc_attr( $key . '_prevnext' ) . '">'; element="[name='.$input.']" data-show-if- Option', 'themify') . '</span>';
value=' . '["true"]' . '>';
$val =
$output .= '<input ' . themify_get_default_selection($prefix.'lay
checked( isset( $data[$key] )? $input = $key.$k.'_username';
out',
$data[$key] : '', 'prevnext', false ) . ' $data ,themify_sidebar_location_options()
type="radio" id="' . esc_attr( $key . );
'_prevnext' ) . '" name="' . esc_attr( $key ) . $output.='<label><input
'" value="prevnext" /> '; type="text" name="'.$input.'" $output .=
value="'.esc_attr(themify_get($input)).'">'. themify_render_option_items( themify_sid
__('Username','themify').'</label><br/>'; ebar_location_options(), $val );
$output .= __( 'Previous Posts
data-show-if- </select>
<span
value=\'["", "sidebar1", "sidebar1 sidebar-
class="label">' . __( 'Post Content Style',
left"]\'>
'themify' ) . '</span>
</p>';
</select>
'.checked( themify_get( esc_attr themify_options_module(themify_default_
($prefix).'sticky_sidebar' ), 1, false ) .' options(), $prefix.'unlink_post_title') . '
</p>';
$output .= '<p>
</select>
/>'.__('Enable sticky sidebar',
'themify').'
<span
class="label">' . __('Display Content', </p>';
'themify') . '</span>
</label> $output .=
themify_post_meta_options($prefix.'post_
meta', $data);
<select name="' .
</p>'; esc_attr( $prefix ) . 'layout_display">'. $output .= '<p>
$output .= '<p>
<span
themify_options_module(themify_default_ class="label">' . __('Hide Post Date',
<span
display_options(), 'themify') . '</span>
class="label">' . __('Post Layout',
$prefix.'layout_display',true,'excerpt' ).'
'themify') . '</span>';
$val = $option['value'];
array('value' => 'auto_tiles', 'img' =>
'themify'), 'value' => 'below'), }
'images/layout-icons/auto-tiles.png', 'title'
); => __('Tiles', 'themify'))
if ($val == $option['value']) {
} );
$class = 'selected';
function }
} else {
themify_sidebar_location_options(){
function themify_default_display_options()
$class = '';
return array( {
}
array('value' => 'sidebar1', 'img' => return array(
'images/layout-icons/sidebar1.png', $output .= '<a href="#"
array('name' => __('Full Content',
'selected' => true, 'title' => __('Sidebar class="preview-icon ' . esc_attr($class) . '"
'themify'),'value' => 'content'),
Right', 'themify')), title="' . esc_attr($option['title']) . '"><img
array('name' => __('Excerpt', src="' . esc_url(THEME_URI . '/' .
array('value' => 'sidebar1 sidebar-left', $option['img']) . '" alt="' .
'themify'),'value' => 'excerpt'),
'img' => 'images/layout-icons/sidebar1- esc_attr($option['value']) . '" /></a>';
left.png', 'title' => __('Sidebar Left', array('name' => __('None',
'themify')), 'themify'),'value' => 'none') }
}
<input type="checkbox"
value="on" id="'.$key.'_post_count"
name="'.$key.'_post_count" '.
checked( themify_get($key.'_post_count',f
alse,true),
</p>';
return $out;
add_filter('themify_mega_menu_settings','t
hemify_extend_mega_menu_options');
if( themify_is_woocommerce_active()){
function
themify_add_serach_post_type_option($ou
t){
$out = '<p
class="themify_search_post_type"><span
class="label">' . __('Search Post Type',
'themify') . '</span>
<label
for="search_post_type_all">
<input
'.checked( themify_get( 'setting-
search_post_type','all' ), 'all', false ).'
type="radio" id="search_post_type_all"
name="setting-search_post_type"
value="all" />
<label
for="search_post_type_product">
<input
'.checked( themify_get( 'setting-
search_post_type' ), 'product', false ).'
type="radio"
id="search_post_type_product"
name="setting-search_post_type"
value="product" />
</p>'.$out;