예제 #1
0
function popmake_popup_theme_title_meta_box_field_textshadow($popup_theme_id)
{
    ?>
		<tr class="title-divider">
			<th colspan="2"><h3 class="title"><?php 
    _e('Text Shadow', 'popup-maker');
    ?>
</h3></th>
		</tr>
		<tr>
			<th scope="row">
				<label for="popup_theme_title_textshadow_horizontal"><?php 
    _e('Horizontal Position', 'popup-maker');
    ?>
</label>
			</th>
			<td>
				<input type="text" readonly
				       value="<?php 
    esc_attr_e(popmake_get_popup_theme_title($popup_theme_id, 'textshadow_horizontal'));
    ?>
"
				       name="popup_theme_title_textshadow_horizontal"
				       id="popup_theme_title_textshadow_horizontal"
				       class="popmake-range-manual"
				       step="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_step_title_textshadow_horizontal', 1));
    ?>
"
				       min="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_min_title_textshadow_horizontal', -50));
    ?>
"
				       max="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_max_title_textshadow_horizontal', 50));
    ?>
"
					/>
				<span class="range-value-unit regular-text">px</span>
			</td>
		</tr>
		<tr>
			<th scope="row">
				<label for="popup_theme_title_textshadow_vertical"><?php 
    _e('Vertical Position', 'popup-maker');
    ?>
</label>
			</th>
			<td>
				<input type="text" readonly
				       value="<?php 
    esc_attr_e(popmake_get_popup_theme_title($popup_theme_id, 'textshadow_vertical'));
    ?>
"
				       name="popup_theme_title_textshadow_vertical"
				       id="popup_theme_title_textshadow_vertical"
				       class="popmake-range-manual"
				       step="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_step_title_textshadow_vertical', 1));
    ?>
"
				       min="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_min_title_textshadow_vertical', -50));
    ?>
"
				       max="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_max_title_textshadow_vertical', 50));
    ?>
"
					/>
				<span class="range-value-unit regular-text">px</span>
			</td>
		</tr>
		<tr>
			<th scope="row">
				<label for="popup_theme_title_textshadow_blur"><?php 
    _e('Blur Radius', 'popup-maker');
    ?>
</label>
			</th>
			<td>
				<input type="text" readonly
				       value="<?php 
    esc_attr_e(popmake_get_popup_theme_title($popup_theme_id, 'textshadow_blur'));
    ?>
"
				       name="popup_theme_title_textshadow_blur"
				       id="popup_theme_title_textshadow_blur"
				       class="popmake-range-manual"
				       step="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_step_title_textshadow_blur', 1));
    ?>
"
				       min="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_min_title_textshadow_blur', 0));
    ?>
"
				       max="<?php 
    esc_html_e(apply_filters('popmake_popup_theme_max_title_textshadow_blur', 100));
    ?>
"
					/>
				<span class="range-value-unit regular-text">px</span>
			</td>
		</tr>
		<tr>
			<th scope="row">
				<label for="popup_theme_title_textshadow_color"><?php 
    _e('Color', 'popup-maker');
    ?>
</label>
			</th>
			<td>
				<input type="text" name="popup_theme_title_textshadow_color" id="popup_theme_title_textshadow_color" value="<?php 
    esc_attr_e(popmake_get_popup_theme_title($popup_theme_id, 'textshadow_color'));
    ?>
" class="color-picker textshadow-color"/>
			</td>
		</tr>
		<tr>
			<th scope="row">
				<label for="popup_theme_title_textshadow_opacity"><?php 
    _e('Opacity', 'popup-maker');
    ?>
</label>
			</th>
			<td>
				<input type="text" readonly
				       value="<?php 
    esc_attr_e(popmake_get_popup_theme_title($popup_theme_id, 'textshadow_opacity'));
    ?>
"
				       name="popup_theme_title_textshadow_opacity"
				       id="popup_theme_title_textshadow_opacity"
				       class="popmake-range-manual"
				       step="1"
				       min="0"
				       max="100"
				       data-force-minmax=true
					/>
				<span class="range-value-unit regular-text">%</span>
			</td>
		</tr><?php 
}
예제 #2
0
function popmake_get_popup_theme_data_attr($popup_theme_id = 0)
{
    $data_attr = array('overlay' => popmake_get_popup_theme_overlay($popup_theme_id), 'container' => popmake_get_popup_theme_container($popup_theme_id), 'title' => popmake_get_popup_theme_title($popup_theme_id), 'content' => popmake_get_popup_theme_content($popup_theme_id), 'close' => popmake_get_popup_theme_close($popup_theme_id));
    return apply_filters('popmake_get_popup_theme_data_attr', $data_attr, $popup_theme_id);
}