Exemplo n.º 1
0
/**
 * Register all the meta boxes for the Theme custom post type
 *
 * @since 1.0
 * @return void
 */
function popmake_add_popup_theme_meta_box()
{
    $singular = popmake_get_label_singular('popup_theme');
    $plural = popmake_get_label_plural('popup_theme');
    /** Preview Window **/
    add_meta_box('popmake_popup_theme_preview', __('Theme Preview', 'popup-maker'), 'popmake_render_popup_theme_preview_meta_box', 'popup_theme', 'side', 'high');
    /** Overlay Meta **/
    add_meta_box('popmake_popup_theme_overlay', __('Overlay Settings', 'popup-maker'), 'popmake_render_popup_theme_overlay_meta_box', 'popup_theme', 'normal', 'high');
    /** Container Meta **/
    add_meta_box('popmake_popup_theme_container', __('Container Settings', 'popup-maker'), 'popmake_render_popup_theme_container_meta_box', 'popup_theme', 'normal', 'high');
    /** Title Meta **/
    add_meta_box('popmake_popup_theme_title', __('Title Settings', 'popup-maker'), 'popmake_render_popup_theme_title_meta_box', 'popup_theme', 'normal', 'high');
    /** Content Meta **/
    add_meta_box('popmake_popup_theme_content', __('Content Settings', 'popup-maker'), 'popmake_render_popup_theme_content_meta_box', 'popup_theme', 'normal', 'high');
    /** Close Meta **/
    add_meta_box('popmake_popup_theme_close', __('Close Settings', 'popup-maker'), 'popmake_render_popup_theme_close_meta_box', 'popup_theme', 'normal', 'high');
    if (!popmake_get_option('disable_admin_support_widget', false)) {
        /** Support Meta **/
        add_meta_box('popmake_popup_support', __('Support', 'popup-maker'), 'popmake_render_support_meta_box', 'popup_theme', 'side', 'default');
    }
    if (!popmake_get_option('disable_admin_share_widget', false)) {
        /** Share Meta **/
        add_meta_box('popmake_popup_share', __('Share', 'popup-maker'), 'popmake_render_share_meta_box', 'popup_theme', 'side', 'default');
    }
}
Exemplo n.º 2
0
function popmake_setup_post_types()
{
    global $popup_post_type, $popup_theme_post_type;
    $popup_labels = apply_filters('popmake_popup_labels', array('name' => '%2$s', 'singular_name' => '%1$s', 'add_new' => __('Add New', 'popup-maker'), 'add_new_item' => __('Add New %1$s', 'popup-maker'), 'edit_item' => __('Edit %1$s', 'popup-maker'), 'new_item' => __('New %1$s', 'popup-maker'), 'all_items' => __('All %2$s', 'popup-maker'), 'view_item' => __('View %1$s', 'popup-maker'), 'search_items' => __('Search %2$s', 'popup-maker'), 'not_found' => __('No %2$s found', 'popup-maker'), 'not_found_in_trash' => __('No %2$s found in Trash', 'popup-maker'), 'parent_item_colon' => '', 'menu_name' => __(POPMAKE_NAME, 'popup-maker')));
    foreach ($popup_labels as $key => $value) {
        $popup_labels[$key] = sprintf($value, popmake_get_label_singular('popup'), popmake_get_label_plural('popup'));
    }
    $popup_args = array('labels' => $popup_labels, 'show_ui' => true, 'query_var' => false, 'menu_icon' => POPMAKE_URL . '/assets/images/admin/dashboard-icon.png', 'menu_position' => 20.292892729, 'supports' => apply_filters('popmake_popup_supports', array('title', 'editor', 'revisions', 'author')));
    $popup_post_type = register_post_type('popup', apply_filters('popmake_popup_post_type_args', $popup_args));
    $popup_theme_labels = apply_filters('popmake_popup_theme_labels', array('name' => '%2$s', 'singular_name' => '%1$s', 'add_new' => __('Add New', 'popup-maker'), 'add_new_item' => __('Add New %1$s', 'popup-maker'), 'edit_item' => __('Edit %1$s', 'popup-maker'), 'new_item' => __('New %1$s', 'popup-maker'), 'all_items' => __('All %2$s', 'popup-maker'), 'view_item' => __('View %1$s', 'popup-maker'), 'search_items' => __('Search %2$s', 'popup-maker'), 'not_found' => __('No %2$s found', 'popup-maker'), 'not_found_in_trash' => __('No %2$s found in Trash', 'popup-maker'), 'parent_item_colon' => ''));
    foreach ($popup_theme_labels as $key => $value) {
        $popup_theme_labels[$key] = sprintf($value, popmake_get_label_singular('popup_theme'), popmake_get_label_plural('popup_theme'));
    }
    $popup_theme_args = array('labels' => $popup_theme_labels, 'show_ui' => true, 'show_in_nav_menus' => false, 'show_in_menu' => 'edit.php?post_type=popup', 'show_in_admin_bar' => false, 'query_var' => false, 'supports' => apply_filters('popmake_popup_theme_supports', array('title', 'revisions', 'author')));
    $popup_theme_post_type = register_post_type('popup_theme', apply_filters('popmake_popup_theme_post_type_args', $popup_theme_args));
}
Exemplo n.º 3
0
function popmake_getting_started_page()
{
    list($display_version) = explode('-', POPMAKE_VERSION);
    ?>
	<div class="wrap about-wrap">
	<h1><?php 
    printf(__('Welcome to Popup Maker %s', 'popup-maker'), $display_version);
    ?>
</h1>

	<div class="about-text"><?php 
    _e('Thank you for updating to the latest version! Are you ready to destroy your old conversion rates and transform your website? We sure are!', 'popup-maker');
    ?>
</div>
	<div class="popmake-badge"><?php 
    printf(__('Version %s', 'popup-maker'), $display_version);
    ?>
</div>

	<?php 
    popmake_welcome_page_tabs();
    ?>


	<p class="about-description"><?php 
    _e('Use the tips below to get started using Popup Maker. You will have those high performance popups up and running in no time!', 'popup-maker');
    ?>
</p>

	<div class="changelog">
		<h3><?php 
    _e('Creating Your First Popup Maker Popup', 'popup-maker');
    ?>
</h3>

		<div class="feature-section">


			<h4><?php 
    printf(__('<a href="%s">%s &rarr; Add New</a>', 'popup-maker'), admin_url('post-new.php?post_type=popup'), popmake_get_label_plural());
    ?>
</h4>
			<img src="<?php 
    echo POPMAKE_URL . '/assets/images/welcome/getting-started-1.jpg';
    ?>
" class="popmake-welcome-screenshots" width="540"/>

			<p><?php 
    printf(__('The %s menu is your access point for all aspects of your Popup Maker product creation and setup. To create your first popup, simply click Add New and then choose from many available options to get it just right.', 'popup-maker'), popmake_get_label_plural());
    ?>
</p>

			<h4><?php 
    _e('Display Options', 'popup-maker');
    ?>
</h4>

			<p><?php 
    _e('Display options control how your popup shows and how it behaves, respectively. Set the size, how the background operates, animation options, and positioning positioning.', 'popup-maker');
    ?>
</p>

			<h4><?php 
    _e('Close Option', 'popup-maker');
    ?>
</h4>

			<p><?php 
    _e('These settings allow you to control how a user is able to close your popups: clicking on the background overlay, pressing ESC, or pressing F4. You can enable or disable all of these settings, or pick and choose based on your preference. Also, you can prevent users from closing your popups using our Forced Interaction Extension.', 'popup-maker');
    ?>
</p>

			<h4><?php 
    _e('Targeting Conditions', 'popup-maker');
    ?>
</h4>

			<p><?php 
    _e('Use Targeting Conditions to load your popups wherever you please! If you’re not running some type of auto open popup extension (Scroll Triggered, Exit Intent, or Auto Open), then remember, you have to call your popup using the <em>popmake class</em> on your HTML element (more information below.)', 'popup-maker');
    ?>
</p>

			<h4><?php 
    _e('Theme Settings', 'popup-maker');
    ?>
</h4>

			<p><?php 
    _e('Choose your theme from the drop down to customize how your popup looks. Without Unlimited Themes, only the Default Theme will appear, which you can customize and change the name to suit your needs.', 'popup-maker');
    ?>
</p>

		</div>
	</div>

	<div class="changelog">
		<h3><?php 
    _e('Calling Your Popups Anywhere', 'popup-maker');
    ?>
</h3>

		<div class="feature-section">

			<img src="<?php 
    echo POPMAKE_URL . '/assets/images/welcome/calling-popup.jpg';
    ?>
" class="popmake-welcome-screenshots" width="540"/>

			<h4><?php 
    _e('Using the Popup Maker CSS Tag', 'popup-maker');
    ?>
</h4>

			<p><?php 
    _e('In the <em>All Popups Menu</em>, you can find all of your popups and their various attributes. One of the most important attributes is the CSS Class of your popups. You will use this class wherever you want to call your popups!', 'popup-maker');
    ?>
</p>

			<p>Examples:</p>
			<ul class="inline">
				<li><code>&lt;a class=”popmake-####”><?php 
    _e('Read More', 'popup-maker');
    ?>
&lt;/a></code></li>
				<li><code>&lt;button class=”popmake-####”><?php 
    _e('Sign Up Now!', 'popup-maker');
    ?>
						&lt;/button></code></li>
				<li><code>&lt;img class=”popmake-####”/></code></li>
			</ul>

			<h4><?php 
    _e('Using Popup Maker Short Codes', 'popup-maker');
    ?>
</h4>

			<p><?php 
    _e('You can also use shortcodes to create popups directly inline with the content of your posts and pages. This is useful if you wanna have unique content in your popups for each page/post.', 'popup-maker');
    ?>
</p>

			<p>For Example:</p>
			<ul class="inline">
				<li><code>&lsqb;popup id=The-Pop-Up-Name size="small"]Put your content and other &lsqb;shortcodes] here.&lsqb;/modal]</code>
				</li>
			</ul>
		</div>
	</div>

	<div class="changelog">
		<h3><?php 
    _e('Need Help?', 'popup-maker');
    ?>
