function mm_plugin_search_notice()
{
    if (isset($_GET['s']) && ($plugin = mm_check_plugin_search_value($_GET['s']))) {
        $link = mm_build_link($plugin['url'], array('utm_medium' => 'plugin_admin', 'utm_content' => 'plugin_search'));
        $plugin_html = '
		<div style="display: inline-block;background-color: #D54E21;margin-left: -20px;padding-right: 20px;width: 100%;">
			<p style="font-size: 1.2rem;color: #fff;padding-left: 20px;">
				Did you know MOJO Marketplace has <a style="color:#fff;" href="' . $link . '">Pro Services</a> for ' . $plugin['name'] . '? <a style="color: #fff; font-size: .8rem; margin: 15px;" href="' . $link . '">Click here for more</a>
			</p>
		</div>';
        $plugin_html = mm_minify($plugin_html);
        echo "\n\t\t<script type='text/javascript'>\n\t\t\tjQuery( document ).ready( function( jQuery ) {\n\t\t\t\tjQuery( '#wpbody' ).before( '" . $plugin_html . "' );\n\t\t\t} );\n\t\t</script>";
    }
}
Exemple #2
0
function mm_cs_content()
{
    if (stripos(@exec('hostname'), 'bluehost')) {
        $powered_by = "<div class='powered-by'>Powered by <a href='http://bluehost.com'>Bluehost</a></div>";
    } else {
        $powered_by = "";
    }
    echo mm_minify("\n<!DOCTYPE html>\n<html>\n<head>\n<title>" . get_option('blogname') . " &mdash; Coming Soon</title>\n<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>\n" . mm_cs_meta() . "\n<style type='text/css'>\nbody{\n\tbackground-color: #2D2A25;\n\tbackground-image: url( https://mojomarketplace.com/img/mojo-landing-bg.jpg );\n\tbackground-position: top right;\n\tbackground-repeat: no-repeat;\n\tfont-family: 'Montserrat', sans-serif;\n\tcolor: #fff;\n}\na{\n\tcolor: #fff;\n\ttext-decoration: none;\n}\n#wrap{\n\tmax-width: 900px;\n\tmargin: 0 auto;\n}\n#logo{height: auto;width: 204px;padding: 30px 10px 10px 10px;max-width: 90%;}\n.cta{\n\tbackground-color: #93C933;\n\tcolor: #35393A;\n\tpadding: 10px 20px;\n\ttext-decoration: none;\n\tmargin: 10px 0;\n\tdisplay: inline-block;\n\tborder-radius: 3px;\n}\n.cta:hover{color: #fff;}\n.content{\n\tmargin: 5rem 0;\n\tfont-size: 1.2rem;\n\tpadding: 0 15px;\n}\n.powered-by {\n\ttext-align: right;\n\tpadding: 50px;\n\tfont-size: 12px;\n}\nh1 span{\n\tcolor: #93C933;\n}\nfooter{\n\tborder-top: 1px solid #333;\n}\nfooter a:hover{color: #ccc;}\nfooter .col{\n\tpadding: 10px 4%;\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tmax-width: 100%;\n}\nfooter h2, footer h2 a{\n\tcolor: #93C933;\n\tfont-size: 1rem;\n\ttext-decoration: none;\n}\nfooter ul{\n\tlist-style: none;\n\tpadding:0;\n}\nfooter li{\n\theight: 26px;\n}\n#what-is-this-content{\n\tdisplay:none;\n\tposition: fixed;\n\ttop: 50%;\n\tleft: 50%;\n\tmargin-top: -200px;\n\tmargin-left: -200px;\n\twidth: 300px;\n\theight: 200px;\n\tbackground-color: #fff;\n\tcolor: #aaa;\n\tpadding: 50px;\n}\n.btn{display: inline-block;margin-top:50px;text-align:center;padding: 10px 50px; border-radius: 3px;}\n.green{\n\tcolor: #343537;\n\tbackground: #92c835; /* Old browsers */\n\tbackground: -moz-linear-gradient(top,  #92c835 0%, #6d9628 100%); /* FF3.6+ */\n\tbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#92c835), color-stop(100%,#6d9628)); /* Chrome,Safari4+ */\n\tbackground: -webkit-linear-gradient(top,  #92c835 0%,#6d9628 100%); /* Chrome10+,Safari5.1+ */\n\tbackground: -o-linear-gradient(top,  #92c835 0%,#6d9628 100%); /* Opera 11.10+ */\n\tbackground: -ms-linear-gradient(top,  #92c835 0%,#6d9628 100%); /* IE10+ */\n\tbackground: linear-gradient(to bottom,  #92c835 0%,#6d9628 100%);\n\tfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#92c835', endColorstr='#6d9628',GradientType=0 ); /* IE6-9 */\t\n}\n#what-is-this-content a{width: 50%;display:inline-block;color: #666;text-align:center;}\n.footer-actions a{width: 50%; text-align:center; display:inline-block;}\n.split-content > div:first-of-type{\n\tpadding-right: 10%;\n}\n.split-content > div{\n\twidth: 40%;\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tpadding: 50px 80px 0 0;\n\tfont-family: Arial;\n\tfont-weight: lighter;\n\tline-height: 1.8rem;\n}\n#wrap .highlight{color:#90C534;}\n@media (max-width: 859px) {\n\t.split-content > div{\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\tpadding: 5% 20%;\n\t}\n\t.btn{\n\t\twidth: 122px;\n\t\tdisplay:block;\n\t\tmargin: 50px auto;\n\t}\n\tfooter .col {\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\tpadding: 5%;\n\t\ttext-align:center;\n\t}\n}\n</style>\n</head>\n<body>\n<div id='wrap'>\n\t<div class='content'>\n\t\t<h1>Website Coming Soon</h1>\n\t\t<p>This page is used to test the proper operation of your recent <a class='highlight' href='https://www.mojomarketplace.com/explore?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=description_link'>MOJO Marketplace</a> installation of WordPress! If you can read this page it means your installation was successful!</p>\n\t\t<a class='btn green' href='" . site_url('wp-login.php') . "'>Admin Login</a>\n\t\t<div class='split-content'>\n\t\t\t<div>\n\t\t\t\t<h3>Just visiting?</h3>\n\t\t\t\t<p>\n\t\t\t\t\tThe owner of this website is working on making this site awesome. Why not <a class='highlight' href='#' onclick='bookmark();'>bookmark it</a> and come back again later. We are sure you will not be disappointed.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<h3>Are you the Site Owner?</h3>\n\t\t\t\t<p>\n\t\t\t\t\tYou should <a class='highlight' href='" . site_url('wp-login.php') . "'>login</a> to your WordPress installation and prepare your site for launch.\n\t\t\t\t</p>\n\t\t\t\t<p>\n\t\t\t\t\tTo launch your site just click the link in the banner at the top of the screen.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<footer>\n\t\t<div class='col'>\n\t\t\t<h2><a href='https://www.mojomarketplace.com/themes/wordpress?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=wordpress_themes'>WordPress Themes</a></h2>\n\t\t\t<ul>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/themes/wordpress/blog?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=woocommerce_themes'>WooCommerce Themes</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/themes/wordpress/business?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=responsive_themes'>Responsive WordPress Themes</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/themes/wordpress/photography?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=business_themes'>Business WordPress Themes</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/themes/wordpress/restaurant?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=blog_themes'>Blog WordPress Themes</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class='col'>\n\t\t\t<h2><a href='https://www.mojomarketplace.com/services/all/wordpress?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=wordpress_services'>WordPress Services</a></h2>\n\t\t\t<ul>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/item/install-your-wordpress-theme?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=install_theme_service'>Install WordPress Theme</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/item/make-my-wordpress-site-look-like-the-theme-demo?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=theme_demo_service'>Make My Site Look Like the Demo</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/item/backup-your-wordpress-website?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=website_backup_service'>Backup Your WordPress Website</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/item/wordpress-theme-training?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=wp_theme_training_service'>WordPress Theme Training</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class='col'>\n\t\t\t<h2><a href='https://www.mojomarketplace.com/?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=about_mojo'>About MOJO</a></h2>\n\t\t\t<ul>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/explore?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=explore_mojo'>Explore MOJO</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/sellers?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=sell_w_mojo'>Sell with MOJO</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/affiliates?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=mojo_affiliates'>MOJO Affiliates</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/how-it-works/faq?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=faqs'>FAQs</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class='footer-actions'>\n\t\t\t<a href='" . site_url('wp-login.php') . "'>Login</a>\n\t\t\t<a href='#' id='what-is-this' onClick='what_is_this_show()'>What is this?</a>\n\t\t</div>\n\t</footer>\n\t" . $powered_by . "\n</div>\n<div id='what-is-this-content'>\n\t<p>This is the default coming soon page for this site because it was installed via MOJO Marketplace.</p>\n\t<p>If you are the site owner and are finished building the site you can click the link in the banner of the administration panel to disable it.</p>\n\t<div>\n\t\t<a href='#' onClick='what_is_this_hide()'>close</a>\n\t\t<a href='" . site_url('wp-login.php') . "'>login</a>\n\t</div>\n</div>\n<script type='text/javascript'>\nfunction what_is_this_show() {\n\tdocument.getElementById('what-is-this-content').style.display = 'block';\n}\nfunction what_is_this_hide() {\n\tdocument.getElementById('what-is-this-content').style.display = 'none';\n}\nfunction bookmark() {\n\tvar title = '" . get_bloginfo('name', 'display') . "';\n\tvar url = '" . site_url() . "';\n\tif ( window.sidebar && window.sidebar.addPanel ) {\n\t\twindow.sidebar.addPanel( title, href, '' );\n\t} else if( window.external && ( 'AddFavorite' in window.external ) ) {\n\t\twindow.external.AddFavorite( href,title );\n\t} else if( window.opera && window.print ) {\n\t\tthis.title=title;\n\t\treturn true;\n\t} else {\n\t\talert( 'Press ' + (navigator.userAgent.toLowerCase().indexOf( 'mac' ) != - 1 ? 'Command/Cmd' : 'CTRL' ) + ' + D to bookmark this page.' );\n\t}\n}\n</script>\n</body>\n</html>");
}
function mm_cs_content()
{
    echo mm_minify("\n<!DOCTYPE html>\n<html>\n<head>\n<title>" . get_option('blogname') . " &mdash; Coming Soon</title>\n<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>\n" . mm_cs_meta() . "\n<style type='text/css'>\nbody{\n\tbackground-color: #2D2A25;\n\tbackground-image: url( https://mojomarketplace.com/img/mojo-landing-bg.jpg );\n\tbackground-position: top right;\n\tbackground-repeat: no-repeat;\n\tfont-family: 'Montserrat', sans-serif;\n\tcolor: #fff;\n}\na{\n\tcolor: #fff;\n\ttext-decoration: none;\n}\n#wrap{\n\tmax-width: 900px;\n\tmargin: 0 auto;\n}\n#logo{height: auto;width: 204px;padding: 30px 10px 10px 10px;max-width: 90%;}\n.cta{\n\tbackground-color: #93C933;\n\tcolor: #35393A;\n\tpadding: 10px 20px;\n\ttext-decoration: none;\n\tmargin: 10px 0;\n\tdisplay: inline-block;\n\tborder-radius: 3px;\n}\n.cta:hover{color: #fff;}\n.content{\n\tmargin: 5rem 0;\n\tfont-size: 1.2rem;\n\tpadding: 0 15px;\n}\n.ghost{ \n\tborder: 1px solid #fff;\n\tfont-size: 22px;\n\tmargin: 90px auto;\n\tmax-width: 260px;\n\tpadding: 20px 30px;\n\ttext-align: center;\n}\nh1 span{\n\tcolor: #93C933;\n}\nfooter{\n\tborder-top: 1px solid #333;\n}\nfooter a:hover{color: #ccc;}\nfooter .col{\n\tpadding: 10px 4%;\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tmax-width: 100%;\n}\nfooter h2, footer h2 a{\n\tcolor: #93C933;\n\tfont-size: 1rem;\n\ttext-decoration: none;\n}\nfooter ul{\n\tlist-style: none;\n\tpadding:0;\n}\nfooter li{\n\theight: 26px;\n}\n</style>\n</head>\n<body>\n<div id='wrap'>\n\t<a target='_blank' href='https://mojomarketplace.com?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=logo'><img src='https://www.mojomarketplace.com/img/mojo-retina-logo.png' id='logo' /></a>\n\t<div class='content'>\n\t\t<h1>I just installed WordPress <span>free</span> at</h1>\n\t\t<p>MOJO Marketplace &mdash; a leader in <strong>Themes</strong>, <strong>Plugins</strong>, and <strong>Professional Services</strong>&hellip;</p>\n\t\t<div class='ghost'>" . get_option('blogname') . " coming soon&hellip;</div>\n\t</div>\n\t<footer>\n\t\t<div class='col'>\n\t\t\t<h2><a href='https://www.mojomarketplace.com/themes/wordpress?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=wordpress_themes'>WordPress Themes</a></h2>\n\t\t\t<ul>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/themes/wordpress/blog?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=woocommerce_themes'>WooCommerce Themes</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/themes/wordpress/business?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=responsive_themes'>Responsive WordPress Themes</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/themes/wordpress/photography?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=business_themes'>Business WordPress Themes</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/themes/wordpress/restaurant?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=blog_themes'>Blog WordPress Themes</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class='col'>\n\t\t\t<h2><a href='https://www.mojomarketplace.com/services/all/wordpress?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=wordpress_services'>WordPress Services</a></h2>\n\t\t\t<ul>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/item/install-your-wordpress-theme?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=install_theme_service'>Install WordPress Theme</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/item/make-my-wordpress-site-look-like-the-theme-demo?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=theme_demo_service'>Make My Site Look Like the Demo</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/item/backup-your-wordpress-website?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=website_backup_service'>Backup Your WordPress Website</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/item/wordpress-theme-training?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=wp_theme_training_service'>WordPress Theme Training</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class='col'>\n\t\t\t<h2><a href='https://www.mojomarketplace.com/?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=about_mojo'>About MOJO</a></h2>\n\t\t\t<ul>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/explore?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=explore_mojo'>Explore MOJO</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/sellers?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=sell_w_mojo'>Sell with MOJO</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/affiliates?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=mojo_affiliates'>MOJO Affiliates</a></li>\n\t\t\t\t<li><a target='_blank' href='https://www.mojomarketplace.com/how-it-works/faq?utm_source=mojo_wp_plugin&utm_campaign=mojo_wp_plugin&utm_medium=plugin_landing&utm_content=faqs'>FAQs</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t</footer>\n</div>\n\n</body>\n</html>");
}
Exemple #4
0
function mm_plugin_search_offer()
{
    if (isset($_GET['s']) && ($plugin = mm_check_plugin_search_value($_GET['s']))) {
        $mm_test = get_transient('mm_test', array('name' => 'none'));
        $link = mm_build_link($plugin['url'], array('utm_medium' => 'plugin_admin', 'utm_content' => 'plugin_search'));
        switch ($mm_test['name']) {
            case 'plugin-search-banner':
                $plugin_html = '
				<div style="display: inline-block;background-color: #D54E21;margin-left: -20px;padding-right: 20px;width: 100%;">
					<p style="font-size: 1.2rem;color: #fff;padding-left: 20px;">
						Did you know MOJO Marketplace has <a style="color:#fff;" href="' . $link . '">Pro Services</a> for ' . $plugin['name'] . '? <a style="color: #fff; font-size: .8rem; margin: 15px;" href="' . $link . '">Click here for more</a>
					</p>
				</div>';
                $plugin_html = mm_minify($plugin_html);
                echo "\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\tjQuery( document ).ready( function( jQuery ) {\n\t\t\t\t\t\tjQuery( '#wpbody' ).before( '" . $plugin_html . "' );\n\t\t\t\t\t} );\n\t\t\t\t</script>";
                break;
            case 'plugin-search-result':
                //this should be fast as a transient
                $api_args = array('mojo-platform' => 'wordpress', 'mojo-type' => '', 'mojo-items' => 'popular-services');
                $result = mm_api($api_args, array('count' => '30'));
                if (!is_wp_error($result)) {
                    //this makes me wanna cry
                    $descriptions = array('530782e3-1388-4e6a-a8ac-6f7b0a140b28' => 'WooCommerce will transform your WordPress site into a full eCommerce store that is simple to use. WooCommerce comes ready for all the features you need to operate such as a shipping calculator, easy checkout, rating system, reporting, tax options, and much more. There is a reason WooCommerce is the leading eCommerce WordPress plugin today!', '530697a6-92cc-4329-9cdd-21e40a140b28' => 'Google Analytics is a powerful tool that is free to use when you have a Google account. For many people, integrating Google Analytics can be a challenge and that is why we are offering help from our professional service team. You can follow users on your site in real time and get in depth analysis as to their behaviors when browsing your website.', '530788ba-c450-45eb-b154-47ce0a141528' => 'Google loves to see a list of every page on your site and how those pages relate to each other. Not only does it help Google find each page it also shows them understand what is and is not important and that‘s how they determine which pages show up in the Google search results. As an added bonus, it helps your users find what they‘re looking for within your site. ', '53d7ea4d-e52c-42fe-9b7e-5ed50a141528' => 'As a platform, WordPress offers some sound SEO components to rank high in the search engines like Google. With the WordPress SEO plugin by Yoast, you‘re guided within each post and page your publish inside your WordPress site. The plugin ensures your content is fully optimized for the search engines.', '53078511-1974-470c-8ed5-43500a141528' => 'BuddyPress is a WordPress plugin that takes your WordPress site and adds a full-blown social network. By using BuddyPress, you instantly get access to user profiles, activity streams, user groups and much more functionality. You can use your existing WordPress site and add BuddyPress on top of it for your personal social network.', '530783b3-d4d8-4823-ad1e-70310a140b28' => 'bbPress is a WordPress plugin that makes it easy to add a forum to your website. From within your WordPress admin, you can easily setup and moderate forums, topics and replies. All bbPress features integrate nicely with your current users and pages.', '53078468-fc10-45de-b813-70b70a140b28' => 'Adding a WordPress contact form to your website will make it easy for you to have your users contact you directly without you having to give away your email address. Contact forms also make it easy for you to view your contacts and leads directly from the your WordPress dashboard.', '530786ea-27b8-4f1b-bc94-46650a141528' => 'Does your business have a physical location? Then you probably want your customers to locate you, and Google Maps can make that happen. Let us add Google Maps to your WordPress website for you. We can add up to 10 different locations with include custom navigation. After we install Google Maps you‘ll be able to make sure that everyone knows just how to find your business.', '53b4501f-180c-4bd3-9b3f-56cb0a141528' => 'On average 30,000 websites are hacked every day! Unfortunately, WordPress can be an easy target. Let us help you drastically increase your site‘s security. ', '53d7e760-5140-4761-ac5b-5bd00a141528' => 'This service adds Facebook social plugins to your WordPress site. With this service, you can attach your WordPress site to a Facebook account and easily share new posts to your Facebook timeline.', '53e00b04-03b8-4025-bb75-173c0a141528' => 'Backing up your website is one of the single most important things you can do. With this backup service we will set things up so you can continually backup your WordPress website. So if your site gets hacked or you make an accidental change you’ll be able to backup your site to when it was in tip top shape.', '53ee5b7a-aef4-44f3-a4dd-48b90a140b28' => '<strong>Improve Usability and site traffic with a Faster Website. </strong>Is your WordPress website taking a long time to load? Did you know that Google and other search engines will actually send you more traffic if it loads quickly? Did you also know that having a faster site means visitors will stay on your site longer so you can be even more successful? It‘s True! Let our pros go through your site and speed it up.', '53ee5ec2-eff0-441a-944d-52050a140b28' => '<strong>Have a great theme, but don’t like the colors?</strong> Simply tell us which colors you’d like to replace and we’ll swap out up to 3 colors throughout your entire site. This is a great way to ensure that your theme properly reflects your unique style and brand.', '53ee5dce-e2ec-4697-a09a-52050a140b28' => '<strong>Wish someone else would write your content for you?</strong> We will! In fact we have an amazing team of college grads and English majors who just love writing content (Weird, right?). You’ve probably been meaning to write out the content yourself for a while now, but you never seem to have the time to finish it. Answer a few simple questions and our team will write 100 words of amazing content and add it to any page of your site.');
                    $items = json_decode($result['body']);
                    foreach ($items as $item) {
                        if ($item->id == $plugin['id']) {
                            $service = $item;
                        }
                    }
                    if (isset($service) && isset($descriptions[$plugin['id']])) {
                        $plugin_html = '
						<div class="plugin-card" style="border-color: #0074a2;">
							<div class="plugin-card-top" style="border-bottom: 1px solid #0074a2;">
								<a target="_blank" href="' . $link . '"><img class="plugin-icon" src="' . $service->images->square_thumbnail_url . '"></a>
								<div class="name column-name">
									<h4><a href="' . $link . '">' . $service->name . '</a></h4>
									<div class="action-links">
										<ul class="plugin-action-buttons">
											<li>
												<a aria-label="' . esc_attr($service->name) . '" href="' . $link . '" class="button">More Details</a>
											</li>
											<li>
												<form method="POST" target="_blank" action="' . mm_build_link("https://www.mojomarketplace.com/cart", array('utm_medium' => 'plugin_admin', 'utm_content' => 'item_' . $api_args['mojo-items'] . '_plugin_search')) . '" class="item_plugin_search_' . mm_title_to_slug($item->name) . '">
													<input type="hidden" name="data[CartItem][item_id]" value="' . esc_attr($service->id) . '"/>
													<input class="button" type="submit" value="Purchase"/>
												</form>
											</li>
										</ul>	
									</div>
								</div>
								<div class="desc column-description">
									<p>' . $descriptions[$plugin['id']] . '</p>
									<p class="authors"> <cite>By <a href="' . mm_build_link('https://mojomarketplace.com/', array('utm_medium' => 'plugin_admin', 'utm_content' => 'author_plugin_search')) . '">MOJO Marketplace</a></cite></p>
								</div>
							</div>
							<div class="plugin-card-bottom">
								<div class="column-downloaded">
									' . $service->sales_count . ' downloads
								</div>
							</div>
						</div>';
                        $plugin_html = mm_minify($plugin_html);
                        echo "\n\t\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\t\tjQuery( document ).ready( function( \$ ) {\n\t\t\t\t\t\t\t\t\$( '#the-list' ).prepend( '" . $plugin_html . "' );\n\t\t\t\t\t\t\t\t\$( '.plugin-card:last-of-type' ).hide();\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t</script>";
                    }
                }
                break;
            default:
                add_action('admin_notices', 'mm_plugin_search_notice');
                break;
        }
    }
}
function mm_editor_prompt_content()
{
    $content = "\n\t<div id='editor-prompt'>\n\t<style type='text/css'>\n\tdiv#editor-prompt{ background-color: #fff; width: 97%; min-height: 400px;text-align: center;}\n\tdiv#editor-prompt p{font-weight: bold;font-size: 1.8rem;position: relative; top: 140px;}\n\tdiv#editor-prompt a{ position: relative; top: 160px;}\n\t</style>\n\t<p>\n\tEditing this code is highly discouraged. Proceed with caution.\n\t</p>\n\t<a id='proceed-to-editor' class='button button-primary button-large' href='#template'>Proceed</a>\n\t<div style='clear:both;'></div>\n\t</div>\n\t";
    return mm_minify($content);
}