Changeset 487418
- Timestamp:
- 01/10/2012 09:44:55 AM (14 years ago)
- Location:
- yet-another-photoblog/trunk
- Files:
-
- 1 added
- 5 edited
-
lib/Yapb.class.php (modified) (2 diffs)
-
lib/includes/YapbCompatibilityActions.class.php (added)
-
lib/options/YapbOptionGroup.class.php (modified) (4 diffs)
-
lib/options/YapbOptions.php (modified) (7 diffs)
-
tpl/css/yapb_options_page.css (modified) (1 diff)
-
tpl/yapb_options_page.tpl.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
yet-another-photoblog/trunk/lib/Yapb.class.php
r487375 r487418 703 703 704 704 $this->options->initialize(); 705 706 // Backwards compatibility actions 707 708 require_once realpath(dirname(__FILE__) . '/includes/YapbCompatibilityActions.class.php'); 709 YapbCompatibilityActions::run(); 705 710 706 711 } … … 933 938 // Thumbnails may be linked to the actual post or image 934 939 935 if (get_option('yapb_display_images_' . $area[0] . '_link ')) {940 if (get_option('yapb_display_images_' . $area[0] . '_link_activate')) { 936 941 937 942 // Link href -
yet-another-photoblog/trunk/lib/options/YapbOptionGroup.class.php
r486930 r487418 77 77 // Tabs UL 78 78 79 $result .= '<a name="anchor" id="yapb-options-group-' . self::$index . '" class="basic-accordion-anchor "> </a>';79 $result .= '<a name="anchor" id="yapb-options-group-' . self::$index . '" class="basic-accordion-anchor yapb-option-group yapb-option-group-level' . $this->level . '"> </a>'; 80 80 $result .= '<div id="accordion" class="basic-accordion">'; 81 81 … … 112 112 if (!empty($this->children)) { 113 113 114 $result .= '<table id="yapb-options-group-' . self::$index . '" style="height:auto;" class="form-table">';114 $result .= '<table class="yapb-option-group yapb-option-group-level' . $this->level . '" id="yapb-options-group-' . self::$index . '" style="height:auto;" class="form-table">'; 115 115 for ($i=0, $ilen=count($this->children); $i<$ilen; $i++) { 116 116 $child = &$this->children[$i]; … … 133 133 $result .= '<td valign="top">'; 134 134 135 $result .= "\n" . '<div id="yapb-options-group-' . self::$index . '">';135 $result .= "\n" . '<div class="yapb-option-group yapb-option-group-level' . $this->level . '" id="yapb-options-group-' . self::$index . '">'; 136 136 137 137 if (!empty($this->description)) { … … 157 157 // Level 3 of nesting options 158 158 159 $result .= '<div id="yapb-options-group-' . self::$index . '" style="padding:0 0 5px 20px;border-left:2px dotted #efefef;">';159 $result .= '<div class="yapb-option-group yapb-option-group-level' . $this->level . '" id="yapb-options-group-' . self::$index . '">'; 160 160 $result .= '<ul>'; 161 161 -
yet-another-photoblog/trunk/lib/options/YapbOptions.php
r487375 r487418 115 115 new YapbTextareaOption('yapb_display_images_xml_html_after', __('Custom HTML after image tag', 'yapb'), ''), 116 116 new YapbCheckboxOption('yapb_display_images_xml_thumbnail_activate', __('Embed as thumbnail', 'yapb'), true), 117 new YapbInputOption('yapb_display_images_xml_thumbnail', __('Maximum thumbnail width of #3 px', 'yapb'), '180'), 118 new YapbInputOption('yapb_display_images_xml_thumbnail_height', __('Maximum thumbnail height of #3 px', 'yapb'), ''), 119 new YapbCheckboxOption('yapb_display_images_xml_thumbnail_crop', __('Crop thumbnail to fill in the defined rectangle', 'yapb'), false) 117 new YapbOptionGroup( 118 '', 119 '', 120 array( 121 new YapbInputOption('yapb_display_images_xml_thumbnail', __('Maximum thumbnail width of #3 px', 'yapb'), '180'), 122 new YapbInputOption('yapb_display_images_xml_thumbnail_height', __('Maximum thumbnail height of #3 px', 'yapb'), ''), 123 new YapbCheckboxOption('yapb_display_images_xml_thumbnail_crop', __('Crop thumbnail to fill in the defined rectangle', 'yapb'), false) 124 ) 125 ) 120 126 ) 121 127 ), … … 126 132 array( 127 133 new YapbCheckboxOption('yapb_display_images_xml_media_enclosure', __('<strong>Embed images as media enclosures.</strong>', 'yapb'), false), 128 new YapbSeparatorOption(),129 134 new YapbCheckboxOption('yapb_display_images_xml_media_enclosure_resized_activate', __('Embed only resized image', 'yapb'), false), 130 new YapbInputOption('yapb_display_images_xml_media_enclosure_resized_width', __('Maximum image width of #3 px', 'yapb'), '180'), 131 new YapbInputOption('yapb_display_images_xml_media_enclosure_resized_height', __('Maximum image height of #3 px', 'yapb'), ''), 132 new YapbCheckboxOption('yapb_display_images_xml_media_enclosure_resized_crop', __('Crop image to fill in the defined rectangle', 'yapb'), false) 135 new YapbOptionGroup( 136 '', 137 '', 138 array( 139 new YapbInputOption('yapb_display_images_xml_media_enclosure_resized_width', __('Maximum image width of #3 px', 'yapb'), '180'), 140 new YapbInputOption('yapb_display_images_xml_media_enclosure_resized_height', __('Maximum image height of #3 px', 'yapb'), ''), 141 new YapbCheckboxOption('yapb_display_images_xml_media_enclosure_resized_crop', __('Crop image to fill in the defined rectangle', 'yapb'), false) 142 ) 143 ) 133 144 ) 134 145 ), … … 139 150 array( 140 151 new YapbCheckboxOption('yapb_yahoo_media_rss_activate', __('<strong>Turn on yahoo media RSS2 enhancement in general.</strong>', 'yapb'), false), 141 new YapbSeparatorOption(),142 152 new YapbCheckboxOption('yapb_yahoo_media_rss_resized_activate', __('Embed only resized image', 'yapb'), false), 143 new YapbInputOption('yapb_yahoo_media_rss_resized_width', __('Maximum image width of #3 px', 'yapb'), '180'), 144 new YapbInputOption('yapb_yahoo_media_rss_resized_height', __('Maximum image height of #3 px', 'yapb'), ''), 145 new YapbCheckboxOption('yapb_yahoo_media_rss_resized_crop', __('Crop image to fill in the defined rectangle', 'yapb'), false), 146 new YapbSeparatorOption(), 153 new YapbOptionGroup( 154 '', 155 '', 156 array( 157 new YapbInputOption('yapb_yahoo_media_rss_resized_width', __('Maximum image width of #3 px', 'yapb'), '180'), 158 new YapbInputOption('yapb_yahoo_media_rss_resized_height', __('Maximum image height of #3 px', 'yapb'), ''), 159 new YapbCheckboxOption('yapb_yahoo_media_rss_resized_crop', __('Crop image to fill in the defined rectangle', 'yapb'), false) 160 ) 161 ), 147 162 new YapbCheckboxOption('yapb_yahoo_media_rss_thumbnail_activate', __('Include media:thumbnail', 'yapb'), false), 148 new YapbInputOption('yapb_yahoo_media_rss_thumbnail_width', __('Maximum thumbnail width of #3 px', 'yapb'), '60'), 149 new YapbInputOption('yapb_yahoo_media_rss_thumbnail_height', __('Maximum thumbnail height of #3 px', 'yapb'), ''), 150 new YapbCheckboxOption('yapb_yahoo_media_rss_thumbnail_crop', __('Crop thumbnail to fill in the defined rectangle', 'yapb'), false) 163 new YapbOptionGroup( 164 '', 165 '', 166 array( 167 new YapbInputOption('yapb_yahoo_media_rss_thumbnail_width', __('Maximum thumbnail width of #3 px', 'yapb'), '60'), 168 new YapbInputOption('yapb_yahoo_media_rss_thumbnail_height', __('Maximum thumbnail height of #3 px', 'yapb'), ''), 169 new YapbCheckboxOption('yapb_yahoo_media_rss_thumbnail_crop', __('Crop thumbnail to fill in the defined rectangle', 'yapb'), false) 170 ) 171 ) 151 172 ) 152 173 ) … … 190 211 array( 191 212 new YapbCheckboxOption('yapb_display_images_home', __('<strong>Display images on HOME page listing.</strong>', 'yapb'), true), 192 new YapbCheckboxInputOption('yapb_display_images_home_thumbnail', __('Display as thumbnail with a width of #3 px', 'yapb'), true, '200'),193 new YapbCheckboxOption('yapb_display_images_home_link ', __('Enable image links:', 'yapb'), true),213 new YapbCheckboxInputOption('yapb_display_images_home_thumbnail', __('Display image as thumbnail with a width of #3 px', 'yapb'), true, '200'), 214 new YapbCheckboxOption('yapb_display_images_home_link_activate', __('Enable image links:', 'yapb'), true), 194 215 new YapbOptionGroup( 195 216 __('Linking', 'yapb'), 196 217 '', 197 218 array( 198 new YapbRadioOption('yapb_display_images_home_linktype', 'Link to actual post', 'post', true),199 new YapbRadioOption('yapb_display_images_home_linktype', 'Link to original image', 'image', false),219 new YapbRadioOption('yapb_display_images_home_linktype', __('Link to actual post', 'yapb'), 'post', true), 220 new YapbRadioOption('yapb_display_images_home_linktype', __('Link to original image', 'yapb'), 'image', false), 200 221 new YapbOptionGroup( 201 222 __('Link thumbnails to image'), … … 220 241 array( 221 242 new YapbCheckboxOption('yapb_display_images_single', __('<strong>Display images on SINGLE pages.</strong>', 'yapb'), true), 222 new YapbCheckboxInputOption('yapb_display_images_single_thumbnail', __('Display as thumbnail with a width of #3 px', 'yapb'), true, '460'),223 new YapbCheckboxOption('yapb_display_images_single_link ', __('Enable image link.', 'yapb'), true),243 new YapbCheckboxInputOption('yapb_display_images_single_thumbnail', __('Display image as thumbnail with a width of #3 px', 'yapb'), true, '460'), 244 new YapbCheckboxOption('yapb_display_images_single_link_activate', __('Enable image link.', 'yapb'), true), 224 245 new YapbOptionGroup( 225 246 __('Linking', 'yapb'), 226 247 '', 227 248 array( 228 new YapbRadioOption('yapb_display_images_single_linktype', 'Link to actual post', 'post', true),229 new YapbRadioOption('yapb_display_images_single_linktype', 'Link to original image', 'image', false),249 new YapbRadioOption('yapb_display_images_single_linktype', __('Link to actual post', 'yapb'), 'post', true), 250 new YapbRadioOption('yapb_display_images_single_linktype', __('Link to original image', 'yapb'), 'image', false), 230 251 new YapbOptionGroup( 231 252 __('Link thumbnails to image'), … … 250 271 array( 251 272 new YapbCheckboxOption('yapb_display_images_archive', __('<strong>Display images on ARCHIVE overview page listings.</strong>', 'yapb'), true), 252 new YapbCheckboxInputOption('yapb_display_images_archive_thumbnail', __('Display as thumbnail with a width of #3 px', 'yapb'), true, '100'),253 new YapbCheckboxOption('yapb_display_images_archive_link ', __('Enable image links.', 'yapb'), true),273 new YapbCheckboxInputOption('yapb_display_images_archive_thumbnail', __('Display image as thumbnail with a width of #3 px', 'yapb'), true, '100'), 274 new YapbCheckboxOption('yapb_display_images_archive_link_activate', __('Enable image links.', 'yapb'), true), 254 275 new YapbOptionGroup( 255 276 __('Linking', 'yapb'), 256 277 '', 257 278 array( 258 new YapbRadioOption('yapb_display_images_archive_linktype', 'Link to actual post', 'post', true),259 new YapbRadioOption('yapb_display_images_archive_linktype', 'Link to original image', 'image', false),279 new YapbRadioOption('yapb_display_images_archive_linktype', __('Link to actual post', 'yapb'), 'post', true), 280 new YapbRadioOption('yapb_display_images_archive_linktype', __('Link to original image', 'yapb'), 'image', false), 260 281 new YapbOptionGroup( 261 282 __('Link thumbnails to image'), … … 280 301 array( 281 302 new YapbCheckboxOption('yapb_display_images_page', __('<strong>Display images on CONTENT pages.</strong>', 'yapb'), true), 282 new YapbCheckboxInputOption('yapb_display_images_page_thumbnail', __('Display as thumbnail with a width of #3 px', 'yapb'), false, '100'),283 new YapbCheckboxOption('yapb_display_images_page_link ', __('Enable image link.', 'yapb'), true),303 new YapbCheckboxInputOption('yapb_display_images_page_thumbnail', __('Display image as thumbnail with a width of #3 px', 'yapb'), false, '100'), 304 new YapbCheckboxOption('yapb_display_images_page_link_activate', __('Enable image link.', 'yapb'), true), 284 305 new YapbOptionGroup( 285 306 __('Linking', 'yapb'), 286 307 '', 287 308 array( 288 new YapbRadioOption('yapb_display_images_page_linktype', 'Link to actual post', 'post', true),289 new YapbRadioOption('yapb_display_images_page_linktype', 'Link to original image', 'image', false),309 new YapbRadioOption('yapb_display_images_page_linktype', __('Link to actual post', 'yapb'), 'post', true), 310 new YapbRadioOption('yapb_display_images_page_linktype', __('Link to original image', 'yapb'), 'image', false), 290 311 new YapbOptionGroup( 291 312 __('Link thumbnails to image'), -
yet-another-photoblog/trunk/tpl/css/yapb_options_page.css
r459892 r487418 257 257 text-decoration: underline; 258 258 } 259 259 260 /* Option groups */ 261 262 ul.yapb, 263 p.yapb-first { 264 margin: 0 0 10px 0; 265 } 266 267 .wrap-yapb-options th { 268 padding-top: 20px; 269 padding-right: 20px; 270 } 271 272 /* YAPB option groups */ 273 274 .yapb-option-group-level2 { 275 padding-top: 20px; 276 } 277 278 .yapb-option-group-level3, 279 .yapb-option-group-level4 { 280 281 margin-left: 5px; 282 padding: 0 0 5px 20px; 283 border-left: 2px dotted #efefef; 284 285 } 286 260 287 261 288 /* Adaptions for differnt screen resolutions */ -
yet-another-photoblog/trunk/tpl/yapb_options_page.tpl.php
r460340 r487418 1 1 <!-- YAPB Options Page Body --> 2 2 3 <div class="wrap ">3 <div class="wrap wrap-yapb-options"> 4 4 5 5 <div id="icon-options-general" class="icon32"><br/></div>
Note: See TracChangeset
for help on using the changeset viewer.