Changeset 12713
- Timestamp:
- 09/26/11 12:25:17 (2 years ago)
- Files:
-
- freepbx/branches/2.10/amp_conf/htdocs/admin/assets/css/jquery-ui-1.8.16.css (deleted)
- freepbx/branches/2.10/amp_conf/htdocs/admin/assets/css/jquery-ui.css (added)
- freepbx/branches/2.10/amp_conf/htdocs/admin/assets/css/mainstyle.css (modified) (1 diff)
- freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/script.legacy.js (modified) (2 diffs)
- freepbx/branches/2.10/amp_conf/htdocs/admin/config.php (modified) (1 diff)
- freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/view.functions.php (modified) (3 diffs)
- freepbx/branches/2.10/amp_conf/htdocs/admin/views/header.php (modified) (1 diff)
- freepbx/branches/2.10/amp_conf/htdocs/admin/views/menu.php (modified) (2 diffs)
- freepbx/branches/2.10/upgrades/2.10alpha1/migration.php (modified) (1 diff)
- modules/branches/2.10/irc/page.irc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.10/amp_conf/htdocs/admin/assets/css/mainstyle.css
r12686 r12713 1 @import url('jquery-ui-1.8.16.css');2 1 /* 3 2 border #AED0EA; freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/script.legacy.js
r12696 r12713 771 771 //logo icon 772 772 $('#BRAND_IMAGE_FREEPBX_LEFT').click(function(){ 773 window.open( fpbx.conf.BRAND_IMAGE_FREEPBX_LINK_LEFT,'_newtab');773 window.open($(this).data('brand_image_freepbx_link_left'),'_newtab'); 774 774 }); 775 775 … … 789 789 }); 790 790 791 //show modules. shmz only??792 $('#modules_button').next('ul').remove();793 $('#modules_button').toggle(794 function(){795 $('#module_list').show();796 },797 function(){798 $('#module_list').hide();799 }800 )801 802 791 //shortcut keys 803 792 //show modules freepbx/branches/2.10/amp_conf/htdocs/admin/config.php
r12511 r12713 223 223 // check access 224 224 if (!is_array($cur_menuitem) && $display != "") { 225 show_view($amp_conf['VIEW_NOACCESS'], array('amp_conf'=>&$amp_conf)); 226 exit; 225 $fw_gui_html .= show_view($amp_conf['VIEW_NOACCESS'], array('amp_conf'=>&$amp_conf)); 227 226 } 228 227 freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/view.functions.php
r12446 r12713 274 274 ? $amp_conf['BRAND_CSS_ALT_MAINSTYLE'] 275 275 : 'assets/css/mainstyle.css'; 276 276 277 277 278 if (!$amp_conf['DISABLE_CSS_AUTOGEN'] && version_compare(phpversion(),'5.0','ge')) { 278 279 $wwwroot = $amp_conf['AMPWEBROOT'] 279 280 . "/admin"; 280 281 281 282 // stat the css files and check if they have been modified since we last generated a css 282 283 $mainstyle_css_full_path = $wwwroot . '/' . $mainstyle_css; … … 295 296 // it's important to be unique because that will force browsers to reload vs. caching it 296 297 $mainstyle_css_generated = $ms_path.'/mstyle_autogen_'.$stat_mainstyle['mtime'].'.css.php'; 297 298 $raw = file_get_contents($mainstyle_css_full_path) . file_get_contents($amp_conf['JQUERY_CSS']); 298 299 $ret = file_put_contents($wwwroot . '/' . $mainstyle_css_generated, 299 300 "<?php … … 304 305 ob_start('". $amp_conf['buffering_callback'] . "'); 305 306 ?>\n" 306 . CssMin::minify( file_get_contents($mainstyle_css_full_path)));307 . CssMin::minify($raw)); 307 308 308 309 freepbx/branches/2.10/amp_conf/htdocs/admin/views/header.php
r12479 r12713 27 27 //css 28 28 $html .= '<link href="' . framework_css().$version_tag . '" rel="stylesheet" type="text/css">'; 29 29 //include jquery-ui css 30 if ($amp_conf['DISABLE_CSS_AUTOGEN'] == true) { 31 $html .= '<link href="' . $amp_conf['JQUERY_CSS'].$version_tag . '" rel="stylesheet" type="text/css">'; 32 } 30 33 //include rtl stylesheet if using a rtl langauge 31 34 if (isset($_COOKIE['lang']) && in_array($_COOKIE['lang'], array('he_IL'))) { freepbx/branches/2.10/amp_conf/htdocs/admin/views/menu.php
r12646 r12713 10 10 */ 11 11 $out .= '<img src="' . $amp_conf['BRAND_IMAGE_FREEPBX_LEFT'] 12 . '" alt="FreePBX" title="FreePBX" id="BRAND_IMAGE_FREEPBX_LEFT" />'; 12 . '" alt="FreePBX" title="FreePBX" id="BRAND_IMAGE_FREEPBX_LEFT" ' 13 . 'data-BRAND_IMAGE_FREEPBX_LINK_LEFT="' . $amp_conf['BRAND_IMAGE_FREEPBX_LINK_LEFT'] . '"/ />'; 13 14 14 15 if (isset($fpbx_menu) && is_array($fpbx_menu)) { … … 20 21 case 'reports': 21 22 case 'settings': 22 $menu[ $deets['type']][strtolower($deets['category'])][] = $deets;23 $menu[strtolower($deets['category'])][] = $deets; 23 24 break; 24 25 default: 25 $menu[ $deets['type']]['other'][] = $deets;26 $menu['other'][] = $deets; 26 27 break; 27 28 } 28 29 29 30 } 30 $menu = $menu['setup'] + $menu['tool']; 31 32 $count = 0; 33 foreach($menu as $t => $cat) { //catagories 34 $mods[$t] = '<a href="#">' 35 . _(ucwords($t)) 36 . '</a><ul>'; 37 foreach ($cat as $c => $mod) { //modules 38 if (isset($mod['hidden']) && $mod['hidden'] == 'true') { 39 continue; 40 } 41 $classes = array(); 31 32 foreach($menu as $t => $cat) { //catagories 33 $mods[$t] = '<a href="#">' 34 . _(ucwords($t)) 35 . '</a><ul>'; 36 foreach ($cat as $c => $mod) { //modules 37 if (isset($mod['hidden']) && $mod['hidden'] == 'true') { 38 continue; 39 } 40 $classes = array(); 41 42 //build defualt module url 43 $href = isset($mod['href']) 44 ? $mod['href'] 45 : "config.php?display=" . $mod['display']; 46 47 //highlight currently in-use module 48 if ($display == $mod['display']) { 49 $classes[] = 'ui-state-highlight'; 50 $classes[] = 'ui-corner-all'; 51 } 52 53 //highlight disabled modules 54 if (isset($mod['disabled']) && $mod['disabled']) { 55 $classes[] = 'ui-state-disabled'; 56 $classes[] = 'ui-corner-all'; 57 } 58 59 $items[$mod['name']] = '<li><a href="' . $href . '"' 60 . 'class="' . implode(' ', $classes) . '">' 61 . _(ucwords($mod['name'])) 62 . '</a></li>'; 42 63 43 //build defualt module url44 $href = isset($mod['href'])45 ? $mod['href']46 : "config.php?display=" . $mod['display'];47 48 //highlight currently in-use module49 if ($display == $mod['display']) {50 $classes[] = 'ui-state-highlight';51 $classes[] = 'ui-corner-all';52 }53 54 //highlight disabled modules55 if (isset($mod['disabled']) && $mod['disabled']) {56 $classes[] = 'ui-state-disabled';57 $classes[] = 'ui-corner-all';58 }59 60 $items[$mod['name']] = '<li><a href="' . $href . '"'61 . 'class="' . implode(' ', $classes) . '">'62 . _(ucwords($mod['name']))63 . '</a></li>';64 65 }66 ksort($items);67 $mods[$t] .= implode($items) . '</ul>';68 unset($items);69 64 } 70 ksort($mods); 71 $out .= implode($mods); 65 ksort($items); 66 $mods[$t] .= implode($items) . '</ul>'; 67 unset($items); 68 } 69 ksort($mods); 70 $out .= implode($mods); 72 71 } 73 72 $out .= '<a href="/recordings" target="_blank">' . _('User Panel') . '</a>'; freepbx/branches/2.10/upgrades/2.10alpha1/migration.php
r12689 r12713 74 74 $freepbx_conf->commit_conf_settings(); 75 75 76 //jquery ui css 77 $set = array( 78 'value' => 'assets/css/jquery-ui.css', 79 'defaultval' => 'assets/css/jquery-ui.css', 80 'readonly' => 1, 81 'hidden' => 1, 82 'level' => 10, 83 'module' => '', 84 'category' => 'Styling and Logos', 85 'emptyok' => 0, 86 'name' => 'jQuery UI css', 87 'description' => 'css file for jquery ui', 88 'type' => CONF_TYPE_TEXT 89 ); 90 $freepbx_conf->define_conf_setting('JQUERY_CSS', $set); 91 $freepbx_conf->commit_conf_settings(); 76 92 77 93 //footer modules/branches/2.10/irc/page.irc.php
r12445 r12713 118 118 <div class="rnav"><ul> 119 119 <li><a href="config.php?type=tool&display=<?php echo urlencode($display)?>&action=start" onclick="startirc(this);"><?php echo _("Start IRC")?></a></li> 120 <li><a href="http://www.freepbx.org " target="_docs"><?php echo _("Online Resources")?></a></li>120 <li><a href="http://www.freepbx.org/support-and-professional-services" target="_docs"><?php echo _("Online Resources")?></a></li> 121 121 </ul></div> 122 122 <h2>
