Changeset 477436
- Timestamp:
- 12/19/2011 12:15:59 PM (14 years ago)
- Location:
- featured-posts-grid/trunk
- Files:
-
- 2 deleted
- 4 edited
- 3 copied
-
. (modified) (1 prop)
-
css/featured-posts-grid-style.css.php (deleted)
-
css/fpg.css.php (copied) (copied from featured-posts-grid/branches/dev/css/fpg.css.php)
-
featured-posts-grid-admin.php (modified) (3 diffs)
-
featured-posts-grid.php (modified) (9 diffs)
-
fpg-generate-output.php (copied) (copied from featured-posts-grid/branches/dev/fpg-generate-output.php)
-
js/featuredpostsgrid.js.php (deleted)
-
js/fpg.js.php (copied) (copied from featured-posts-grid/branches/dev/js/fpg.js.php)
-
readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
featured-posts-grid/trunk
- Property svn:mergeinfo changed
/featured-posts-grid/branches/dev merged: 473940,476473,476627,476629,476631,477430
- Property svn:mergeinfo changed
-
featured-posts-grid/trunk/featured-posts-grid-admin.php
r433039 r477436 1 1 <?php 2 if ( isset($_POST['fpg_opt_hidden']) && $_POST['fpg_opt_hidden'] == 'Y' ) { 3 /* Numeric Variables */ 4 $variables = array ( 5 'fpg_rows', 6 'fpg_columns', 7 'fpg_padding_topbottom', 8 'fpg_padding_leftright', 9 'fpg_spacing_horizontal', 10 'fpg_pages_max', 11 'fpg_item_height', 12 'fpg_item_width', 13 'fpg_item_dropshadow_x', 14 'fpg_item_dropshadow_y', 15 'fpg_item_dropshadow_blur', 16 'fpg_item_dropshadow_spread', 17 'fpg_item_dropshadow_hover_x', 18 'fpg_item_dropshadow_hover_y', 19 'fpg_item_dropshadow_hover_blur', 20 'fpg_item_dropshadow_hover_spread', 21 'fpg_text_dropshadow_x', 22 'fpg_text_dropshadow_y', 23 'fpg_text_dropshadow_blur', 24 'fpg_text_dropshadow_spread', 25 'fpg_text_inset_dropshadow_x', 26 'fpg_text_inset_dropshadow_y', 27 'fpg_text_inset_dropshadow_blur', 28 'fpg_text_inset_dropshadow_spread', 29 //'fpg_pages_pips_spacing', 30 'fpg_item_text_bg_alpha', 31 'fpg_item_dropshadow_alpha', 32 'fpg_item_dropshadow_hover_alpha', 33 'fpg_text_dropshadow_alpha', 34 'fpg_text_inset_dropshadow_alpha', 35 'fpg_inner_border_width', 36 'fpg_item_border_top_width', 37 'fpg_item_border_bottom_width', 38 'fpg_item_border_left_width', 39 'fpg_item_border_right_width', 40 'fpg_text_border_top_width', 41 'fpg_text_border_bottom_width', 42 'fpg_text_border_left_width', 43 'fpg_text_border_right_width', 44 'fpg_page_speed' 45 46 ); 47 48 foreach ($variables as $var) { 49 $var_value = $_POST[$var]; 50 if ( is_numeric($var_value) ) 51 update_option($var, $var_value); 52 else 53 $error[] = "ERROR: ".$var." - Must be a number."; 54 } 55 56 57 58 59 /* Text Variables */ 60 $variables = array ( 61 'fpg_width', 62 'fpg_hover_x_offset', 63 'fpg_hover_y_offset', 64 'fpg_item_dropshadow_color', 65 'fpg_item_dropshadow_hover_color', 66 'fpg_text_dropshadow_color', 67 'fpg_text_inset_dropshadow_color', 68 'fpg_item_border_top_style', 69 'fpg_item_border_top_color', 70 'fpg_item_border_bottom_style', 71 'fpg_item_border_bottom_color', 72 'fpg_item_border_left_style', 73 'fpg_item_border_left_color', 74 'fpg_item_border_right_style', 75 'fpg_item_border_right_color', 76 'fpg_item_text_bg_color', 77 'fpg_item_text_color', 78 'fpg_item_text_fontfamily', 79 'fpg_item_text_fontstyle', 80 'fpg_item_text_fontvariant', 81 'fpg_item_text_fontweight', 82 'fpg_item_text_fontsize', 83 'fpg_item_text_lineheight', 84 'fpg_item_excerpt_color', 85 'fpg_item_excerpt_fontfamily', 86 'fpg_item_excerpt_fontstyle', 87 'fpg_item_excerpt_fontvariant', 88 'fpg_item_excerpt_fontweight', 89 'fpg_item_excerpt_fontsize', 90 'fpg_item_excerpt_lineheight', 91 'fpg_item_author_color', 92 'fpg_item_author_fontfamily', 93 'fpg_item_author_fontstyle', 94 'fpg_item_author_fontvariant', 95 'fpg_item_author_fontweight', 96 'fpg_item_author_fontsize', 97 'fpg_item_author_lineheight', 98 'fpg_item_date_color', 99 'fpg_item_date_fontfamily', 100 'fpg_item_date_fontstyle', 101 'fpg_item_date_fontvariant', 102 'fpg_item_date_fontweight', 103 'fpg_item_date_fontsize', 104 'fpg_item_date_lineheight', 105 'fpg_text_border_top_style', 106 'fpg_text_border_top_color', 107 'fpg_text_border_bottom_style', 108 'fpg_text_border_bottom_color', 109 'fpg_text_border_left_style', 110 'fpg_text_border_left_color', 111 'fpg_text_border_right_style', 112 'fpg_text_border_right_color', 113 'fpg_arrow_position', 114 'fpg_arrow_image', 115 'fpg_pages_pips_image', 116 'fpg_images_bg_color', 117 'fpg_arrow_image_custom_url', 118 'fpg_pages_pips_custom_url', 119 'fpg_inner_border_color' 120 ); 121 122 foreach ($variables as $var) { 123 $var_value = $_POST[$var]; 124 update_option($var, $var_value); 125 } 126 127 128 129 /* Boolean Variables */ 130 $variables = array ( 131 'fpg_excerpt_display', 132 'fpg_author_display', 133 'fpg_date_display', 134 'fpg_item_dropshadow_enable', 135 'fpg_text_dropshadow_enable', 136 'fpg_text_inset_dropshadow_enable', 137 'fpg_images_crop', 138 'fpg_images_height_noscale', 139 'fpg_images_width_noscale', 140 'fpg_images_height_fit', 141 'fpg_images_width_fit' 142 ); 143 144 foreach ($variables as $var) { 145 $var_value = isset($_POST[$var]) ? 1:0; 146 update_option($var, $var_value); 147 } 148 149 150 151 152 if( empty($error) ){ ?> 153 <div class="updated"><p><strong><?php _e('Settings Saved.', 'wp-rp' ); ?></strong></p></div> 154 <?php }else{ ?> 155 <div class="error"><p><strong><?php 156 foreach ( $error as $key=>$val ) { 157 _e($val); 158 echo "<br/>"; 159 } 160 ?></strong></p></div> 161 <?php } 162 } 2 include(WP_PLUGIN_DIR.'/featured-posts-grid/fpg-generate-output.php'); 163 3 164 4 $fpg_rows = get_option('fpg_rows'); … … 299 139 $fpg_images_height_fit = get_option('fpg_images_height_fit'); 300 140 $fpg_images_width_fit = get_option('fpg_images_width_fit'); 141 142 $fpg_autoscroll = get_option('fpg_autoscroll'); 143 $fpg_scroll_interval = get_option('fpg_scroll_interval'); 144 $fpg_rollover = get_option('fpg_rollover'); 301 145 ?> 302 146 … … 411 255 </td> 412 256 </tr> 257 258 259 260 261 262 263 <tr valign="top"> 264 <th scope="row">Scrolling</th> 265 <td> 266 <fieldset> 267 <legend class="hidden">Scrolling</legend> 268 <?php if($fpg_autoscroll == 1){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?> 269 <input type="checkbox" name="fpg_autoscroll" value="true" <?php echo $checked; ?>><?php _e(" Automatically Scroll Posts"); ?> 270 <br /> 271 272 <input type="text" name="fpg_scroll_interval" maxlength="5" size="5" value="<?php echo $fpg_scroll_interval; ?>" /> 273 <?php _e("Autoscroll Interval (milliseconds)"); ?> 274 <br /> 275 276 <?php if($fpg_rollover == 1){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?> 277 <input type="checkbox" name="fpg_rollover" value="true" <?php echo $checked; ?>><?php _e(" Rollover Scrolling (scroll off one end back around to the other)"); ?> 278 <br /> 279 </fieldset> 280 </td> 281 </tr> 282 283 284 285 286 413 287 414 288 <tr valign="top"> -
featured-posts-grid/trunk/featured-posts-grid.php
r470980 r477436 4 4 Plugin URI: http://chasepettit.com 5 5 Description: A javascript based display of post titles and thumbnails in a grid layout. 6 Version: 1. 46 Version: 1.5 7 7 Author: Chaser324 8 8 Author URI: http://chasepettit.com … … 40 40 add_action('admin_init', 'fpg_define_image_sizes'); 41 41 42 // Array of pairs of variable names and default values. 43 $fpg_variables = array ( 44 'fpg_rows' => '1', 45 'fpg_columns' => '3', 46 47 'fpg_excerpt_display' => '0', 48 'fpg_author_display' => '0', 49 'fpg_date_display' => '0', 50 51 'fpg_padding_topbottom' => '15', 52 'fpg_padding_leftright' => '15', 53 'fpg_spacing_horizontal' => '15', 54 55 'fpg_hover_x_offset' => '2', 56 'fpg_hover_y_offset' => '2', 57 58 'fpg_pages_max' => '1', 59 'fpg_width' => '100%', 60 61 'fpg_item_height' => '100', 62 'fpg_item_width' => '100', 63 64 'fpg_page_speed' => '150', 65 66 'fpg_item_dropshadow_enable' => '1', 67 'fpg_text_dropshadow_enable' => '1', 68 'fpg_text_inset_dropshadow_enable' => '1', 69 70 'fpg_item_dropshadow_color' => '000000', 71 'fpg_item_dropshadow_alpha' => '0.5', 72 'fpg_item_dropshadow_x' => '2', 73 'fpg_item_dropshadow_y' => '2', 74 'fpg_item_dropshadow_blur' => '2', 75 'fpg_item_dropshadow_spread' => '2', 76 77 'fpg_item_dropshadow_hover_color' => '000000', 78 'fpg_item_dropshadow_hover_alpha' => '0.5', 79 'fpg_item_dropshadow_hover_x' => '0', 80 'fpg_item_dropshadow_hover_y' => '0', 81 'fpg_item_dropshadow_hover_blur' => '0', 82 'fpg_item_dropshadow_hover_spread' => '0', 83 84 'fpg_text_dropshadow_color' => '000000', 85 'fpg_text_dropshadow_alpha' => '0.5', 86 'fpg_text_dropshadow_x' => '2', 87 'fpg_text_dropshadow_y' => '2', 88 'fpg_text_dropshadow_blur' => '2', 89 'fpg_text_dropshadow_spread' => '2', 90 91 'fpg_text_inset_dropshadow_color' => '000000', 92 'fpg_text_inset_dropshadow_alpha' => '0.5', 93 'fpg_text_inset_dropshadow_x' => '2', 94 'fpg_text_inset_dropshadow_y' => '2', 95 'fpg_text_inset_dropshadow_blur' => '2', 96 'fpg_text_inset_dropshadow_spread' => '2', 97 98 'fpg_item_border_top_style' => 'solid', 99 'fpg_item_border_top_width' => '1', 100 'fpg_item_border_top_color' => '525252', 101 'fpg_item_border_bottom_style' => 'solid', 102 'fpg_item_border_bottom_width' => '1', 103 'fpg_item_border_bottom_color' => '000000', 104 'fpg_item_border_left_style' => 'solid', 105 'fpg_item_border_left_width' => '1', 106 'fpg_item_border_left_color' => '525252', 107 'fpg_item_border_right_style' => 'solid', 108 'fpg_item_border_right_width' => '1', 109 'fpg_item_border_right_color' => '000000', 110 111 'fpg_inner_border_width' => '0', 112 'fpg_inner_border_color' => 'FFFFFF', 113 114 'fpg_item_text_bg_color' => '000000', 115 'fpg_item_text_bg_alpha' => '0.5', 116 117 'fpg_item_text_color' => 'FFFFFF', 118 'fpg_item_text_fontfamily' => 'Arial, Veranda, sans-serif', 119 'fpg_item_text_fontstyle' => 'normal', 120 'fpg_item_text_fontvariant' => 'normal', 121 'fpg_item_text_fontweight' => 'bold', 122 'fpg_item_text_fontsize' => '12px', 123 'fpg_item_text_lineheight' => '12px', 124 125 'fpg_item_excerpt_color' => 'FFFFFF', 126 'fpg_item_excerpt_fontfamily' => 'Arial, Veranda, sans-serif', 127 'fpg_item_excerpt_fontstyle' => 'normal', 128 'fpg_item_excerpt_fontvariant' => 'normal', 129 'fpg_item_excerpt_fontweight' => 'normal', 130 'fpg_item_excerpt_fontsize' => '10px', 131 'fpg_item_excerpt_lineheight' => '10px', 132 133 'fpg_item_author_color' => 'FFFFFF', 134 'fpg_item_author_fontfamily' => 'Arial, Veranda, sans-serif', 135 'fpg_item_author_fontstyle' => 'normal', 136 'fpg_item_author_fontvariant' => 'normal', 137 'fpg_item_author_fontweight' => 'normal', 138 'fpg_item_author_fontsize' => '8px', 139 'fpg_item_author_lineheight' => '8px', 140 141 'fpg_item_date_color' => 'FFFFFF', 142 'fpg_item_date_fontfamily' => 'Arial, Veranda, sans-serif', 143 'fpg_item_date_fontstyle' => 'normal', 144 'fpg_item_date_fontvariant' => 'normal', 145 'fpg_item_date_fontweight' => 'normal', 146 'fpg_item_date_fontsize' => '8px', 147 'fpg_item_date_lineheight' => '8px', 148 149 'fpg_text_border_top_style' => 'solid', 150 'fpg_text_border_top_width' => '0', 151 'fpg_text_border_top_color' => '000000', 152 'fpg_text_border_bottom_style' => 'solid', 153 'fpg_text_border_bottom_width' => '0', 154 'fpg_text_border_bottom_color' => '000000', 155 'fpg_text_border_left_style' => 'solid', 156 'fpg_text_border_left_width' => '0', 157 'fpg_text_border_left_color' => '', 158 'fpg_text_border_right_style' => 'solid', 159 'fpg_text_border_right_width' => '0', 160 'fpg_text_border_right_color' => '000000', 161 162 'fpg_arrow_position' => 'below', 163 'fpg_arrow_image' => 'orange', 164 'fpg_pages_pips_image' => 'orange', 165 'fpg_pages_pips_spacing' => '30', 166 'fpg_arrow_image_custom_url' => '', 167 'fpg_pages_pips_custom_url' => '', 168 169 'fpg_images_bg_color' => '000000', 170 'fpg_images_crop' => '1', 171 'fpg_images_height_noscale' => '0', 172 'fpg_images_width_noscale' => '0', 173 'fpg_images_height_fit' => '1', 174 'fpg_images_width_fit' => '1', 175 176 'fpg_autoscroll' => '0', 177 'fpg_scroll_interval' => '7000', 178 'fpg_rollover' => '0' 179 ); 180 42 181 /* Activate the plugin by creating/initializing all options */ 43 182 function fpg_activate() 44 183 { 45 // Array of pairs of variable names and default values. 46 $variables = array ( 47 'fpg_rows' => '1', 48 'fpg_columns' => '3', 49 50 'fpg_excerpt_display' => '0', 51 'fpg_author_display' => '0', 52 'fpg_date_display' => '0', 53 54 'fpg_padding_topbottom' => '15', 55 'fpg_padding_leftright' => '15', 56 'fpg_spacing_horizontal' => '15', 57 58 'fpg_hover_x_offset' => '2', 59 'fpg_hover_y_offset' => '2', 60 61 'fpg_pages_max' => '1', 62 'fpg_width' => '100%', 63 64 'fpg_item_height' => '100', 65 'fpg_item_width' => '100', 66 67 'fpg_page_speed' => '150', 68 69 'fpg_item_dropshadow_enable' => '1', 70 'fpg_text_dropshadow_enable' => '1', 71 'fpg_text_inset_dropshadow_enable' => '1', 72 73 'fpg_item_dropshadow_color' => '000000', 74 'fpg_item_dropshadow_alpha' => '0.5', 75 'fpg_item_dropshadow_x' => '2', 76 'fpg_item_dropshadow_y' => '2', 77 'fpg_item_dropshadow_blur' => '2', 78 'fpg_item_dropshadow_spread' => '2', 79 80 'fpg_item_dropshadow_hover_color' => '000000', 81 'fpg_item_dropshadow_hover_alpha' => '0.5', 82 'fpg_item_dropshadow_hover_x' => '0', 83 'fpg_item_dropshadow_hover_y' => '0', 84 'fpg_item_dropshadow_hover_blur' => '0', 85 'fpg_item_dropshadow_hover_spread' => '0', 86 87 'fpg_text_dropshadow_color' => '000000', 88 'fpg_text_dropshadow_alpha' => '0.5', 89 'fpg_text_dropshadow_x' => '2', 90 'fpg_text_dropshadow_y' => '2', 91 'fpg_text_dropshadow_blur' => '2', 92 'fpg_text_dropshadow_spread' => '2', 93 94 'fpg_text_inset_dropshadow_color' => '000000', 95 'fpg_text_inset_dropshadow_alpha' => '0.5', 96 'fpg_text_inset_dropshadow_x' => '2', 97 'fpg_text_inset_dropshadow_y' => '2', 98 'fpg_text_inset_dropshadow_blur' => '2', 99 'fpg_text_inset_dropshadow_spread' => '2', 100 101 'fpg_item_border_top_style' => 'solid', 102 'fpg_item_border_top_width' => '1', 103 'fpg_item_border_top_color' => '525252', 104 'fpg_item_border_bottom_style' => 'solid', 105 'fpg_item_border_bottom_width' => '1', 106 'fpg_item_border_bottom_color' => '000000', 107 'fpg_item_border_left_style' => 'solid', 108 'fpg_item_border_left_width' => '1', 109 'fpg_item_border_left_color' => '525252', 110 'fpg_item_border_right_style' => 'solid', 111 'fpg_item_border_right_width' => '1', 112 'fpg_item_border_right_color' => '000000', 113 114 'fpg_inner_border_width' => '0', 115 'fpg_inner_border_color' => 'FFFFFF', 116 117 'fpg_item_text_bg_color' => '000000', 118 'fpg_item_text_bg_alpha' => '0.5', 119 120 'fpg_item_text_color' => 'FFFFFF', 121 'fpg_item_text_fontfamily' => 'Arial, Veranda, sans-serif', 122 'fpg_item_text_fontstyle' => 'normal', 123 'fpg_item_text_fontvariant' => 'normal', 124 'fpg_item_text_fontweight' => 'bold', 125 'fpg_item_text_fontsize' => '12px', 126 'fpg_item_text_lineheight' => '12px', 127 128 'fpg_item_excerpt_color' => 'FFFFFF', 129 'fpg_item_excerpt_fontfamily' => 'Arial, Veranda, sans-serif', 130 'fpg_item_excerpt_fontstyle' => 'normal', 131 'fpg_item_excerpt_fontvariant' => 'normal', 132 'fpg_item_excerpt_fontweight' => 'normal', 133 'fpg_item_excerpt_fontsize' => '10px', 134 'fpg_item_excerpt_lineheight' => '10px', 135 136 'fpg_item_author_color' => 'FFFFFF', 137 'fpg_item_author_fontfamily' => 'Arial, Veranda, sans-serif', 138 'fpg_item_author_fontstyle' => 'normal', 139 'fpg_item_author_fontvariant' => 'normal', 140 'fpg_item_author_fontweight' => 'normal', 141 'fpg_item_author_fontsize' => '8px', 142 'fpg_item_author_lineheight' => '8px', 143 144 'fpg_item_date_color' => 'FFFFFF', 145 'fpg_item_date_fontfamily' => 'Arial, Veranda, sans-serif', 146 'fpg_item_date_fontstyle' => 'normal', 147 'fpg_item_date_fontvariant' => 'normal', 148 'fpg_item_date_fontweight' => 'normal', 149 'fpg_item_date_fontsize' => '8px', 150 'fpg_item_date_lineheight' => '8px', 151 152 'fpg_text_border_top_style' => 'solid', 153 'fpg_text_border_top_width' => '0', 154 'fpg_text_border_top_color' => '000000', 155 'fpg_text_border_bottom_style' => 'solid', 156 'fpg_text_border_bottom_width' => '0', 157 'fpg_text_border_bottom_color' => '000000', 158 'fpg_text_border_left_style' => 'solid', 159 'fpg_text_border_left_width' => '0', 160 'fpg_text_border_left_color' => '', 161 'fpg_text_border_right_style' => 'solid', 162 'fpg_text_border_right_width' => '0', 163 'fpg_text_border_right_color' => '000000', 164 165 'fpg_arrow_position' => 'below', 166 'fpg_arrow_image' => 'orange', 167 'fpg_pages_pips_image' => 'orange', 168 'fpg_pages_pips_spacing' => '30', 169 'fpg_arrow_image_custom_url' => '', 170 'fpg_pages_pips_custom_url' => '', 171 172 173 'fpg_images_bg_color' => '000000', 174 'fpg_images_crop' => '1', 175 'fpg_images_height_noscale' => '0', 176 'fpg_images_width_noscale' => '0', 177 'fpg_images_height_fit' => '1', 178 'fpg_images_width_fit' => '1' 179 180 ); 181 182 foreach ($variables as $var=>$default) { 184 foreach ($fpg_variables as $var=>$default) { 183 185 $current_value = get_option($var); 184 186 if ( empty($current_value) ) { … … 187 189 } 188 190 191 ob_start(); 192 193 include(WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js.php'); 194 195 $file_contents = ob_get_contents(); 196 $file_path = WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js'; 197 $ret_val = file_put_contents($file_path, $file_contents); 198 199 ob_end_clean(); 200 201 ob_start(); 202 203 include(WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css.php'); 204 205 $file_contents = ob_get_contents(); 206 $file_path = WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css'; 207 $ret_val = file_put_contents($file_path, $file_contents); 208 209 ob_end_clean(); 189 210 } 190 211 … … 192 213 function fpg_deactivate() 193 214 { 194 // Array of pairs of variable names. 195 $variables = array ( 196 'fpg_rows', 197 'fpg_columns', 198 199 'fpg_excerpt_display', 200 'fpg_author_display', 201 'fpg_date_display', 202 203 'fpg_padding_topbottom', 204 'fpg_padding_leftright', 205 'fpg_spacing_horizontal', 206 207 'fpg_hover_x_offset', 208 'fpg_hover_y_offset', 209 210 'fpg_pages_max', 211 'fpg_width', 212 213 'fpg_page_speed', 214 215 'fpg_item_height', 216 'fpg_item_width', 217 218 'fpg_item_dropshadow_enable', 219 'fpg_text_dropshadow_enable', 220 'fpg_text_inset_dropshadow_enable', 221 222 'fpg_item_dropshadow_color', 223 'fpg_item_dropshadow_alpha', 224 'fpg_item_dropshadow_x', 225 'fpg_item_dropshadow_y', 226 'fpg_item_dropshadow_blur', 227 'fpg_item_dropshadow_spread', 228 229 'fpg_item_dropshadow_hover_color', 230 'fpg_item_dropshadow_hover_alpha', 231 'fpg_item_dropshadow_hover_x', 232 'fpg_item_dropshadow_hover_y', 233 'fpg_item_dropshadow_hover_blur', 234 'fpg_item_dropshadow_hover_spread', 235 236 'fpg_text_dropshadow_color', 237 'fpg_text_dropshadow_alpha', 238 'fpg_text_dropshadow_x', 239 'fpg_text_dropshadow_y', 240 'fpg_text_dropshadow_blur', 241 'fpg_text_dropshadow_spread', 242 243 'fpg_text_inset_dropshadow_color', 244 'fpg_text_inset_dropshadow_alpha', 245 'fpg_text_inset_dropshadow_x', 246 'fpg_text_inset_dropshadow_y', 247 'fpg_text_inset_dropshadow_blur', 248 'fpg_text_inset_dropshadow_spread', 249 250 'fpg_item_border_top_style', 251 'fpg_item_border_top_width', 252 'fpg_item_border_top_color', 253 'fpg_item_border_bottom_style', 254 'fpg_item_border_bottom_width', 255 'fpg_item_border_bottom_color', 256 'fpg_item_border_left_style', 257 'fpg_item_border_left_width', 258 'fpg_item_border_left_color', 259 'fpg_item_border_right_style', 260 'fpg_item_border_right_width', 261 'fpg_item_border_right_color', 262 263 'fpg_inner_border_width', 264 'fpg_inner_border_color', 265 266 'fpg_item_text_bg_color', 267 'fpg_item_text_bg_alpha', 268 269 'fpg_item_text_color', 270 'fpg_item_text_fontfamily', 271 'fpg_item_text_fontstyle', 272 'fpg_item_text_fontvariant', 273 'fpg_item_text_fontweight', 274 'fpg_item_text_fontsize', 275 'fpg_item_text_lineheight', 276 277 'fpg_item_excerpt_color', 278 'fpg_item_excerpt_fontfamily', 279 'fpg_item_excerpt_fontstyle', 280 'fpg_item_excerpt_fontvariant', 281 'fpg_item_excerpt_fontweight', 282 'fpg_item_excerpt_fontsize', 283 'fpg_item_excerpt_lineheight', 284 285 'fpg_item_author_color', 286 'fpg_item_author_fontfamily', 287 'fpg_item_author_fontstyle', 288 'fpg_item_author_fontvariant', 289 'fpg_item_author_fontweight', 290 'fpg_item_author_fontsize', 291 'fpg_item_author_lineheight', 292 293 'fpg_item_date_color', 294 'fpg_item_date_fontfamily', 295 'fpg_item_date_fontstyle', 296 'fpg_item_date_fontvariant', 297 'fpg_item_date_fontweight', 298 'fpg_item_date_fontsize', 299 'fpg_item_date_lineheight', 300 301 'fpg_text_border_top_style', 302 'fpg_text_border_top_width', 303 'fpg_text_border_top_color', 304 'fpg_text_border_bottom_style', 305 'fpg_text_border_bottom_width', 306 'fpg_text_border_bottom_color', 307 'fpg_text_border_left_style', 308 'fpg_text_border_left_width', 309 'fpg_text_border_left_color', 310 'fpg_text_border_right_style', 311 'fpg_text_border_right_width', 312 'fpg_text_border_right_color', 313 314 'fpg_arrow_position', 315 'fpg_arrow_image', 316 'fpg_pages_pips_image', 317 'fpg_pages_pips_spacing', 318 'fpg_arrow_image_custom_url', 319 'fpg_pages_pips_custom_url', 320 321 'fpg_images_bg_color', 322 'fpg_images_crop', 323 'fpg_images_height_noscale', 324 'fpg_images_width_noscale', 325 'fpg_images_height_fit', 326 'fpg_images_width_fit' 327 328 ); 329 330 foreach ($variables as $var) { 215 foreach ($fpg_variables as $var) { 331 216 delete_option($var); 332 217 } 333 334 218 } 335 219 … … 360 244 { 361 245 wp_enqueue_style('fpg-style', WP_PLUGIN_URL.'/featured-posts-grid/css/featured-posts-grid.css'); 362 wp_enqueue_style('fpg-style-dynamic', WP_PLUGIN_URL.'/featured-posts-grid/css/featured-posts-grid-style.css.php'); 246 247 if (file_exists(WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css')) 248 { 249 wp_enqueue_style('fpg-style-dynamic', WP_PLUGIN_URL.'/featured-posts-grid/css/fpg.css'); 250 } 251 else 252 { 253 wp_enqueue_style('fpg-style-dynamic', WP_PLUGIN_URL.'/featured-posts-grid/css/fpg.css.php'); 254 } 363 255 } 364 256 … … 368 260 if (!is_admin()) { 369 261 wp_enqueue_script('jquery'); 370 wp_enqueue_script('featuredpostsgrid-js', WP_PLUGIN_URL.'/featured-posts-grid/js/featuredpostsgrid.js.php'); 262 263 if(file_exists(WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js')) 264 { 265 wp_enqueue_script('fpg-js-dynamic', WP_PLUGIN_URL.'/featured-posts-grid/js/fpg.js'); 266 } 267 else 268 { 269 wp_enqueue_script('fpg-js-dynamic', WP_PLUGIN_URL.'/featured-posts-grid/js/fpg.js.php'); 270 } 371 271 } 372 272 else { … … 431 331 432 332 // Calculate max number of posts to retrieve in query 433 $max_posts = ($fpg_rows * $fpg_columns * $fpg_pages_max); 333 $max_posts = ($fpg_rows * $fpg_columns * $fpg_pages_max); 434 334 435 335 // Generate arguments for query … … 474 374 $output .= '<div class="fpg-arrow-right"></div>'."\n"; 475 375 $output .= '</div>'."\n"; 476 477 } 376 } 377 378 // Save currently selected post if one exists 379 global $post; 380 $temp_post = $post; 478 381 479 382 // Get details for each article retrieved in query … … 496 399 } 497 400 401 // Restore previous post data if there was any. 402 if ($temp_post != NULL) 403 { 404 $post = $temp_post; 405 } 498 406 499 407 $entry_number = 0; -
featured-posts-grid/trunk/readme.txt
r470980 r477436 7 7 Requires at least: 2.9.1 8 8 Tested up to: 3.2 9 Stable tag: 1. 49 Stable tag: 1.5 10 10 11 11 A javascript based display of post titles and thumbnails in a grid layout. … … 19 19 20 20 This plugin will display a grid of posts in any desired location within a template or post. 21 The appearance is highly customizable via the admin options menu (colors, drop shadows, rounded corners,& more).21 The appearance is highly customizable via the admin options menu (colors, drop shadows, & more). 22 22 23 23 If there are any additional features or bug fixes you would like to see in future versions, feel free to contact me. … … 54 54 echo fpg_show($args); 55 55 }?></code> 56 * Modify the '$args' array to filter out only the posts that you would like displayed. Delete any entries in the array you don't want to use (be careful with the commas. See here(http://codex.wordpress.org/Function_Reference/WP_Query#Parameters) for more details on all valid query parameters. Contact me if you have any questions about getting just the posts that you want.56 * Modify the '$args' array to filter out only the posts that you would like displayed. Delete any entries in the array you don't want to use (be careful with the commas. See [here](http://codex.wordpress.org/Function_Reference/WP_Query#Parameters) for more details on all valid query parameters. Contact me if you have any questions about getting just the posts that you want. 57 57 * Recommendation: Create a new 'featured' tag and put it on the posts that you want to displayed and add that category's slug to the array in the code above. 58 58 … … 81 81 <code>add_theme_support( 'post-thumbnails' );</code> 82 82 83 = I have the "Display Excerpts" option selected, but I'm not seeing anything = 84 The plugin will currently only display manually entered excerpts. Automatically generated excerpts will not be displayed. 85 86 = When I save my settings, I get an error that says statics JS and/or CSS files can't be saved. What can I do to fix this? = 87 If you get this error, it means that the permissions on your server aren't setup to let Wordpress write directly to a file. To resolve this you'll need to temporarily change the permissions on this plugin's css and js directories, click "Save Settings" on the admin page, and then change the permissions back. 88 89 You can change the permissions on your server either by using SSH or a config menu on your hosting service's site (if they allow you to directly change permissions). With SSH access, navigate into the featured-posts-grid directory and enter "chmod 777 css js", click "Save Settings" on the admin page, and then change permissions back with "chmod 755 css js". 83 90 84 91 == Screenshots == … … 87 94 88 95 == Changelog == 96 97 = 1.5 = 98 * Refactored activate/deactivate functions. 99 * Reorganized/renamed some CSS and JS files. Removed files that are no longer used. 100 * Corrected issue where plugin could interfere with post/page templates causing the wrong post data to be displayed. 101 * Added auto-scroll options. 102 * Added roll-over option (user can scroll past last page back to first and vice-versa) 103 * Performance update. CSS and JS that were generated from PHP on every page view are now saved to static files every time an admin option is changed. 89 104 90 105 = 1.4 = … … 108 123 == Upgrade Notice == 109 124 110 = 1.4 = 111 * Refactored JavaScript to prevent causing issues with plugins that assume "$" references jQuery. 125 = 1.5 = 126 * Refactored activate/deactivate functions. 127 * Reorganized/renamed some CSS and JS files. Removed files that are no longer used. 128 * Corrected issue where plugin could interfere with post/page templates causing the wrong post data to be displayed. 129 * Added auto-scroll options. 130 * Added roll-over option (user can scroll past last page back to first and vice-versa) 131 * Performance update. CSS and JS that were generated from PHP on every page view are now saved to static files every time an admin option is changed. 132 133
Note: See TracChangeset
for help on using the changeset viewer.