New Landing How can we help? Atelier Creating New Page Templates

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Atelier
  • #230379
    BenNieIV
    Member
    Post count: 13

    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'); ?>

    #230507
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its pulled from page.php file at /atelier/swift-framework/layout/.
    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register