Plugin Directory

Changeset 1921048


Ignore:
Timestamp:
08/07/2018 02:25:29 PM (7 years ago)
Author:
jdalmeida
Message:

v1.40

Location:
the-future-posts
Files:
53 added
4 edited

Legend:

Unmodified
Added
Removed
  • the-future-posts/trunk/changelog.txt

    r1920701 r1921048  
    1212
    1313== 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.
    1417
    1518= 1.37 - 2018-08-07 =
  • the-future-posts/trunk/includes/main.php

    r1920701 r1921048  
    4040    ), $params));   
    4141
    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 ---
    4650
    4751  $date_today = date('Y-m-d');
     
    9397  // --- wrapper start ---
    9498
    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";
    98102
    99103  // --- overlay + overlay icon ---
    100104
    101   echo "<script type='text/javascript'>\n";
     105  $tfp_content .= "<script type='text/javascript'>\n";
    102106
    103107    list($overlay_active,$overlay_color) = explode(";",$overlay);
    104108    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";
    106110    }
    107111
    108112    list($overlay_icon_active,$overlay_icon_color) = explode(";",$overlay_icon);
    109113    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";
    111115    }
    112116
    113   echo "</script>\n";
    114   echo "\n";
     117  $tfp_content .= "</script>\n";
     118  $tfp_content .= "\n";
    115119
    116120  // --- main container ---
    117121
    118   echo "<div class='".$theme_default." ".$theme_custom."'>\n\n";
     122  $tfp_content .= "<div class='".$theme_default." ".$theme_custom."'>\n\n";
    119123
    120124  // --- found posts? ---
    121125
    122126  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";
    125129    wp_reset_postdata();
    126130    return;
     
    129133  // --- row start with gridlex ---
    130134
    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";
    132136
    133137  while ($the_query -> have_posts() ) {
     
    136140    // --- column start ---
    137141
    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";
    140144
    141145    // ---
     
    182186        }
    183187
    184         echo $div_content;
     188        $tfp_content .= $div_content;
    185189        continue;
    186190      }
     
    195199        }
    196200
    197         echo $div_content;
     201        $tfp_content .= $div_content;
    198202        continue;
    199203      }
     
    322326      // ---
    323327
    324       echo $div_content;
     328      $tfp_content .= $div_content;
    325329    }
    326330
    327331    // --- column end ---
    328332
    329     echo "      </div>\n";
    330     echo "    </div>\n\n";
     333    $tfp_content .= "      </div>\n";
     334    $tfp_content .= "    </div>\n\n";
    331335
    332336  }
     
    334338  // --- row end ---
    335339
    336   echo "  </div>\n\n";
     340  $tfp_content .= "  </div>\n\n";
    337341
    338342  // --- wrapper end ---
    339343
    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";
    345349   
    346350  // --- reset post data ---
    347351
    348352  wp_reset_postdata();
     353
     354  // --- return plugin output contents ---
     355
     356  return $tfp_content;
    349357}
    350358
  • the-future-posts/trunk/readme.txt

    r1920702 r1921048  
    153153= Versions =
    154154
     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
    155158= 1.37 - 2018-08-07 =
    156159* 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  
    1212 * Tested up to: 4.9.8
    1313 * Requires PHP: 5.4.45
    14  * Version: 1.37
     14 * Version: 1.40
    1515 * License: GPL3
    1616 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
Note: See TracChangeset for help on using the changeset viewer.