Changeset 1921048
- Timestamp:
- 08/07/2018 02:25:29 PM (7 years ago)
- Location:
- the-future-posts
- Files:
-
- 53 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
the-future-posts/trunk/changelog.txt
r1920701 r1921048 12 12 13 13 == Changelog == 14 15 = 1.40 - 2018-08-07 = 16 * Fixed the plugin output contents in Beaver Builder. The output code was been placed outside the defined module zone. 14 17 15 18 = 1.37 - 2018-08-07 = -
the-future-posts/trunk/includes/main.php
r1920701 r1921048 40 40 ), $params)); 41 41 42 // validate params 43 // --------------- 44 45 // date and time, query before and after 42 43 // --- plugin output contents --- 44 $tfp_content = ""; 45 46 // --- validate params --- 47 // not implemented 48 49 // --- date and time, query before and after --- 46 50 47 51 $date_today = date('Y-m-d'); … … 93 97 // --- wrapper start --- 94 98 95 echo"\n";96 echo"<!-- === the future posts: start === theme default: ".$theme_default." === theme custom: ".$theme_custom." === -->\n";97 echo"\n";99 $tfp_content .= "\n"; 100 $tfp_content .= "<!-- === the future posts: start === theme default: ".$theme_default." === theme custom: ".$theme_custom." === -->\n"; 101 $tfp_content .= "\n"; 98 102 99 103 // --- overlay + overlay icon --- 100 104 101 echo"<script type='text/javascript'>\n";105 $tfp_content .= "<script type='text/javascript'>\n"; 102 106 103 107 list($overlay_active,$overlay_color) = explode(";",$overlay); 104 108 if ($overlay_active == "true" && $overlay_color != "") { 105 echo" the_future_posts_overlay('".$overlay_color."');\n";109 $tfp_content .= " the_future_posts_overlay('".$overlay_color."');\n"; 106 110 } 107 111 108 112 list($overlay_icon_active,$overlay_icon_color) = explode(";",$overlay_icon); 109 113 if ($overlay_icon_active == "true" && $overlay_icon_color != "") { 110 echo" the_future_posts_overlay_icon('".$overlay_icon_color."');\n";114 $tfp_content .= " the_future_posts_overlay_icon('".$overlay_icon_color."');\n"; 111 115 } 112 116 113 echo"</script>\n";114 echo"\n";117 $tfp_content .= "</script>\n"; 118 $tfp_content .= "\n"; 115 119 116 120 // --- main container --- 117 121 118 echo"<div class='".$theme_default." ".$theme_custom."'>\n\n";122 $tfp_content .= "<div class='".$theme_default." ".$theme_custom."'>\n\n"; 119 123 120 124 // --- found posts? --- 121 125 122 126 if (! $the_query -> have_posts() ) { 123 echo"<div class='".$theme_default."_no_posts ".$theme_custom."_no_posts'>".$no_posts."</div>\n";124 echo"</div>\n";127 $tfp_content .= "<div class='".$theme_default."_no_posts ".$theme_custom."_no_posts'>".$no_posts."</div>\n"; 128 $tfp_content .= "</div>\n"; 125 129 wp_reset_postdata(); 126 130 return; … … 129 133 // --- row start with gridlex --- 130 134 131 echo" <div class='".the_future_posts_row_div($posts_per_column)."'>\n\n";135 $tfp_content .= " <div class='".the_future_posts_row_div($posts_per_column)."'>\n\n"; 132 136 133 137 while ($the_query -> have_posts() ) { … … 136 140 // --- column start --- 137 141 138 echo" <div class='gl-col ".$theme_custom."_gl-col'>\n";139 echo" <div class='".$theme_default."_main ".$theme_custom."_main'>\n";142 $tfp_content .= " <div class='gl-col ".$theme_custom."_gl-col'>\n"; 143 $tfp_content .= " <div class='".$theme_default."_main ".$theme_custom."_main'>\n"; 140 144 141 145 // --- … … 182 186 } 183 187 184 echo$div_content;188 $tfp_content .= $div_content; 185 189 continue; 186 190 } … … 195 199 } 196 200 197 echo$div_content;201 $tfp_content .= $div_content; 198 202 continue; 199 203 } … … 322 326 // --- 323 327 324 echo$div_content;328 $tfp_content .= $div_content; 325 329 } 326 330 327 331 // --- column end --- 328 332 329 echo" </div>\n";330 echo" </div>\n\n";333 $tfp_content .= " </div>\n"; 334 $tfp_content .= " </div>\n\n"; 331 335 332 336 } … … 334 338 // --- row end --- 335 339 336 echo" </div>\n\n";340 $tfp_content .= " </div>\n\n"; 337 341 338 342 // --- wrapper end --- 339 343 340 echo"</div>\n";341 342 echo"\n";343 echo"<!-- === future posts: end === -->\n";344 echo"\n";344 $tfp_content .= "</div>\n"; 345 346 $tfp_content .= "\n"; 347 $tfp_content .= "<!-- === future posts: end === -->\n"; 348 $tfp_content .= "\n"; 345 349 346 350 // --- reset post data --- 347 351 348 352 wp_reset_postdata(); 353 354 // --- return plugin output contents --- 355 356 return $tfp_content; 349 357 } 350 358 -
the-future-posts/trunk/readme.txt
r1920702 r1921048 153 153 = Versions = 154 154 155 = 1.40 - 2018-08-07 = 156 * Fixed the plugin output contents in Beaver Builder. The output code was been placed outside the defined module zone. 157 155 158 = 1.37 - 2018-08-07 = 156 159 * The sintax error on main.php line 390 seems to be a PHP problem afterall. Not a code bug. I successfully tested it with PHP v5.4.45, v5.5.38, v5.6.20, v7.0.3, v7.1.4 and v7.2.0. I unsuccessfully tested it with v5.2.4, v5.2.17 and v5.3.29. Furthermore, a customer reported the problem with PHP v5.6.30. Solution: update PHP to a more recent version like v7.0.3 and hopefully the problem should disapear. -
the-future-posts/trunk/the-future-posts.php
r1920701 r1921048 12 12 * Tested up to: 4.9.8 13 13 * Requires PHP: 5.4.45 14 * Version: 1. 3714 * Version: 1.40 15 15 * License: GPL3 16 16 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
Note: See TracChangeset
for help on using the changeset viewer.