</h3>

		<div class="feature-section">

			<h4><?php 
    _e('Top-Notch Support', 'popup-maker');
    ?>
</h4>

			<p>
				<?php 
    printf(__('We provide top-notch support! If you encounter a problem or have a question, post a question in the %sWordPress Support Forums%s, or if you’ve purchased an extension, the %sSupport Page%s.', 'popup-maker'), '<a href="https://wordpress.org/support/plugin/popup-maker" target="_blank">', '</a>', '<a href="https://wppopupmaker.com/support?utm_source=WP+Welcome+Getting+Started&utm_medium=Text+Link&utm_campaign=Extension+Support" target="_blank">', '</a>');
    ?>
			</p>
		</div>
	</div>

	<div class="changelog">
		<h3><?php 
    _e('Stay Up-to-Date', 'popup-maker');
    ?>
</h3>

		<div class="feature-section">

			<h4><?php 
    _e('Get Notified of Extension Releases', 'popup-maker');
    ?>
</h4>

			<p><?php 
    printf(__('New extensions that make Popup Maker even more powerful are released nearly every single week. <a href="%s" target="_blank">Subscribe to the newsletter</a> to stay up to date with our latest releases. Signup now to ensure you do not miss a release!', 'popup-maker'), 'https://wppopupmaker.com/newsletter-sign-up?utm_source=WP+Welcome+Getting+Started&utm_medium=Text+Link&utm_campaign=Newsletter+Signup');
    ?>
			</p>

			<h4><?php 
    _e('Get Alerted About New Tutorials', 'popup-maker');
    ?>
