コード例 #1
0
ファイル: coming-soon.php プロジェクト: hyperhy/hyperhy
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>");
}
コード例 #2
0
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>");
}