Changeset 3228
- Timestamp:
- 10/18/13 19:35:41 (10 years ago)
- Location:
- plugins/categoriesMode
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/categoriesMode/_admin.php
r3215 r3228 12 12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 13 14 require_once dirname(__FILE__).'/_widgets.php'; 15 14 16 $_menu['Blog']->addItem('categoriesMode','plugin.php?p=categoriesMode','index.php?pf=categoriesMode/icon.png', 15 17 preg_match('/plugin.php\?p=categoriesMode(&.*)?$/',$_SERVER['REQUEST_URI']), -
plugins/categoriesMode/_public.php
r3215 r3228 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 if (!defined('DC_RC_PATH')) { return; } 13 14 # If categoriesMode is not active we stop here : 15 if (!$core->blog->settings->categoriesmode->categoriesmode_active) { return; } 13 16 14 17 require_once dirname(__FILE__).'/_widgets.php'; … … 54 57 } 55 58 56 # If categoriesMode not active we stop here : 57 if (!$core->blog->settings->categoriesmode->categoriesmode_active) { 58 return; 59 } 59 60 60 61 61 # Adds a new template behavior : -
plugins/categoriesMode/default-templates/categories.html
r3215 r3228 43 43 <h2>{{tpl:lang Categories}}</h2> 44 44 </div> 45 45 46 46 <div class="content-inner"> 47 47 <tpl:Categories> -
plugins/categoriesMode/index.php
r3215 r3228 75 75 <h4><?php echo __('Plugin activation'); ?></h4> 76 76 <p class="field"> 77 <label class=" classic"><?php echo form::checkbox('active', 1, $active); ?> 77 <label class=" classic"><?php echo form::checkbox('active', 1, $active); ?> 78 78 <?php echo __('Enable categoriesMode');?> 79 79 </label>
Note: See TracChangeset
for help on using the changeset viewer.