Ejemplo n.º 1
0
function popmake_get_the_popup_data_attr($popup_id = null)
{
    if (!$popup_id) {
        $popup_id = popmake_get_the_popup_ID();
    }
    $post = get_post($popup_id);
    $data_attr = array('id' => $popup_id, 'slug' => $post->post_name, 'theme_id' => popmake_get_the_popup_theme($popup_id), 'meta' => array('display' => popmake_get_popup_display($popup_id), 'close' => popmake_get_popup_close($popup_id), 'click_open' => popmake_get_popup_click_open($popup_id)));
    if (popmake_get_popup_auto_open($popup_id, 'enabled')) {
        $data_attr['meta']['auto_open'] = popmake_get_popup_auto_open($popup_id);
    }
    if (popmake_get_popup_admin_debug($popup_id, 'enabled')) {
        $data_attr['meta']['admin_debug'] = popmake_get_popup_admin_debug($popup_id);
    }
    return apply_filters('popmake_get_the_popup_data_attr', $data_attr, $popup_id);
}
function popmake_admin_popup_form_display_tab_settings_zindex($popup_id)
{
    ?>
	<tr class="title-divider">
	<th colspan="2"><h3 class="title"><?php 
    _e('Z Index', 'popup-maker');
    ?>
</h3></th>
	</tr>
	<tr>
		<th scope="row">
			<label for="popup_display_overlay_zindex"><?php 
    _e('Overlay Z-Index', 'popup-maker');
    ?>
</label>
		</th>
		<td>
			<input type="number" max="2147483647" min="0" name="popup_display_overlay_zindex" id="popup_display_overlay_zindex" value="<?php 
    esc_attr_e(popmake_get_popup_display($popup_id, 'overlay_zindex'));
    ?>
">

			<p class="description"><?php 
    _e('Change the z-index layer level for the overlay.', 'popup-maker');
    ?>
</p>
		</td>
	</tr>
	<tr>
	<th scope="row">
		<label for="popup_display_zindex"><?php 
    _e('Popup Z-Index', 'popup-maker');
    ?>
</label>
	</th>
	<td>
		<input type="number" max="2147483647" min="0" name="popup_display_zindex" id="popup_display_zindex" value="<?php 
    esc_attr_e(popmake_get_popup_display($popup_id, 'zindex'));
    ?>
">

		<p class="description"><?php 
    _e('Change the z-index layer level for the popup.', 'popup-maker');
    ?>
</p>
	</td>
	</tr><?php 
}