Changeset 1603832
- Timestamp:
- 02/26/2017 11:54:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
related-posts-by-aarvis/trunk/related-posts-by-aarvis.php
r1603825 r1603832 11 11 12 12 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 20 14 21 15 // create deafault settings on plugin activation … … 154 148 add_action('admin_menu','RPA_top_menu'); 155 149 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 156 158 157 159 // call back funtion to render the admin page … … 227 229 } 228 230 } 231 229 232 ?> 230 233 <h3><?php esc_attr_e('Related Posts Settings' , 'RPA-plugin' ); ?> </h3><hr>
Note: See TracChangeset
for help on using the changeset viewer.