Пример #1
0
 /**
  * Display addon details
  *
  */
 function ShowAddon($encoded_key)
 {
     global $config, $langmessage;
     $addon_key = \gp\admin\Tools::decode64($encoded_key);
     if (!isset($config['addons'][$addon_key])) {
         message($langmessage['OOPS'] . '(Addon Not Found)');
         $this->Select();
         return;
     }
     $show = $this->GetDisplayInfo();
     $info = $show[$addon_key];
     $this->ShowHeader($info['name']);
     $this->UpgradeLinks($info);
     //about
     if (!empty($info['About'])) {
         echo '<hr/>';
         echo '<div class="lead">';
         echo $info['About'];
         echo '</div>';
         echo '<hr/><br/>';
     }
     echo '<div id="adminlinks2">';
     $format = array();
     $format['end'] = '</div></div>';
     $format['start'] = '<div class="panelgroup"><h3>%s</h3><div class="panelgroup2">';
     $this->AddonPanel_Special($addon_key, $format);
     $this->AddonPanel_Admin($addon_key, $format);
     $this->AddonPanel_Gadget($addon_key, $format);
     $this->AddonPanel_Hooks($addon_key, $format);
     $this->OptionLinks($addon_key, $info, $format);
     echo '</div>';
 }