linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file list.php

Documentation is available at list.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage plugins
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Inclusion de pages ////////////
  12. if (!class_exists('auth')) {
  13.   include_once ("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16.  
  17. $plugins availablePlugins();
  18.  
  19. ?>
  20. <div id="chemin">
  21. <ul>
  22.     <li><a href="index.php" class="chemin_home"><?php echo _t('way','home'?></a></li>
  23.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>" class="chemin_rub"> <?php echo _t('menu','plugins')?> </a></li>
  24. </ul>
  25. </div>
  26. <!--end barre haute -->
  27. <?php include_once(THEME_ADMIN_PATH."quickicons.php")?>
  28. <div class="contentcontainer"><?php include_once(override($dir.'/menurub.php'THEME_ADMIN_PATH));?>
  29. <div id="content">
  30. <div id="plugins_list">
  31. <h2><?php echo _t('plugins','list')?></h2>
  32. <?php if(count($plugins)>0?>
  33. <ul>
  34. <?php foreach($plugins as $plugin?>
  35.     <li style="border-bottom: 1px dotted #ccc; margin: 1em 0; min-height: 85px">
  36.         <?php
  37.         $plug new plugin($plugin);
  38.         $infos $plug->getPluginInfo();
  39.         
  40.         if($plug->hasImage()) echo '<img src="'.$plug->imagePath().'" style="float:right;" alt="'.$plug->getVar('name').'" />';
  41.         echo '<strong>'$infos['shortname''</strong> - ' _t('plugins''author'.' : '.  $infos['author'].' - ' _t('plugins''version'.' : '.$infos['version'].'<br />';
  42.         echo _t('plugins''description'.' : '.$infos['description'].'<br />';
  43.         echo _t('plugins''compatibility'.' : '.$infos['compatibility'].'<br />';
  44.         echo _t('plugins''homepage'.' : ';
  45.         if(!empty($infos['homepage'])) echo '<a href="'.$infos['homepage'].'">'.$infos['homepage'].'</a>';
  46.         else echo empty_nc('');
  47.         echo '<br />'.END_LINE;
  48.         if($plug->is_active()) {
  49.           echo '<span style="color:#0BC221">'._t('plugins''enabled')'</span> | ';
  50.           echo '<a href="index.php?rub=plugins&amp;todo=disable&amp;name='.$plug->getVar('name').'">'._t('plugins','disable').'</a>';
  51.           if($plug->hasAdvancedSettings()) echo ' | <a href="index.php?rub=plugins&amp;current='.$plug->getVar('name').'">'._t('plugins','access').'</a>';
  52.         else {
  53.           echo '<span style="color:#FF0000">'_t('plugins''disabled')'</span> | ';
  54.           echo '<a href="index.php?rub=plugins&amp;todo=enable&amp;name='.$plug->getVar('name').'">'._t('plugins','enable').'</a>';
  55.         }
  56.         if(!is_writable($plug->getVar('relative_url'))) {
  57.             echo '<p class="error">'._t('plugins''folder_not_writable').'</p>';
  58.         }
  59.         ?></li>
  60.         <?php
  61. // closing foreach instruction
  62. ?>
  63. </ul>
  64. </div>
  65. </div>
  66. <?php include_once(override($dir.'/help.php'THEME_ADMIN_PATH))?>
  67. </div>

Documentation generated on Thu, 20 Mar 2014 16:48:39 +0100 by phpDocumentor 1.4.1