Plugin Directory

Changeset 487418


Ignore:
Timestamp:
01/10/2012 09:44:55 AM (14 years ago)
Author:
jaroat
Message:
 
Location:
yet-another-photoblog/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • yet-another-photoblog/trunk/lib/Yapb.class.php

    r487375 r487418  
    703703
    704704            $this->options->initialize();
     705           
     706            // Backwards compatibility actions
     707           
     708            require_once realpath(dirname(__FILE__) . '/includes/YapbCompatibilityActions.class.php');
     709            YapbCompatibilityActions::run();
    705710
    706711        }
     
    933938                        // Thumbnails may be linked to the actual post or image
    934939                       
    935                         if (get_option('yapb_display_images_' . $area[0] . '_link')) {
     940                        if (get_option('yapb_display_images_' . $area[0] . '_link_activate')) {
    936941
    937942                            // Link href
  • yet-another-photoblog/trunk/lib/options/YapbOptionGroup.class.php

    r486930 r487418  
    7777                            // Tabs UL
    7878
    79                             $result .= '<a name="anchor" id="yapb-options-group-' . self::$index . '" class="basic-accordion-anchor">&nbsp;</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 . '">&nbsp;</a>';
    8080                            $result .= '<div id="accordion" class="basic-accordion">';
    8181
     
    112112                        if (!empty($this->children)) {
    113113
    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">';
    115115                            for ($i=0, $ilen=count($this->children); $i<$ilen; $i++) {
    116116                                $child = &$this->children[$i];
     
    133133                        $result .= '<td valign="top">';
    134134
    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 . '">';
    136136                       
    137137                        if (!empty($this->description)) {
     
    157157                        // Level 3 of nesting options
    158158                       
    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 . '">';
    160160                        $result .= '<ul>';
    161161                       
  • yet-another-photoblog/trunk/lib/options/YapbOptions.php

    r487375 r487418  
    115115                            new YapbTextareaOption('yapb_display_images_xml_html_after', __('Custom HTML after image tag', 'yapb'), ''),
    116116                            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                            )
    120126                        )
    121127                    ),
     
    126132                        array(
    127133                            new YapbCheckboxOption('yapb_display_images_xml_media_enclosure', __('<strong>Embed images as media enclosures.</strong>', 'yapb'), false),
    128                             new YapbSeparatorOption(),
    129134                            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                            )
    133144                        )
    134145                    ),
     
    139150                        array(
    140151                            new YapbCheckboxOption('yapb_yahoo_media_rss_activate', __('<strong>Turn on yahoo media RSS2 enhancement in general.</strong>', 'yapb'), false),
    141                             new YapbSeparatorOption(),
    142152                            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                            ),
    147162                            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                            )
    151172                        )
    152173                    )
     
    190211                        array(
    191212                            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),
    194215                            new YapbOptionGroup(
    195216                                __('Linking', 'yapb'),
    196217                                '',
    197218                                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),
    200221                                    new YapbOptionGroup(
    201222                                        __('Link thumbnails to image'),
     
    220241                        array(
    221242                            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),
    224245                            new YapbOptionGroup(
    225246                                __('Linking', 'yapb'),
    226247                                '',
    227248                                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),
    230251                                    new YapbOptionGroup(
    231252                                        __('Link thumbnails to image'),
     
    250271                        array(
    251272                            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),
    254275                            new YapbOptionGroup(
    255276                                __('Linking', 'yapb'),
    256277                                '',
    257278                                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),
    260281                                    new YapbOptionGroup(
    261282                                        __('Link thumbnails to image'),
     
    280301                        array(
    281302                            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),
    284305                            new YapbOptionGroup(
    285306                                __('Linking', 'yapb'),
    286307                                '',
    287308                                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),
    290311                                    new YapbOptionGroup(
    291312                                        __('Link thumbnails to image'),
  • yet-another-photoblog/trunk/tpl/css/yapb_options_page.css

    r459892 r487418  
    257257                text-decoration: underline;
    258258            }
    259        
     259           
     260/* Option groups */
     261
     262ul.yapb,
     263p.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           
    260287
    261288/* Adaptions for differnt screen resolutions */     
  • yet-another-photoblog/trunk/tpl/yapb_options_page.tpl.php

    r460340 r487418  
    11<!-- YAPB Options Page Body -->
    22
    3 <div class="wrap">
     3<div class="wrap wrap-yapb-options">
    44
    55    <div id="icon-options-general" class="icon32"><br/></div>
Note: See TracChangeset for help on using the changeset viewer.