is_general_settings = ( isset( $_GET['page'] ) && 'slider-settings.php' == $_GET['page'] ); if ( $this->is_general_settings ) { $tabs = array( 'settings' => array( 'label' => __( 'Settings', 'slider-bws' ) ), 'misc' => array( 'label' => __( 'Misc', 'slider-bws' ) ), 'custom_code' => array( 'label' => __( 'Custom Code', 'slider-bws' ) ), ); } else { $tabs = array( 'images' => array( 'label' => __( 'Images', 'slider-bws' ) ), 'settings' => array( 'label' => __( 'Settings', 'slider-bws' ) ) ); } if ( $this->is_general_settings ) { $options = $sldr_options; } else { if ( empty( $sldr_id ) ) { $options = sldr_get_options_default(); } else { $slider_single_setting = $wpdb->get_var( $wpdb->prepare( "SELECT `settings` FROM `" . $wpdb->prefix . "sldr_slider` WHERE `slider_id` = %d", $sldr_id ) ); $options = unserialize( $slider_single_setting ); } } parent::__construct( array( 'plugin_basename' => $plugin_basename, 'plugins_info' => $sldr_plugin_info, 'prefix' => 'sldr', 'default_options' => sldr_get_options_default(), 'options' => $options, 'tabs' => $tabs, 'wp_slug' => 'slider-bws', 'doc_link' => 'https://bestwebsoft.com/documentation/slider/slider-user-guide/' ) ); } /** * Save plugin options to the database * @access public * @param void * @return array The action results */ public function save_options() { $message = $notice = $error = ''; /* Global Settings */ if ( $this->is_general_settings ) { $slider_request_options = array(); /* Set lazy load for slideshow */ $slider_request_options['lazy_load'] = ( isset( $_POST['sldr_lazy_load'] ) ) ? true : false; /* Set slide auto height */ $slider_request_options['auto_height'] = ( isset( $_POST['sldr_auto_height'] ) ) ? true : false; /* Display slider in the front page of the Renty theme. */ $slider_request_options['display_in_front_page'] = ( isset( $_POST['sldr_display_in_front_page'] ) ) ? intval( $_POST['sldr_display_in_front_page'] ) : 0; $this->options = array_merge( $this->options, $slider_request_options ); update_option( 'sldr_options', $this->options ); $message = __( "Settings saved.", 'slider-bws' ); } return compact( 'message', 'notice', 'error' ); } /** * */ public function tab_images() { $wp_gallery_media_table = new Sldr_Media_Table(); $wp_gallery_media_table->prepare_items(); ?>

help_phrase(); ?>

views(); ?>

help_phrase(); ?>
is_general_settings ) { ?> get( 'TextDomain' ); if ( 'bws-renty' == $current_theme || 'renty' == $current_theme ) { ?>