Changeset 12713

Show
Ignore:
Timestamp:
09/26/11 12:25:17 (2 years ago)
Author:
mbrevda
Message:

re #5341 - more gui tweaks and growing pains

Files:

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'); 
    21/* 
    32border #AED0EA; 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/script.legacy.js

    r12696 r12713  
    771771  //logo icon 
    772772  $('#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'); 
    774774  }); 
    775775   
     
    789789  }); 
    790790   
    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    
    802791  //shortcut keys 
    803792  //show modules 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/config.php

    r12511 r12713  
    223223// check access 
    224224if (!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)); 
    227226} 
    228227 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/view.functions.php

    r12446 r12713  
    274274            ? $amp_conf['BRAND_CSS_ALT_MAINSTYLE']  
    275275            : 'assets/css/mainstyle.css';  
    276  
     276           
     277     
    277278  if (!$amp_conf['DISABLE_CSS_AUTOGEN'] && version_compare(phpversion(),'5.0','ge')) { 
    278279    $wwwroot          = $amp_conf['AMPWEBROOT'] 
    279280                  . "/admin"; 
    280  
     281     
    281282    // stat the css files and check if they have been modified since we last generated a css 
    282283    $mainstyle_css_full_path  = $wwwroot . '/' . $mainstyle_css; 
     
    295296      // it's important to be unique because that will force browsers to reload vs. caching it 
    296297      $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']); 
    298299      $ret = file_put_contents($wwwroot . '/' . $mainstyle_css_generated,  
    299300                  "<?php  
     
    304305                  ob_start('". $amp_conf['buffering_callback'] . "'); 
    305306                  ?>\n"  
    306                   . CssMin::minify(file_get_contents($mainstyle_css_full_path))); 
     307                  . CssMin::minify($raw)); 
    307308 
    308309 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/views/header.php

    r12479 r12713  
    2727//css 
    2828$html .= '<link href="' . framework_css().$version_tag . '" rel="stylesheet" type="text/css">'; 
    29  
     29//include jquery-ui css 
     30if ($amp_conf['DISABLE_CSS_AUTOGEN'] == true) { 
     31  $html .= '<link href="' . $amp_conf['JQUERY_CSS'].$version_tag . '" rel="stylesheet" type="text/css">'; 
     32
    3033//include rtl stylesheet if using a rtl langauge 
    3134if (isset($_COOKIE['lang']) && in_array($_COOKIE['lang'], array('he_IL'))) { 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/views/menu.php

    r12646 r12713  
    1010*/ 
    1111$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'] . '"/ />'; 
    1314     
    1415if (isset($fpbx_menu) && is_array($fpbx_menu)) {   
     
    2021      case 'reports': 
    2122      case 'settings': 
    22         $menu[$deets['type']][strtolower($deets['category'])][] = $deets; 
     23        $menu[strtolower($deets['category'])][] = $deets; 
    2324        break; 
    2425      default: 
    25         $menu[$deets['type']]['other'][] = $deets; 
     26        $menu['other'][] = $deets; 
    2627        break; 
    2728    } 
    2829     
    2930  } 
    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>'; 
    4263         
    43         //build defualt module url 
    44         $href = isset($mod['href']) 
    45             ? $mod['href'] 
    46             : "config.php?display=" . $mod['display']; 
    47          
    48         //highlight currently in-use module 
    49         if ($display == $mod['display']) { 
    50           $classes[] = 'ui-state-highlight'; 
    51           $classes[] = 'ui-corner-all'; 
    52         } 
    53          
    54         //highlight disabled modules 
    55         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); 
    6964    } 
    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); 
    7271} 
    7372$out .= '<a href="/recordings" target="_blank">' . _('User Panel') . '</a>'; 
  • freepbx/branches/2.10/upgrades/2.10alpha1/migration.php

    r12689 r12713  
    7474$freepbx_conf->commit_conf_settings(); 
    7575 
     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(); 
    7692 
    7793//footer 
  • modules/branches/2.10/irc/page.irc.php

    r12445 r12713  
    118118<div class="rnav"><ul> 
    119119    <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> 
    121121</ul></div> 
    122122<h2>