Beispiel #1
0
        <link rel="stylesheet" href="ext/bootstrap-iconpicker/css/bootstrap-iconpicker.min.css">
        <!-- Google Web Fonts -->
        <link href="http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700" rel="stylesheet" type="text/css">
        <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
        
        <!-- Yamm styles-->
        <link href="ext/yamm/yamm.css" rel="stylesheet">
        <!-- Custom -->
        <link href="custom.css" rel="stylesheet">
        <style id="css-area">
            <?php 
/* we load the css data */
global $css_id;
$OSCOM_CSS = new bts_css_tree();
$OSCOM_CSS->setRootCategoryID($css_id);
echo $OSCOM_CSS->cssOutPutTree();
?>
        </style>
        <!-- User -->
        <link href="user.css" rel="stylesheet">
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="ext/bootstrap/js/respond.min.js"></script>
        <![endif]-->
        
        <script src="ext/jquery/jquery-1.11.0.min.js"></script>
        
        <?php 
echo $oscTemplate->getBlocks('header_tags');
?>
    </head>
Beispiel #2
0
<?php

require 'includes/application_top.php';
// No direct access to this file
if (!IS_AJAX) {
    die('Restricted access');
}
if (isset($_POST['action'])) {
    $action = tep_db_prepare_input($_POST['action']);
}
switch ($action) {
    case 'reset_header':
        global $oscTemplate, $cPath, $template_id, $css_id;
        $OSCOM_CSS = new bts_css_tree();
        $OSCOM_BtsMenu = new bts_menu_view();
        $OSCOM_BtsMenu->setMenuRootCategoryID($template_id);
        $OSCOM_CSS->setRootCategoryID($css_id);
        $css = $OSCOM_CSS->cssOutPutTree();
        $header_data = $OSCOM_BtsMenu->getHeaderTree();
        header('Content-Type: application/json');
        echo json_encode($css . '|' . $header_data);
        break;
}