general_settings(); } public function get_defaults() { return [ 'admin_general_google_font' => array( 'font-family' => 'Nunito Sans', 'font-weight' => '400', 'type' => 'google', 'font-size' => '', 'line-height' => '', 'color' => '', 'output' => 'body', ), 'admin_general_bg' => 'color', 'admin_general_bg_color' => '', 'admin_general_bg_gradient' => array( 'background-color' => '#0347FF', 'background-gradient-color' => '#fd1919', 'background-gradient-direction' => '135deg', ), 'admin_general_bg_image' => '', 'admin_general_bg_slideshow' => '', 'admin_general_bg_video_type' => 'youtube', 'admin_general_bg_video_self_hosted' => '', 'admin_general_bg_video_youtube' => '', 'admin_general_bg_video_loop' => true, 'admin_general_bg_video_poster' => '', 'admin_glass_effect' => true, ]; } public function general_google_fonts( &$fields ) { $fields[] = array( 'type' => 'subheading', 'content' => Utils::adminfiy_help_urls( __( 'Customize Settings', WP_ADMINIFY_TD ), 'https://wpadminify.com/kb/admin-customization/', 'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8', 'https://www.facebook.com/groups/jeweltheme', 'https://wpadminify.com/support/' ), ); $fields[] = array( 'title' => 'Body Font', 'type' => 'notice', 'style' => 'warning', 'content' => Utils::adminify_upgrade_pro(), ); } public function general_gradient_bg( &$fields ) { $fields[] = array( 'title' => '', 'type' => 'notice', 'style' => 'warning', 'content' => Utils::adminify_upgrade_pro(), 'dependency' => array( 'admin_general_bg', '==', 'gradient', true ), ); } public function general_image_bg( &$fields ) { $fields[] = array( 'title' => '', 'type' => 'notice', 'style' => 'warning', 'content' => Utils::adminify_upgrade_pro(), 'dependency' => array( 'admin_general_bg', '==', 'image', true ), ); } public function general_slideshow_bg( &$fields ) { $fields[] = array( 'title' => '', 'type' => 'notice', 'style' => 'warning', 'content' => Utils::adminify_upgrade_pro(), 'dependency' => array( 'admin_general_bg', '==', 'slideshow', true ), ); } public function general_glass_effect_bg( &$fields ) { $fields[] = array( 'title' => __( 'Glass Effect', WP_ADMINIFY_TD ), 'type' => 'notice', 'style' => 'warning', 'content' => Utils::adminify_upgrade_pro(), ); } public function general_video_bg( &$fields ) { $fields[] = array( 'title' => '', 'type' => 'notice', 'style' => 'warning', 'content' => Utils::adminify_upgrade_pro(), 'dependency' => array( 'admin_general_bg', '==', 'video', true ), ); } public function general_fields( &$fields ) { $fields[] = array( 'type' => 'subheading', 'content' => __( 'Body Color Customization', WP_ADMINIFY_TD ), ); $fields[] = array( 'id' => 'admin_general_bg', 'type' => 'button_set', 'title' => 'Background Type', 'options' => array( 'color' => 'Color', 'gradient' => 'Gradient', 'image' => 'Image', 'slideshow' => 'Slideshow', 'video' => 'Video', ), 'default' => 'color', ); $fields[] = array( 'id' => 'admin_general_bg_color', 'type' => 'color', 'title' => 'Background Color', 'default' => '', 'dependency' => array( 'admin_general_bg', '==', 'color', true ), ); } public function general_settings() { if ( !class_exists( 'ADMINIFY' ) ) { return; } $fields = []; $this->general_google_fonts( $fields ); $this->general_fields( $fields ); $this->general_gradient_bg( $fields ); $this->general_image_bg( $fields ); $this->general_slideshow_bg( $fields ); $this->general_video_bg( $fields ); // self::general_glass_effect_bg($fields); \ADMINIFY::createSection( $this->prefix, array( 'title' => __( 'Customize', WP_ADMINIFY_TD ), 'icon' => 'fas fa-fill-drip', 'fields' => $fields, ) ); } }