Fixed minor things and added missing file
[vanilla-miry.git] / extensions / CategoryIcons / default.php
blobdaa8c22d6f1595f21d01cadf69976f2a93d1fbf1
1 <?php
2 /*
3 Extension Name: CategoryIcons
4 Extension Url: http://www.jwurster.us/gfe/
5 Description: Add Category icons.
6 Version: 1.0.3
7 Author: Jim Wurster (DraganBabic)
8 Author Url: http://www.jwurster.us/
9 */
10 /* version 1.0.3 - added check of config version in order to add config setting and avoid unnecessary database access
12 if (!defined('IN_VANILLA')) exit();
13 $Configuration["CATEGORYICONS_PATH"] = 'extensions/CategoryIcons/';
14 // Set the version number.
15 if (!array_key_exists('CATEGORYICONS_VERSION', $Configuration))
17 AddConfigurationSetting($Context, 'CATEGORYICONS_VERSION', '1.0.3');
18 } else if ($Configuration['CATEGORYICONS_VERSION'] != '1.0.3')
20 AddConfigurationSetting($Context, 'CATEGORYICONS_VERSION', '1.0.3');
23 if (in_array($Context->SelfUrl, array("index.php", "categories.php", "post.php", "comments.php", "settings.php")) )
25 $Context->Dictionary['CategoryIcons'] = 'Category Icons';
26 $Head->AddStyleSheet($Configuration["CATEGORYICONS_PATH"].'style.css');