only show cache images option in feed editor when SIMPLEPIE_CACHE_IMAGES is enabled

This commit is contained in:
Andrew Dolgov 2011-01-26 11:38:07 +03:00
parent ce72cb956d
commit 0900727a8b
1 changed files with 10 additions and 7 deletions

View File

@ -443,11 +443,12 @@
$checked = ""; $checked = "";
} }
if (SIMPLEPIE_CACHE_IMAGES) {
print "<hr/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"cache_images\" print "<hr/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"cache_images\"
name=\"cache_images\" name=\"cache_images\"
$checked>&nbsp;<label for=\"cache_images\">". $checked>&nbsp;<label for=\"cache_images\">".
__('Cache images locally (SimplePie only)')."</label>"; __('Cache images locally (SimplePie only)')."</label>";
}
# print "</div>"; # print "</div>";
print "</div>"; print "</div>";
@ -609,6 +610,7 @@
print "&nbsp;"; batch_edit_cbox("always_display_enclosures", "always_display_enclosures_l"); print "&nbsp;"; batch_edit_cbox("always_display_enclosures", "always_display_enclosures_l");
if (SIMPLEPIE_CACHE_IMAGES) {
print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"cache_images\" print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"cache_images\"
name=\"cache_images\" name=\"cache_images\"
dojoType=\"dijit.form.CheckBox\">&nbsp;<label class='insensitive' id=\"cache_images_l\" dojoType=\"dijit.form.CheckBox\">&nbsp;<label class='insensitive' id=\"cache_images_l\"
@ -617,6 +619,7 @@
print "&nbsp;"; batch_edit_cbox("cache_images", "cache_images_l"); print "&nbsp;"; batch_edit_cbox("cache_images", "cache_images_l");
}
print "</div>"; print "</div>";