I am having troubles creating a new page template. I’m trying to add a template called template-my-locker.php.
The problem is I am trying to add dynamic content that I believe needs to be displayed inside <?php sf_base_layout('page'); ?>
because when I try to add it to the template below it is either above or below the .inner-page-wrap. I’m not sure where <?php sf_base_layout('page'); ?>
is being pulled from.
Any help would be greatly appreciated, thank you!
<?php get_header(); ?>
<?php
global $sf_options;
$default_sidebar_config = $sf_options['default_sidebar_config'];
$default_left_sidebar = $sf_options['default_left_sidebar'];
$default_right_sidebar = $sf_options['default_right_sidebar'];
$sidebar_config = sf_get_post_meta($post->ID, 'sf_sidebar_config', true);
$left_sidebar = sf_get_post_meta($post->ID, 'sf_left_sidebar', true);
$right_sidebar = sf_get_post_meta($post->ID, 'sf_right_sidebar', true);
if ($sidebar_config == "") {
$sidebar_config = $default_sidebar_config;
}
if ($left_sidebar == "") {
$left_sidebar = $default_left_sidebar;
}
if ($right_sidebar == "") {
$right_sidebar = $default_right_sidebar;
}
$pb_fw_mode = true;
$pb_active = sf_get_post_meta($post->ID, '_spb_js_status', true);
if ($sidebar_config != "no-sidebars" || $pb_active != "true") {
$pb_fw_mode = false;
}
?>
<?php
// Check if page should be enabled in full width mode
if (!$pb_fw_mode) { ?>
<div class="container">
<?php } ?>
<?php sf_base_layout('page'); ?>
<?php
// Check if page should be enabled in full width mode
if (!$pb_fw_mode) { ?>
</div>
<?php } ?>
<?php get_footer('alt'); ?>