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>
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>