function pageheader($section, $meta = '') { global $CONFIG, $THEME_DIR; global $template_header, $lang_charset, $lang_text_dir; $custom_header = cpg_get_custom_include($CONFIG['custom_header_path']); $charset = $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset']; header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"'); header("Content-Type: text/html; charset={$charset}"); user_save_profile(); $template_vars = array('{LANG_DIR}' => $lang_text_dir, '{TITLE}' => theme_page_title($section), '{CHARSET}' => $charset, '{META}' => $meta, '{GAL_NAME}' => $CONFIG['gallery_name'], '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'], '{SYS_MENU}' => theme_main_menu('sys_menu'), '{SUB_MENU}' => theme_main_menu('sub_menu'), '{ADMIN_MENU}' => theme_admin_mode_menu(), '{CUSTOM_HEADER}' => $custom_header, '{JAVASCRIPT}' => theme_javascript_head(), '{MESSAGE_BLOCK}' => theme_display_message_block()); echo template_eval($template_header, $template_vars); }
* and open the template in the editor. */ global $eli_options; $page_id = get_the_ID(); $banner_img_src = get_field('banner_image', $page_id); $banner_img = empty($banner_img_src) ? sprintf('style="background-image: url(%s);"', $eli_options['default_page_banner']['url']) : sprintf('style="background-image: url(%s);"', $banner_img_src); ?> <div id="page-banner" class="innerbanner" <?php echo $banner_img; ?> ><!-- Slider --> <div class="container"> <div class="row"> <div class="col-xs-12"> <h2 class="page-title"><?php theme_page_title(); ?> </h2> <?php if (!empty($eli_options['show_subtitle'])) { ?> <h4 class="page-subtitle"><?php theme_page_subtitle(); ?> </h4> <?php } ?> </div> </div>