Changeset 589574
- Timestamp:
- 08/23/2012 10:12:38 PM (14 years ago)
- Location:
- category-icons/tags/2.2.3
- Files:
-
- 2 edited
-
category_icons.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
category-icons/tags/2.2.3/category_icons.php
r589563 r589574 1113 1113 update_option('igcaticons_max_icons', $_POST['igcaticons_max_icons']); 1114 1114 update_option('igcaticons_before_name', $_POST['igcaticons_before_name']); 1115 if (isset($_POST['igcaticons_templatecode_patch'])) update_option('igcaticons_templatecode_patch', $_POST['igcaticons_templatecode_patch']);1116 if (isset($_POST['igcaticons_templatecode_sidebar'])) update_option('igcaticons_templatecode_sidebar', $_POST['igcaticons_templatecode_sidebar']);1117 update_option('igcaticons_rssfeeds', $_POST['igcaticons_rssfeeds']);1118 if (isset($_POST['igcaticons_useseo_plugin'])) update_option('igcaticons_useseo_plugin', $_POST['igcaticons_useseo_plugin']);1119 1115 update_option('igcaticons_max_width', $_POST['igcaticons_max_width']); 1120 1116 update_option('igcaticons_max_height', $_POST['igcaticons_max_height']); 1121 if (isset($_POST['igcaticons_iconcatpage'])) update_option('igcaticons_iconcatpage', $_POST['igcaticons_iconcatpage']);1122 1117 1118 bm_caticons_updatemyoption('igcaticons_templatecode_patch'); 1119 bm_caticons_updatemyoption('igcaticons_templatecode_sidebar'); 1120 bm_caticons_updatemyoption('igcaticons_rssfeeds'); 1121 bm_caticons_updatemyoption('igcaticons_useseo_plugin'); 1122 bm_caticons_updatemyoption('igcaticons_iconcatpage'); 1123 1123 } 1124 1124 … … 1137 1137 } 1138 1138 1139 function bm_caticons_updatemyoption($option) { 1140 if (isset($_POST[$option])) { 1141 update_option($option, $_POST[$option]); 1142 } 1143 else { 1144 update_option($option, 0); 1145 } 1146 } 1139 1147 /** 1140 1148 * Display the menu (Icons, Options, Template Tags) … … 1189 1197 </div> 1190 1198 <label><input type="checkbox" name="igcaticons_rssfeeds" id="rssfeeds" value="1" <?php checked('1', get_option('igcaticons_rssfeeds')); ?> /> <?php _e('Display category icons in RSS feeds','category_icons'); ?></label> 1191 <label><input type="checkbox" name="igcaticons_iconcatpage" id="iconcatpage" value="1" <?php checked(' 0', get_option('igcaticons_iconcatpage')); ?> /> <?php _e('Display only the icon of the selected category in the category page','category_icons'); ?></label>1199 <label><input type="checkbox" name="igcaticons_iconcatpage" id="iconcatpage" value="1" <?php checked('1', get_option('igcaticons_iconcatpage')); ?> /> <?php _e('Display only the icon of the selected category in the category page','category_icons'); ?></label> 1192 1200 1193 1201 <?php if (function_exists('seo_friendly_images')) : ?> -
category-icons/tags/2.2.3/readme.txt
r589562 r589574 65 65 = 2.2.3 = 66 66 * I've added an option in the panel settings for this : "in the category page, only that category icon is displayed in front of the title if the post has more than one category". 67 * Bug fixed : the options with a checkbox were not saved correctly (!) 67 68 68 69 = 2.2.2 =
Note: See TracChangeset
for help on using the changeset viewer.