Skip to content

Commit

Permalink
Update to 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fpcorso committed Dec 2, 2014
2 parents 72e92c9 + 2e0a845 commit 09a4c7c
Show file tree
Hide file tree
Showing 11 changed files with 569 additions and 389 deletions.
70 changes: 70 additions & 0 deletions includes/mlw_adverts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php

function mlw_qmn_show_adverts()
{
$mlw_advert = "";
$mlw_advert_text = "";
if ( get_option('mlw_advert_shows') == 'true' )
{
$mlw_random_int = rand(0, 8);
switch ($mlw_random_int) {
case 0:
$mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for details!";
break;
case 1:
$mlw_advert_text = "Is Quiz Master Next beneficial to your website? Please help by giving us a review on WordPress.org by going <a href=\"http://wordpress.org/support/view/plugin-reviews/quiz-master-next\">here</a>!";
break;
case 2:
$mlw_advert_text = "Want help installing and configuring one of our plugins? Check out our Plugin Installation services. Visit our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for details!";
break;
case 3:
$mlw_advert_text = "Would you like to support this plugin but do not need or want premium support? Please consider our inexpensive 'Advertisements Be Gone' add-on which will get rid of these ads. Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
break;
case 4:
$mlw_advert_text = "Need to be able to export the results of your quizzes? Be sure to check out our new Export Results add-on in our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a>!";
break;
case 5:
$mlw_advert_text = "Need help keeping your plugins, themes, and WordPress up to date? Want around the clock security monitoring and off-site back-ups? How about WordPress training videos, a monthly status report, and support/consultation? Check out our <a href=\"http://mylocalwebstop.com/wordpress-maintenance-services/\">WordPress Maintenance Services</a> for more details!";
break;
case 6:
$mlw_advert_text = "Setting up a new site? Let us take care of the set-up so you back to running your business. Check out our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for more details!";
break;
case 7:
$mlw_advert_text = "Need a page so your users can see their results from all the quizzes they have taken? Try our new User Dashboard add-on. Check out our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for more details!";
break;
case 8:
$mlw_advert_text = "Our new Popular Add-On Pack is now only $45 for 6 add-ons! Now is the time to save almost 50%! Visit our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for details.";
break;
default:
$mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
}
$mlw_advert .= "
<style>
div.help_decide
{
display: block;
text-align:center;
letter-spacing: 1px;
margin: auto;
text-shadow: 0 1px 1px #000000;
background: #0d97d8;
border: 5px solid #106daa;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
-khtml-border-radius: 20px;
border-radius: 20px;
color: #FFFFFF;
}
div.help_decide a
{
color: yellow;
}
</style>";
$mlw_advert .= "
<div class=\"help_decide\">
<p>$mlw_advert_text</p>
</div>";
}
return $mlw_advert;
}
?>
26 changes: 13 additions & 13 deletions includes/mlw_qmn_credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,32 +89,33 @@ function mlw_qmn_setTab(tab) {
<div class="mlw_qmn_icon_wrap">Version <?php echo $mlw_quiz_version; ?></div>
<h2 class="nav-tab-wrapper">
<a href="javascript:mlw_qmn_setTab(1);" id="mlw_qmn_tab_1" class="nav-tab nav-tab-active">
What&#8217;s New In 3.5</a>
What&#8217;s New In 3.6</a>
<a href="javascript:mlw_qmn_setTab(2);" id="mlw_qmn_tab_2" class="nav-tab">
Changelog For <?php echo $mlw_quiz_version; ?> </a>
<a href="javascript:mlw_qmn_setTab(3);" id="mlw_qmn_tab_3" class="nav-tab">
Requested Features</a>
</h2>
<div id="mlw_quiz_what_new">
<h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Require Users To Be Logged In</h2>
<p style="text-align: center;">You can now require users to be logged in to access your quiz. Set this up from the options tab. You can customize the text it shows to non-logged in users on the Text tab.</p>
<h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Separate Social Network Text Templates</h2>
<p style="text-align: center;">You can now customize the sharing text for each social network instead of having one for all of them.</p>
<br />
<h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Limit Total Entries</h2>
<p style="text-align: center;">You can now limit the amount of total entries to your quiz. For example, you could say only 10 people can complete the survey. Edit this setting from the options tab. You can customize the text it shows once it reaches the limit on the text tab.</p>
<br />
<h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">LaTeX/Tex Support For Mathematics</h2>
<p style="text-align: center;">You can now use LaTex/Tex to show mathematic symbols and formulas such as square root, fractions, exponents, and more. You can place your math in any question, answer, or text on the quiz! For help with LaTeX, <a href="http://www.andy-roberts.net/writing/latex/mathematics_1">check out this tutorial</a>.</p>
<h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">New Developer Filters</h2>
<p style="text-align: center;">For the developers that like to extend this plugin's functionality, there are now two new filters for creating your own template variables.</p>
<br />
<h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">We Are On GitHub Now</h2>
<p style="text-align: center;">We have had several users ask for this so we thought we would try it out. We now love github! Be sure to <a href="https://github.com/fpcorso/quiz_master_next/">make suggestions or contribute</a>.</p>
<br />
<h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Our Premium Add-Ons!</h2>
<p style="text-align: center;">We have several new premium add-ons in our WordPress Store: MailPoet Integration (subscribes users to your MailPoet list), MailChimp Integration (subscribes users to your Mailchimp list), Export Results (exports your quiz results), Extra Shortcodes (gives you extra shortcodes to use), User Dashboard (allow users to see the results from all the quizzes they have taken), and Advertisement Be Gone (gets rid of blue-border ads). Visit our <a href="http://mylocalwebstop.com/shop/">WordPress Store</a> for details! </p>
<h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Popular Add-on Pack</h2>
<p style="text-align: center;">Our Popular Add-On Pack is now only $45 for 6 add-ons! Now is the time to save almost 50%! Visit our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for details.</p>
</div>
<div id="mlw_quiz_changelog" style="display: none;">
<h3><?php echo $mlw_quiz_version; ?> (November 26, 2014)</h3>
<h3><?php echo $mlw_quiz_version; ?> (December 2, 2014)</h3>
<ul>
<li>* Bug Fix For Some Bugs Resulting In Error Code 0008</li>
<li>* Add Separate Social Network Text Templates</li>
<li>* Added Hours Field To Timer And Completion Time</li>
<li>* Converted Quizzes Page To Use wpdb->update And wpdb->insert Instead Of query</li>
<li>* Created New Filter For Creating New Variables For Quiz Page</li>
<li>* Created New Filter For Creating New Variables For Results Page</li>
</ul>
</div>
<div id="mlw_quiz_requested" style="display: none;">
Expand All @@ -137,7 +138,6 @@ function mlw_qmn_setTab(tab) {
<li>Graphical Click Aware Questions</li>
<li>Results Bar Graph For Users Taking Polls</li>
<li>Head To Head Comparison Questions</li>
<li>Different Social Media Sharing Text For Different Social Media</li>
<li>Ability To Highlight Incorrect Answers</li>
<li>Set Default Question Type</li>
<li>Show Pop-Up When Clicking Submit</li>
Expand Down
Loading

0 comments on commit 09a4c7c

Please sign in to comment.