Example #1
0
_e('If checked, when the plugin is uninstalled from plugins page, all data (sliders, slides, options and meta fields) will also be removed from database.', 'fapro');
?>
</span>
							</td>
						</tr>
						
						<tr valign="top">
							<th scope="row">
								<label for="cache"><?php 
_e('Cache sliders', 'fapro');
?>
:</label>
							</th>
							<td>
								<?php 
fa_option_not_available();
?>
							</td>
						</tr>
						
						<tr valign="top">
							<th scope="row">
								<label for="preload_sliders"><?php 
_e('Preload sliders', 'fapro');
?>
:</label>
							</th>
							<td>
								<input type="checkbox" name="preload_sliders" id="preload_sliders" value="1"<?php 
fa_checked((bool) $settings['preload_sliders']);
?>
Example #2
0
    public function slider_submitbox()
    {
        global $post;
        if (!$post || parent::get_type_slider() != $post->post_type) {
            return;
        }
        $stamp = __('No expiration date.', 'fapro');
        ?>
	<div class="misc-pub-section curtime misc-pub-exptime">
		<span id="exp_timestamp">
		<?php 
        echo $stamp;
        ?>
</span>
		<a href="#timestamp_exp_div" class="edit-exp_timestamp hide-if-no-js"><span aria-hidden="true"><?php 
        _e('Edit');
        ?>
</span> <span class="screen-reader-text"><?php 
        _e('Edit slider expiration date', 'fapro');
        ?>
</span></a>
		<div id="timestamp_exp_div" class="hide-if-js">
			<?php 
        fa_option_not_available(__('Set slider expiration date. After reaching the date, slider is unpublished from front-end.', 'fapro'));
        ?>
			<p>
				<a href="#edit_exp_timestamp" class="cancel-exp-timestamp hide-if-no-js button-cancel"><?php 
        _e('Close');
        ?>
</a>
			</p>
		</div>
	</div>
	<?php 
    }
 function get_views()
 {
     $post_types = array('post', 'page');
     $views = array();
     if (!isset($_GET['show_all'])) {
         $views['fa_custom_slide'] = fa_option_not_available(' ', false) . sprintf('<a href="%s" class="%s">%s</a>', '#', '', 'Custom slides');
     }
     foreach ($post_types as $post_type) {
         $obj = get_post_type_object($post_type);
         $class = $this->post_type == $post_type ? 'current' : '';
         $args = array('post_type' => $post_type);
         if (isset($_GET['show_all'])) {
             $args['show_all'] = 'true';
         }
         $url = fa_iframe_admin_page_url('fa-mixed-content-modal', $args, false);
         $views[$post_type] = sprintf('<a href="%s" class="%s">%s</a>', $url, $class, $obj->labels->name);
     }
     return $views;
 }
Example #4
0
    /**
     * (non-PHPdoc)
     * @see WP_Widget::form()
     */
    function form($instance)
    {
        extract(wp_parse_args($instance, $this->_defaults()), EXTR_SKIP);
        ?>
		<p>
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title', 'fapro');
        ?>
: </label>
			<input class="widefat" type="text" name="<?php 
        echo $this->get_field_name('title');
        ?>
" id="<?php 
        echo $this->get_field_id('title');
        ?>
" value="<?php 
        echo esc_attr($title);
        ?>
" />
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('slider_id');
        ?>
"><?php 
        _e('Slider', 'fapro');
        ?>
: </label>
			<?php 
        fa_sliders_dropdown($this->get_field_name('slider_id'), $this->get_field_id('slider_id'), $slider_id, 'widefat');
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('width');
        ?>
"><?php 
        _e('Width', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('height');
        ?>
"><?php 
        _e('Height', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('full_width');
        ?>
"><?php 
        _e('Display full width', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('margin_top');
        ?>
"><?php 
        _e('Top distance', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('margin_bottom');
        ?>
"><?php 
        _e('Bottom distance', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('font_size');
        ?>
"><?php 
        _e('Font size', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('show_title');
        ?>
"><?php 
        _e('Show titles in slides', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
			
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('show_date');
        ?>
"><?php 
        _e('Show slides date', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
			
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('show_content');
        ?>
"><?php 
        _e('Show slide text', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('show_read_more');
        ?>
"><?php 
        _e('Show read more link', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('show_play_video');
        ?>
"><?php 
        _e('Show play video link', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('img_click');
        ?>
"><?php 
        _e('Image is clickable', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('auto_slide');
        ?>
"><?php 
        _e('Autoslide', 'fapro');
        ?>
: </label>
			<?php 
        fa_option_not_available();
        ?>
		</p>	
		<?php 
    }