protected function InitItem($resize_mode = 'html') { $image = symAdminTools::getProperty('default_image'); if (array_key_exists('image', $this->item)) { $image = $this->item['image']; } $image = substr($image, 0, 1) == "/" ? $image : symAdminTools::getProperty('image_dir') . $image; if ($resize_mode == 'thumbnail') { $last_slash = strrpos($image, "/"); $image = substr($image, 0, $last_slash) . "/small/" . substr($image, $last_slash + 1); } $this->item['image'] = $image; /* if name isn't specified - use key */ if (!array_key_exists('name', $this->item)) { $this->item['name'] = $this->key; } /* if url isn't specified - use key */ if (!array_key_exists('url', $this->item)) { $this->item['url'] = $this->key; } /* if in_menu isn't specified - use true */ if (!array_key_exists('in_menu', $this->item)) { $this->item['in_menu'] = true; } }
<div id="sf_admin_theme_footer"> <?php if (csSettings::getSetting('Show Backend Copyright')->value == 'yes') { ?> Copyright © <?php echo symAdminTools::getProperty('site'); ?> . All rights reserved. <?php } ?> </div>
<?php use_stylesheet(symAdminTools::getProperty('web_dir') . '/css/default.css', 'first'); ?> <?php if (symAdminTools::getProperty('include_jquery')) { use_javascript(symAdminTools::getProperty('web_dir') . '/js/jquery-1.3.2.min.js', 'first'); ?> <script type="text/javascript">jQuery.noConflict();</script> <?php } use_javascript(symAdminTools::getProperty('web_dir') . '/js/admin_dash.js'); ?> <div id="sf_admin_theme_header"> <a href='<?php echo url_for('homepage'); ?> '><?php echo image_tag(symAdminTools::getProperty('web_dir') . '/images/header_text', array('alt' => 'Home')); ?> </a> </div>
<?php use_helper('I18N'); if ($items) { ?> <?php include_partial('dash_list', array('items' => $items)); } elseif ($cats) { ?> <?php foreach ($cats as $name => $cat) { ?> <?php if (symAdminTools::hasPermission($cat, $sf_user)) { ?> <h2><?php echo $name; ?> </h2> <?php include_partial('dash_list', array('items' => $cat['items'])); ?> <?php } ?> <?php } } else { ?> <p><?php echo __('Menu not configured...', array(), 'admin_dash');
<?php include_partial('adminDash/menu_list', array('items' => $items, 'items_in_menu' => false)); ?> </ul> <?php } elseif ($cats) { ?> <ul> <?php foreach ($cats as $name => $cat) { ?> <?php if (symAdminTools::hasPermission($cat, $sf_user)) { ?> <?php if (symAdminTools::hasItemsMenu($cat['items'])) { ?> <li class="node"><a href="#"><?php echo $name; ?> </a> <ul> <?php include_partial('adminDash/menu_list', array('items' => $cat['items'], 'items_in_menu' => true)); ?> </ul> </li> <?php } ?> <?php
<strong><a href="<?php echo url_for('homepage'); ?> "><?php echo symAdminTools::getProperty('site'); ?> </a></strong> / <?php if ($sf_context->getActionName() != 'dashboard') { ?> <?php echo symAdminTools::getModuleName(); ?> / <?php if ($sf_context->getActionName() != 'index') { ?> <?php echo symAdminTools::getActionName(); ?> <?php } ?> <?php } ?> </div> <?php } }
<div class="cpanel"> <?php foreach ($items as $key => $item) { ?> <?php if (symAdminTools::hasPermission($item, $sf_user)) { ?> <div style="float: left"> <?php include_component('adminDash', 'dash_item', array('item' => $item, 'key' => $key)); ?> </div> <?php } ?> <?php } ?> <div class="clear"></div> </div>
if ($items_in_menu && $item['in_menu'] || !$items_in_menu && !$item['in_menu']) { ?> <li <?php echo $item['in_menu'] ? 'class="item"' : 'class="item-menu"'; ?> > <a href="<?php echo url_for($item['url']); ?> "> <?php if (symAdminTools::getProperty('resize_mode') == 'html') { ?> <?php echo image_tag($item['image'], array('alt' => $item['name'], 'width' => symAdminTools::getProperty('width_for_html'), 'height' => symAdminTools::getProperty('height_for_html'))); ?> <?php } else { ?> <?php echo image_tag($item['image'], array('alt' => $item['name'])); ?> <?php } ?> <span><?php echo $item['name']; ?> </span> </a>