Plugin Directory

Changeset 1603832


Ignore:
Timestamp:
02/26/2017 11:54:03 AM (9 years ago)
Author:
subhash76
Message:

bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • related-posts-by-aarvis/trunk/related-posts-by-aarvis.php

    r1603825 r1603832  
    1111
    1212
    13 // custom thumbnail style
    14 if (trim(get_option('RPA_thumb_size')) == 'relatedthumbcustom')
    15     {
    16        
    17         echo('<style>.relatedthumbcustom {margin: 0 1px 0 1px; float: left; } .relatedthumbcustom img {margin: 0 0 3px 0; padding: 0; width: ' . get_option('RPA_imageWidth') . 'px; height: ' . get_option('RPA_imageHeight') . 'px;}  .relatedthumbcustom a {color :#333; text-decoration: none; display:block; padding: 4px; width: '. get_option('RPA_divWidth') .'px; height: '. get_option('RPA_divHeight') .'px;}.relatedthumbcustom a:hover {background-color: #ddd; color: #000;}</style>');
    18    
    19     }
     13
    2014   
    2115// create deafault settings on plugin activation
     
    154148    add_action('admin_menu','RPA_top_menu');
    155149   
     150    // custom thumbnail style
     151    if (trim(get_option('RPA_thumb_size')) == 'relatedthumbcustom')
     152    {
     153       
     154        echo('<style>.relatedthumbcustom {margin: 0 1px 0 1px; float: left; } .relatedthumbcustom img {margin: 0 0 3px 0; padding: 0; width: ' . get_option('RPA_imageWidth') . 'px; height: ' . get_option('RPA_imageHeight') . 'px;}  .relatedthumbcustom a {color :#333; text-decoration: none; display:block; padding: 4px; width: '. get_option('RPA_divWidth') .'px; height: '. get_option('RPA_divHeight') .'px;}.relatedthumbcustom a:hover {background-color: #ddd; color: #000;}</style>');
     155   
     156    }
     157   
    156158   
    157159// call back funtion to render the admin page
     
    227229        }
    228230    }
     231   
    229232        ?>
    230233    <h3><?php esc_attr_e('Related Posts Settings' , 'RPA-plugin' ); ?>  </h3><hr>
Note: See TracChangeset for help on using the changeset viewer.