Changeset 682
- Timestamp:
- 10/09/07 22:01:48 (15 months ago)
- Location:
- trunk/common
- Files:
-
- 3 modified
-
mvblog.php (modified) (1 diff)
-
mvblog_admin.php (modified) (1 diff)
-
mvblog_common.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/mvblog.php
r657 r682 245 245 $categories = explode(",", $row["categories_ids"]); 246 246 foreach ($categories as $v) { 247 if (array_key_exists($v, $this->categories) && $this->categories[$v]["icon"] )247 if (array_key_exists($v, $this->categories) && $this->categories[$v]["icon"] && $this->settings["show_cat_icons"]) 248 248 echo "<img src=\"images/categories/".$this->categories[$v]["icon"]."\" title=\"".htmlspecialchars($this->categories[$v]["name"])."\" alt=\"".htmlspecialchars($this->categories[$v]["name"])."\" class=\"category_icon\" /> "; 249 249 elseif (array_key_exists($v, $this->categories)) -
trunk/common/mvblog_admin.php
r657 r682 1774 1774 </td> 1775 1775 </tr><tr> 1776 <td><?php echo gettext("show category icons"); ?></td> 1777 <td> 1778 <select name="settings[show_cat_icons]"> 1779 <option value="0"><?php echo gettext("no"); ?></option> 1780 <option value="1"<?php if ($settings["show_cat_icons"] == 1) echo " SELECTED"; ?>><?php echo gettext("yes"); ?></option> 1781 </select> 1782 </td> 1783 </tr><tr> 1776 1784 <td colspan="2"> </td> 1777 1785 </tr><tr> -
trunk/common/mvblog_common.php
r678 r682 407 407 $settings["allowanoncomments"] = 0; 408 408 $settings["dbversion"] = 0; 409 $settings["show_cat_icons"] = 0; 409 410 410 411 while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
