Example #1
0
          </button>
          <a class="navbar-brand" href="#"><span class="glyphicon glyphicon-globe"></span></a>
        </div>

        <div class="collapse navbar-collapse" id="navbar-collapse-2">
          <ul class="nav navbar-nav">
            <?php 
foreach ($section as $key => $item) {
    ?>
              <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><?php 
    echo $item['title'];
    ?>
 <span class="caret"></span></a>
                <?php 
    $categories_menu = get_submenu($db, $item['id']);
    ?>
                <ul class="dropdown-menu">
                  <?php 
    foreach ($categories_menu as $category_item) {
        ?>
                    <li><a href="<?php 
        echo BASE_URL;
        ?>
/category.php?slug=<?php 
        echo $category_item['slug'];
        ?>
"><?php 
        echo $category_item['title'];
        ?>
</a></li>
}
//the follow are for logged in users only
if (isloggedin()) {
    //is the bookmark plugin installed?
    if (is_plugin_enabled('bookmarks')) {
        $label3 = elgg_echo('bookmarks:this');
        $contents .= "<div id=\"owner_block_bookmark_this\"><a href=\"javascript:location.href='" . $CONFIG->wwwroot . "mod/bookmarks/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label3}</a></div>";
    }
    //report this button
    if (is_plugin_enabled('reportedcontent')) {
        $label4 = elgg_echo('reportedcontent:report');
        $contents .= "<div id=\"owner_block_report_this\"><a href=\"javascript:location.href='" . $CONFIG->wwwroot . "mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label4}</a></div>";
    }
}
$contents .= elgg_view('owner_block/extend');
// Have we been asked to inject any content? If so, display it
if (isset($vars['content'])) {
    $contents .= $vars['content'];
}
// Initialise the submenu
$submenu = get_submenu();
// elgg_view('canvas_header/submenu');
if (!empty($submenu)) {
    $contents .= "<div id=\"owner_block_submenu\">" . $submenu . "</div>";
}
// plugins can extend this to add menu options
if (!empty($contents)) {
    echo "<div id=\"owner_block\">";
    echo $contents;
    echo "</div><div id=\"owner_block_bottom\"></div>";
}
Example #3
0
 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
 *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
*/
require "helper_functions.php";
$enable_main_menu_link = true;
$submenu = $_GET["submenu"];
$var = read_desktop_file();
if ($var == null) {
    echo "Json.txt file is empty or doesn't exist.";
    return;
}
$submenu_entry = get_submenu($var, $submenu);
$menu_title = "Coming Soon";
$menu_name = $submenu_entry["Name"];
include "menubar.php";
?>
	<div id = 'coming_soon' style = 'text-align:center;'>
	
		<h2>The applications in <?php 
echo $menu_name;
?>
 will be coming soon</h2>
		<img src= 'images/coming-icon.png'>	
	</div>
Example #4
0
                  <?php 
echo css("theme.css");
echo css("style.css");
echo css("jquery-ui/jquery.ui.all.css");
echo css("jquery.fancybox-1.3.4.css");
echo js("jquery-1.7.1.min.js");
?>
                  <!--[if IE]>
                  <?php 
echo css("ie-sucks.css");
?>
                  <![endif]-->
      </head>
      <body>
            <?php 
$submenu = get_submenu($this->session->userdata("menu"), $menu);
$menu = get_menu($menu);
?>
            <div id="container">
                  <div id="header">
                        <div class="left">
                              <img src="<?php 
echo image_path("logo_kcm.png");
?>
" title="Show" width="35" height="35" />
                        </div>
                        <div class="left ml_10">
                              <h2>KCM - Ads Management System</h2>
                              <h3>PT Kompas Cyber Media (Kompas.com)</h3>
                        </div>
                        <div class="right">
    function get_submenu($element, $real_options)
    {
        if ($real_options['menu_limitation'] == "limitation_reached") {
            return false;
        } else {
            (int) $real_options['menu_limitation']--;
            if ($real_options['menu_limitation'] == 0) {
                $real_options['menu_limitation'] == "limitation_reached";
            }
        }
        if (is_array($element)) {
            if (array_key_exists('PAGE_CHILDS', $element)) {
                if (is_array($element['PAGE_CHILDS'])) {
                    if (!is_array($real_options['li_parents']) || $real_options['li_parents'] != true) {
                        $real_options['li_parents'] = array($real_options['li_parents']);
                    }
                    if (!is_array($real_options['li_parents_class']) || $real_options['li_parents_class'] != true) {
                        $real_options['li_parents_class'] = array($real_options['li_parents_class']);
                    }
                    if (!is_array($real_options['li_parents_id']) || $real_options['li_parents_id'] != true) {
                        $real_options['li_parents_id'] = array($real_options['li_parents_id']);
                    }
                    $li_parent = $real_options['li_parents'][0];
                    if (count($real_options['li_parents']) > 0) {
                        // When Classe is used, we shift it
                        $real_options['li_parents'] = array_shift($real_options['li_parents']);
                    }
                    $li_parent_class = $real_options['li_parents_class'][0];
                    if (count($real_options['li_parents_class']) > 0) {
                        $real_options['li_parents_class'] = array_shift($real_options['li_parents_class']);
                    }
                    $li_parent_id = $real_options['li_parents_id'][0];
                    if (count($real_options['li_parents_id']) > 0) {
                        $real_options['li_parents_id'] = array_shift($real_options['li_parents_id']);
                    }
                    ?>
<<?php 
                    echo $li_parent;
                    ?>
 class="<?php 
                    echo $li_parent_class;
                    ?>
" 
                        id="<?php 
                    echo $li_parent_id;
                    ?>
">
                        <?php 
                    foreach ($element['PAGE_CHILDS'] as $childs) {
                        if ($childs['PAGE_MODULES'] == '#LINK#') {
                            ?>
                        <li> <a href="<?php 
                            echo $childs['PAGE_LINK'];
                            ?>
"><?php 
                            echo $childs['PAGE_NAMES'];
                            ?>
</a>
    <?php 
                            get_submenu($childs, $real_options);
                            ?>
</li>
                        <?php 
                        } else {
                            ?>
                        <li> <a href="<?php 
                            echo get_instance()->url->site_url(array($childs['PAGE_CNAME']));
                            ?>
"><?php 
                            echo $childs['PAGE_NAMES'];
                            ?>
</a>
    <?php 
                            get_submenu($childs, $real_options);
                            ?>
</li>
                        <?php 
                        }
                    }
                    ?>
</<?php 
                    echo $li_parent;
                    ?>
>
<?php 
                }
            }
        }
    }