-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
569 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.