function get_rwmb_meta($field_id, $args = array(), $post_id = null) { $custom_fields = klasik_get_customdata(); if (function_exists('rwmb_meta')) { if (rwmb_meta($field_id, $args, $post_id)) { return rwmb_meta($field_id, $args, $post_id); } elseif (isset($custom_fields[$field_id])) { //return $custom_fields['klasik_layout']; } } elseif (isset($custom_fields[$field_id])) { return $custom_fields[$field_id]; } else { return false; } }
?> " <?php echo klasik_page_image(); ?> > <div class="container"> <div class="row"> <div class="twelve columns"> <div id="afterheader"> <div id="page-title-wrap"> <?php klasik_page_title(); ?> <?php $custom = klasik_get_customdata(); $cf_disablemeta = klasik_get_metabox('klasik_disable_meta'); if (is_single() && !$cf_disablemeta && function_exists('is_woocommerce') && !is_woocommerce()) { ?> <div class="entry-utility"> <div class="date"> <?php the_time(get_option('date_format')); ?> </div> <span class="text-sep text-sep-date">/</span> <div class="user"> <?php _e('by', 'klasik'); ?> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));
function klasik_page_image() { $custom = klasik_get_customdata(); $cf_pageimg = isset($custom["page-image"][0]) && $custom["page-image"][0] != "" ? $custom["page-image"][0] : ""; $bg_pagetitle = ""; if ($cf_pageimg != "") { $bg_pagetitle .= 'style="background-image:url('; $bg_pagetitle .= $cf_pageimg; $bg_pagetitle .= ')"'; } return $bg_pagetitle; }
<?php } ?> <div id="maincontent-container"> <div class="container"> <div class="row"> <?php $sidebarposition = klasik_get_option('klasik_sidebar_position', 'two-col-left'); if (is_home()) { $pid = get_option('page_for_posts'); } else { $pid = ''; } $custom_fields = klasik_get_customdata($pid); $pagelayout = $sidebarposition; if (isset($custom_fields['klasik_layout'][0]) && $custom_fields['klasik_layout'][0] != 'default') { $pagelayout = $custom_fields['klasik_layout'][0]; } if ($pagelayout != 'one-col') { $mcontentclass = "hassidebar"; $contentclass = 'contentcol columns '; if ($pagelayout == "two-col-left") { $mcontentclass .= " mborderright"; // $contentclass .= "positionleft"; $contentclass .= "positionright"; } else { $mcontentclass .= " mborderleft"; // $contentclass .= "positionright"; $contentclass .= "positionleft";