Beispiel #1
0
<?php

require_once '../..//bb-load.php';
bb_get_header();
if (page_exist()) {
    ?>
<h2><?php 
    echo get_page_title();
    ?>
</h2>
    <?php 
    echo get_page_content();
} else {
    ?>
<h2>Página no encontrada</h2>
<?php 
}
bb_get_footer();
Beispiel #2
0
            if (check_menu_name($_POST['menu_name'])) {
                add_main_menu($_POST['menu_name'], $link);
                $msg = "Menu Added";
            } else {
                $msg = "Menu with this name already exist!";
            }
        } else {
            $msg = "Type #, if you want to create submenu also";
        }
    }
}
if (isset($_POST['add_sub_menu'])) {
    $link = strtolower($_POST['sub_menu_link']);
    $link = str_replace(' ', '-', $link);
    // page for sub_menu_link exist or not.
    if (page_exist($link)) {
        // sub_menu_link unique or not
        if (check_mn($link)) {
            add_sub_menu($_POST['parent'], $_POST['sub_menu_name'], $link);
            $sub_msg = "Sub Menu Added";
        } else {
            $sub_msg = "sub menu link already exist";
        }
    } else {
        $sub_msg = "No page for this URL, first create a page";
    }
}
?>
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">