';
$this->do_settings_fields( $page, $section );
$this->card_close();
echo '
';
}
}
/**
* Custom do_settings_fields HTML
*/
function do_settings_fields( $page, $section ) {
global $wp_settings_fields;
$section_id = $section['id'];
if ( ! isset( $wp_settings_fields[ $page ][ $section_id ] ) ) {
return;
}
// search results heading
$section_tab_id = str_replace( '_section', '', $section_id );
foreach ( $this->menu as $k => $item ) {
if (array_search( $section_tab_id, $item['sections']) !== false ) {
$parent_key = $k;
$parent_title = $item['title'];
break;
}
}
$title = $section['title'];
$link = 'admin.php?page=be-options#'. $section_tab_id;
echo '';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
Your site uses Templates for Shop.
';
$mfn_templates_html .= 'Some options from the Theme Options may not work because they don\'t affect Templates.
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
You have '.count($shop_tmpls).' '.(count($shop_tmpls) == 1 ? 'used template:' : 'used templates:').'
Go to templates';
foreach( $shop_tmpls as $i=>$item ){
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
'.$item->post_date.'
';
$mfn_templates_html .= '
';
$conditions = !empty($item->meta_value) ? json_decode($item->meta_value) : array();
$shop_conditions = $this->mfn_display_tmpl_conditions($conditions, $item->ID);
$mfn_templates_html .= $shop_conditions;
if( strpos($shop_conditions, 'Shop') !== false ) $mfn_content_classes[] = 'mfn-content-has-shop-tmpls';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
}
$mfn_templates_html .= '
';
}
if( !empty($product_tmpls) ) {
$mfn_templates_html .= '';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
Your site uses Templates for Product.
';
$mfn_templates_html .= 'Some options from the Theme Options may not work because they don\'t affect Templates.
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
You have '.count($product_tmpls).' '.(count($product_tmpls) == 1 ? 'used template:' : 'used templates:').'
Go to templates';
foreach( $product_tmpls as $i=>$item ){
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
'.$item->post_date.'
';
$mfn_templates_html .= '
';
$conditions = !empty($item->meta_value) ? json_decode($item->meta_value) : array();
$product_conditions = $this->mfn_display_tmpl_conditions($conditions, $item->ID);
$mfn_templates_html .= $product_conditions;
if( strpos($product_conditions, 'All products') !== false ) $mfn_content_classes[] = 'mfn-content-has-product-tmpls';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
}
$mfn_templates_html .= '
';
}
if( !empty($footer_tmpls) ) {
$mfn_templates_html .= '';
}
if( !empty($blog_tmpls) ) {
$mfn_templates_html .= '';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
Your site uses Templates for Blog.
';
$mfn_templates_html .= 'Some options from the Theme Options may not work because they don\'t affect Templates.
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
You have '.count($blog_tmpls).' '.(count($blog_tmpls) == 1 ? 'used template:' : 'used templates:').'
Go to templates';
foreach( $blog_tmpls as $i=>$item ){
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
'.$item->post_date.'
';
$mfn_templates_html .= '
';
$conditions = !empty($item->meta_value) ? json_decode($item->meta_value) : array();
$blog_conditions = $this->mfn_display_tmpl_conditions($conditions, $item->ID, 'blog');
$mfn_templates_html .= $blog_conditions;
if( strpos($blog_conditions, 'Entire blog') !== false ) $mfn_content_classes[] = 'mfn-content-has-blog-tmpls';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
}
$mfn_templates_html .= '
';
}
if( !empty($portfolio_tmpls) ) {
$mfn_templates_html .= '';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
Your site uses Templates for Portfolio.
';
$mfn_templates_html .= 'Some options from the Theme Options may not work because they don\'t affect Templates.
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
You have '.count($portfolio_tmpls).' '.(count($portfolio_tmpls) == 1 ? 'used template:' : 'used templates:').'
Go to templates';
foreach( $portfolio_tmpls as $i=>$item ){
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
'.$item->post_date.'
';
$mfn_templates_html .= '
';
$conditions = !empty($item->meta_value) ? json_decode($item->meta_value) : array();
$portfolio_conditions = $this->mfn_display_tmpl_conditions($conditions, $item->ID, 'portfolio');
$mfn_templates_html .= $portfolio_conditions;
if( strpos($portfolio_conditions, 'Portfolio') !== false ) $mfn_content_classes[] = 'mfn-content-has-portfolio-tmpls';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
$mfn_templates_html .= '
';
}
$mfn_templates_html .= '
';
}
// theme skin
if( ! empty($this->options['skin']) && 'custom' != $this->options['skin'] ){
$form_class .= ' skin-selected';
}
// output
echo '