</h4>

			<p><?php 
    printf(__('<a href="%s" target="_blank">Signup now</a> to hear about the latest tutorial releases that explain how to take Popup Maker further.', 'popup-maker'), 'https://wppopupmaker.com/newsletter-sign-up?utm_source=WP+Welcome+Getting+Started&utm_medium=Text+Link&utm_campaign=Newsletter+Signup');
    ?>
			</p>

		</div>
	</div>

	<div class="changelog">
		<h3><?php 
    _e('Extensions for Everything', 'popup-maker');
    ?>
</h3>

		<div class="feature-section">

			<h4><?php 
    _e('9 Extensions and Counting...', 'popup-maker');
    ?>
</h4>

			<p><?php 
    _e('Add-on plugins are available that greatly extend the default functionality of Popup Maker. There are extensions enhancing the Theme Builder capabilities, extensions for marketing your most precious content like Auto Open and Exit Intent, plus much more now, and even more to come.', 'popup-maker');
    ?>
</p>

			<p><?php 
    _e('We have over 25 more extensions in works, and over 35 integration extensions in the works as well. Stay updated and tuned in to be a part of what is going to be the robust Popup Maker tool on the market.', 'popup-maker');
    ?>
</p>

			<h4><?php 
    _e('Visit the Extension Store', 'popup-maker');
    ?>
</h4>

			<p><?php 
    printf(__('<a href="%s" target="_blank">The Extensions store</a> has a list of all available extensions, including convenient category filters so you can find exactly what you are looking for.', 'popup-maker'), 'https://wppopupmaker.com/extensions?utm_source=WP+Welcome+Getting+Started&utm_medium=Text+Link&utm_campaign=Extensions');
    ?>
			</p>

		</div>
	</div>

	<div class="return-to-dashboard">
		<a href="<?php 
    echo esc_url(admin_url('post.php?post=' . popmake_get_default_popup_theme() . '&action=edit'));
    ?>
"><?php 
    _e('Customize Your First Theme', 'popup-maker');
    ?>
</a> &middot;
		<a href="<?php 
    echo esc_url(admin_url('post-new.php?post_type=popup'));
    ?>
"><?php 
    _e('Create a Modal', 'popup-maker');
    ?>
</a> &middot;
		<a href="<?php 
    echo esc_url('http://docs.wppopupmaker.com/collection/1-getting-started?utm_source=WP+Welcome+Getting+Started&utm_medium=Text+Link&utm_campaign=Getting+Started');
    ?>
" target="_blank"><?php 
    _e('View the Full Getting Started Guide', 'popup-maker');
    ?>
</a>
	</div>
	</div><?php 
}