File manager - Edit - /home/verseaumee/TF89388/wp-content/themes/noisa/admin/panel-options.php
Back
<?php /** * Theme Name: Noisa * Theme Author: Mariusz Rek - Rascals Themes * Theme URI: http://rascalsthemes.com/noisa * Author URI: http://rascalsthemes.com * File: panel-options.php * @package noisa * @since 1.0.0 */ /* Exit if accessed directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } /* Options array */ $noisa_main_options = array( /* ================================================== General Settings ================================================== */ array( 'type' => 'open', 'tab_name' => esc_html__( 'General Settings', 'noisa' ), 'tab_id' => 'general-settings', 'icon' => 'gears' ), array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'General Settings', 'noisa' ), 'sub_tab_id' => 'sub-general-basics' ), // Google MAPS API Key array( 'name' => esc_html__( 'Google Maps API Key', 'noisa'), 'id' => 'google_maps_key', 'type' => 'text', 'std' => '', 'desc' => esc_html__( 'Insert your Google Maps API key.', 'noisa') ), // Google Map Marker array( 'name' => esc_html__( 'Google Maps Marker', 'noisa' ), 'id' => 'map_marker', 'type' => 'add_image', 'source' => 'media_libary', 'plugins' => array( 'add_image' ), 'std' => '', 'button_title' => esc_html__( 'Add Image', 'noisa' ), 'msg' => esc_html__( 'Currently you don\'t have image, you can add one by clicking on the button below.', 'noisa' ), 'desc' => esc_html__( 'Add Google Map Marker (48px x 56px).', 'noisa' ) ), array( 'type' => 'sub_close' ), array( 'type' => 'close' ), /* ================================================== Fonts ================================================== */ array( 'type' => 'open', 'tab_name' => esc_html__( 'Fonts', 'noisa' ), 'tab_id' => 'fonts', 'icon' => 'font' ), /* Google Fonts -------------------------------- */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Google Web Fonts', 'noisa' ), 'sub_tab_id' => 'sub-google-fonts', ), array( 'name' => esc_html__( 'Google Fonts', 'noisa' ), 'id' => 'use_google_fonts', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'on', 'desc' => esc_html__( 'When this option is enabled, the text elements will be automatically replaced with the Google Web Fonts.', 'noisa' ), ), array( 'name' => esc_html__( 'Google Font Code', 'noisa' ), 'id' => 'google_fonts_code', 'type' => 'textarea', 'std' => esc_html__( 'Source+Sans+Pro:300,300i,400,400i,600,600i,700,700i&subset=latin-ext', 'noisa' ), 'tinymce' => 'false', 'height' => '50', 'desc' => esc_html__( 'Add Google Fonts family.', 'noisa' ), 'dependency' => array( "element" => 'use_google_fonts', "value" => array( 'on' ) ) ), array( 'type' => 'sub_close' ), array( 'type' => 'close' ), /* ================================================== Sections ================================================== */ array( 'type' => 'open', 'tab_name' => esc_html__( 'Sections', 'noisa' ), 'tab_id' => 'plugins', 'icon' => 'th-large' ), /* Comments -------------------------------- */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Comments', 'noisa' ), 'sub_tab_id' => 'sub-sections-comments' ), // Custom Comments Date array( 'name' => esc_html__( 'Comment Date Format', 'noisa' ), 'id' => 'custom_comment_date', 'type' => 'text', 'std' => 'F j, Y (H:i)', 'desc' => esc_html__( 'Enter your custom comment date.', 'noisa' ) ), array( 'name' => esc_html__( 'DISQUS Comments', 'noisa' ), 'id' => 'disqus_comments', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Enable DISQUS comments. Replace default Wordpress comments.', 'noisa' ), ), // Disqus ID array( 'name' => esc_html__( 'DISQUS Shortname', 'noisa' ), 'id' => 'disqus_shortname', 'type' => 'text', 'std' => '', 'desc' => esc_html__( 'Enter DISQUS Website\'s Shortname.', 'noisa' ), 'dependency' => array( 'element' => 'disqus_comments', 'value' => array( 'on' ) ) ), array( 'type' => 'sub_close' ), /* Music Player -------------------------------- */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Music', 'noisa' ), 'sub_tab_id' => 'sub-sections-music', ), // Enable Scamp Player array( 'name' => esc_html__( 'Music Player', 'noisa' ), 'id' => 'scamp_player', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'on', 'desc' => esc_html__( 'Enable music player. NOTE: Noisa Plugin must be instaled and activated.', 'noisa' ), ), // Autoplay array( 'name' => esc_html__( 'Autoplay', 'noisa' ), 'id' => 'player_autoplay', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Autoplay tracklist. NOTE: Autoplay does not work on mobile devices.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Load first track array( 'name' => esc_html__( 'Load First Track', 'noisa' ), 'id' => 'load_first_track', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Load first track from tracklist after load list.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Startup Tracklist array( 'name' => esc_html__( 'Startup Tracklist', 'noisa' ), 'id' => 'startup_tracklist', 'type' => 'posts', 'post_type' => 'noisa_tracks', 'std' => 'none', 'options' => array( array( 'name' => '', 'value' => 'none' ), ), 'desc' => esc_html__( 'Select startup tracklist.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Show Player array( 'name' => esc_html__( 'Show Player on Startup', 'noisa' ), 'id' => 'show_player', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Show player on startup. NOTE: Player will not be visible when option "Open Player After Click" is enabled.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Show Tracklist array( 'name' => esc_html__( 'Show Tracklist on Startup', 'noisa' ), 'id' => 'show_tracklist', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Show playlist on startup.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Base64 array( 'name' => esc_html__( 'Encode Tracks URLS (Base64)', 'noisa' ), 'id' => 'player_base64', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Set this to on when you would like to use the base64 PHP function, to hide the MP3 URL.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Random Tracks array( 'name' => esc_html__( 'Random Play', 'noisa' ), 'id' => 'player_random', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Random play tracks.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Loop Tracks array( 'name' => esc_html__( 'Loop Tracklist', 'noisa' ), 'id' => 'player_loop', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Loop tracklist.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Titlebar array( 'name' => esc_html__( 'Change Titlebar', 'noisa' ), 'id' => 'player_titlebar', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Replace browser titlebar on track title.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Player Skin array( 'name' => esc_html__( 'Player Skin', 'noisa' ), 'id' => 'player_skin', 'type' => 'select', 'std' => 'dark', 'desc' => esc_html__( 'Select player skin.', 'noisa' ), 'options' => array( array( 'name' => 'Light Compact', 'value' => 'light.compact'), array( 'name' => 'Dark Compact', 'value' => 'dark.compact'), array( 'name' => 'Light', 'value' => 'light'), array( 'name' => 'Dark', 'value' => 'dark') ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Soundcloud array( 'name' => esc_html__( 'Soundcloud', 'noisa' ), 'id' => 'soundcloud', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'on', 'desc' => esc_html__( 'Soundcloud Playback', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Soundcloud Client ID array( 'name' => esc_html__( 'Soundcloud Client ID', 'noisa' ), 'id' => 'soundcloud_id', 'type' => 'text', 'std' => '', 'desc' => esc_html__( 'Add your Soundcloud ID', 'noisa' ), 'dependency' => array( "element" => 'soundcloud', "value" => array( 'on' ) ) ), // Shoutcast Radio array( 'name' => esc_html__( 'Shoutcast Radio', 'noisa' ), 'id' => 'shoutcast', 'type' => 'switch_button', 'std' => 'on', 'desc' => esc_html__( 'Shoutcast support.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), // Shoutcast Refresh Time array( 'name' => esc_html__( 'Shoutcast Refresh Time (ms)', 'noisa' ), 'id' => 'shoutcast_interval', 'type' => 'text', 'std' => '20000', 'desc' => esc_html__( 'Enter refresh time in ms. (20000 = 20s)', 'noisa' ), 'dependency' => array( "element" => 'shoutcast', "value" => array( 'on' ) ) ), // Startup Volume array( 'name' => esc_html__( 'Startup Volume', 'noisa' ), 'id' => 'player_volume', 'type' => 'range', 'plugins' => array( 'range' ), 'min' => 0, 'max' => 100, 'unit' => '', 'std' => '70', 'desc' => esc_html__( 'Set startup volume.', 'noisa' ), 'dependency' => array( "element" => 'scamp_player', "value" => array( 'on' ) ) ), array( 'type' => 'sub_close' ), /* ================================================== Blog ================================================== */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Blog', 'noisa' ), 'sub_tab_id' => 'sub-section-blog', ), // Featured image array( 'name' => esc_html__( 'Display Featured Image on Standard Post Format', 'noisa' ), 'id' => 'display_featured_image', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'on', 'desc' => '', ), // Featured image 2 array( 'name' => esc_html__( 'Display Featured Image on Single Post (Image Format)', 'noisa' ), 'id' => 'display_featured_image_ipf', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'on', 'desc' => '', ), // Category type array( 'name' => esc_html__( 'Category/Tag/Search Type', 'noisa' ), 'id' => 'blog_cat_type', 'type' => 'select', 'std' => 'boxed', 'options' => array( array( 'name' => esc_html__( 'List (Default)', 'noisa' ), 'value' => 'list' ), array( 'name' => esc_html__( 'Grid', 'noisa' ), 'value' => 'grid' ) ), 'desc' => '', ), // Category layout array( 'name' => esc_html__( 'Grid Layout', 'noisa' ), 'id' => 'blog_cat_layout', 'type' => 'select', 'std' => 'boxed', 'options' => array( array( 'name' => esc_html__( 'Boxed', 'noisa' ), 'value' => 'boxed' ), array( 'name' => esc_html__( 'Full width', 'noisa' ), 'value' => 'full-width' ) ), 'desc' => '', 'dependency' => array( "element" => 'blog_cat_type', "value" => array( 'grid' ) ) ), array( 'type' => 'sub_close' ), /* ================================================== Events ================================================== */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Events', 'noisa' ), 'sub_tab_id' => 'sub-section-events', ), // Custom Event Date array( 'name' => esc_html__( 'Event Date Format', 'noisa' ), 'id' => 'event_date', 'type' => 'text', 'std' => 'd/m', 'desc' => esc_html__( 'Enter your custom event date. More information: http://codex.wordpress.org/Formatting_Date_and_Time', 'noisa' ) ), // Custom Time array( 'name' => esc_html__( 'Event Time Format', 'noisa' ), 'id' => 'event_time', 'type' => 'text', 'std' => 'g:i A', 'desc' => esc_html__( 'Enter your custom event time e.g: H:i. If time field isn\'t empty the then the time is displayed after event date. More information: http://codex.wordpress.org/Formatting_Date_and_Time', 'noisa' ) ), array( 'name' => esc_html__( 'Category Thumbnails Gap', 'noisa' ), 'id' => 'gap_events', 'type' => 'select', 'std' => 'no-gap', 'options' => array( array( 'name' => esc_html__( 'Small Gap', 'noisa' ), 'value' => 'no-gap' ), array( 'name' => esc_html__( 'Medium gap', 'noisa' ), 'value' => 'medium-gap' ) ), 'desc' => esc_html__( 'Display gap between thumbnails.', 'noisa' ) ), array( 'type' => 'sub_close' ), /* ================================================== Artists ================================================== */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Artists', 'noisa' ), 'sub_tab_id' => 'sub-section-artists', ), // Category Layout array( 'name' => esc_html__( 'Category Layout', 'noisa' ), 'id' => 'artists_cat_layout', 'type' => 'select', 'std' => 'boxed', 'options' => array( array( 'name' => esc_html__( 'Boxed', 'noisa' ), 'value' => 'boxed' ), array( 'name' => esc_html__( 'Full width', 'noisa' ), 'value' => 'full-width' ) ), 'desc' => '', ), array( 'name' => esc_html__( 'Category Thumbnails Gap', 'noisa' ), 'id' => 'gap_artists', 'type' => 'select', 'std' => 'no-gap', 'options' => array( array( 'name' => esc_html__( 'Small Gap', 'noisa' ), 'value' => 'no-gap' ), array( 'name' => esc_html__( 'Medium gap', 'noisa' ), 'value' => 'medium-gap' ) ), 'desc' => esc_html__( 'Display gap between thumbnails.', 'noisa' ) ), array( 'type' => 'sub_close' ), /* ================================================== Releases ================================================== */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Releases', 'noisa' ), 'sub_tab_id' => 'sub-section-releases', ), // Category Layout array( 'name' => esc_html__( 'Category Layout', 'noisa' ), 'id' => 'releases_cat_layout', 'type' => 'select', 'std' => 'boxed', 'options' => array( array( 'name' => esc_html__( 'Boxed', 'noisa' ), 'value' => 'boxed' ), array( 'name' => esc_html__( 'Full width', 'noisa' ), 'value' => 'full-width' ) ), 'desc' => '', ), array( 'name' => esc_html__( 'Category Thumbnails Gap', 'noisa' ), 'id' => 'gap_releases', 'type' => 'select', 'std' => 'no-gap', 'options' => array( array( 'name' => esc_html__( 'Small Gap', 'noisa' ), 'value' => 'no-gap' ), array( 'name' => esc_html__( 'Medium gap', 'noisa' ), 'value' => 'medium-gap' ) ), 'desc' => esc_html__( 'Display gap between thumbnails.', 'noisa' ) ), array( 'type' => 'sub_close' ), /* ================================================== Gallery ================================================== */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Gallery', 'noisa' ), 'sub_tab_id' => 'sub-section-gallery', ), // Category Layout array( 'name' => esc_html__( 'Category Layout', 'noisa' ), 'id' => 'gallery_cat_layout', 'type' => 'select', 'std' => 'boxed', 'options' => array( array( 'name' => esc_html__( 'Boxed', 'noisa' ), 'value' => 'boxed' ), array( 'name' => esc_html__( 'Full width', 'noisa' ), 'value' => 'full-width' ) ), 'desc' => '', ), array( 'name' => esc_html__( 'Category Thumbnails Gap', 'noisa' ), 'id' => 'gap_gallery', 'type' => 'select', 'std' => 'no-gap', 'options' => array( array( 'name' => esc_html__( 'Small Gap', 'noisa' ), 'value' => 'no-gap' ), array( 'name' => esc_html__( 'Medium gap', 'noisa' ), 'value' => 'medium-gap' ) ), 'desc' => esc_html__( 'Display gap between thumbnails.', 'noisa' ) ), array( 'type' => 'sub_close' ), /* ================================================== Permalinks ================================================== */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Permalinks', 'noisa' ), 'sub_tab_id' => 'sub-section-permalinks', ), // Artists array( 'name' => esc_html__( 'Artists Slug', 'noisa' ), 'id' => 'artists_slug', 'type' => 'text', 'std' => 'artists', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Artists Categories Slug', 'noisa' ), 'id' => 'artists_cat_slug', 'type' => 'text', 'std' => 'artist-category', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Artists Genres Slug', 'noisa' ), 'id' => 'artists_genres_slug', 'type' => 'text', 'std' => 'artist-genre', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), // Releases array( 'name' => esc_html__( 'Releases Slug', 'noisa' ), 'id' => 'releases_slug', 'type' => 'text', 'std' => 'releases', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Releases Genres Slug', 'noisa' ), 'id' => 'releases_genres_slug', 'type' => 'text', 'std' => 'release-genre', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Releases Categories Slug', 'noisa' ), 'id' => 'releases_cat_slug', 'type' => 'text', 'std' => 'release-category', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Releases Artists Slug', 'noisa' ), 'id' => 'releases_artists_slug', 'type' => 'text', 'std' => 'release-artist', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), // Events array( 'name' => esc_html__( 'Events Slug', 'noisa' ), 'id' => 'events_slug', 'type' => 'text', 'std' => 'events', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Events Artists Slug', 'noisa' ), 'id' => 'events_artists_slug', 'type' => 'text', 'std' => 'event-artist', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Events Categories Slug', 'noisa' ), 'id' => 'events_cat_slug', 'type' => 'text', 'std' => 'event-category', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Events Location Slug', 'noisa' ), 'id' => 'events_locations_slug', 'type' => 'text', 'std' => 'event-location', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), // Gallery array( 'name' => esc_html__( 'Gallery Slug', 'noisa' ), 'id' => 'gallery_slug', 'type' => 'text', 'std' => 'galleries', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Gallery Artists Slug', 'noisa' ), 'id' => 'gallery_artists_slug', 'type' => 'text', 'std' => 'gallery-artist', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'name' => esc_html__( 'Gallery Categories Slug', 'noisa' ), 'id' => 'gallery_cat_slug', 'type' => 'text', 'std' => 'gallery-category', 'desc' => esc_html__( 'Enter post slug name. No special characters. No spaces. IMPORTANT: When you change post slug name, you have to go to: WordPress Settings > Permalinks and save settings.', 'noisa' ) ), array( 'type' => 'sub_close' ), array( 'type' => 'close' ), /* ================================================== Sidebars ================================================== */ array( 'type' => 'open', 'tab_name' => esc_html__( 'Sidebars', 'noisa' ), 'tab_id' => 'sidebars', 'icon' => 'bars' ), array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Sidebars', 'noisa' ), 'sub_tab_id' => 'sub-sidebars' ), array( 'name' => esc_html__( 'Sidebars', 'noisa' ), 'sortable' => false, 'array_name' => 'custom_sidebars', 'id' => array( array( 'name' => 'name', 'id' => 'sidebar', 'label' => 'Name:', 'type' => 'text' ) ), 'type' => 'sortable_list', 'button_text' => esc_html__( 'Add Sidebar', 'noisa' ), 'desc' => esc_html__( 'Add your custom sidebars.', 'noisa' ) ), array( 'type' => 'sub_close' ), array( 'type' => 'close' ), /* ================================================== Advanced ================================================== */ array( 'type' => 'open', 'tab_name' => esc_html__( 'Advanced', 'noisa' ), 'tab_id' => 'advanced', 'icon' => 'wrench' ), /* AJAX -------------------------------- */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Ajax', 'noisa' ), 'sub_tab_id' => 'sub-ajax' ), // Ajax array( 'name' => esc_html__( 'Ajax Load', 'noisa' ), 'id' => 'ajaxed', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'on', 'desc' => esc_html__( 'Enable if you want ajax loading.', 'noisa' ), ), // Ajax Async array( 'name' => esc_html__( 'Asynchronous', 'noisa' ), 'id' => 'ajax_async', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'on', 'desc' => esc_html__( 'Asynchronous AJAX.', 'noisa' ), 'dependency' => array( "element" => 'ajaxed', "value" => array( 'on' ) ) ), // Ajax Cache array( 'name' => esc_html__( 'Ajax Cache', 'noisa' ), 'id' => 'ajax_cache', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'AJAX Cache.', 'noisa' ), 'dependency' => array( "element" => 'ajaxed', "value" => array( 'on' ) ) ), // Ajax Elements array( 'name' => esc_html__( 'AJAX Filter', 'noisa' ), 'id' => 'ajax_elements', 'type' => 'textarea', 'tinymce' => 'false', 'std' => '', 'height' => '120', 'desc' => esc_html__( 'Add selectors (Note: divide links with linebreaks (Enter)). These elements will not be processed by AJAX.', 'noisa' ), 'dependency' => array( "element" => 'ajaxed', "value" => array( 'on' ) ) ), // Ajax autoload scripts array( 'name' => esc_html__( 'AJAX Autoload Scripts', 'noisa' ), 'sortable' => true, 'array_name' => 'ajax_autoload_scripts', 'id' => array( array( 'name' => 'id', 'id' => 'id', 'label' => 'ID:' ), array( 'name' => 'url', 'id' => 'url', 'label' => 'URL:' ), ), 'type' => 'sortable_list', 'button_text' => esc_html__( 'Add Script', 'noisa' ), 'desc' => esc_html__( 'Add urls and ids of scripts that will be autoloaded.', 'noisa' ), 'dependency' => array( "element" => 'ajaxed', "value" => array( 'on' ) ) ), // Ajax reload scripts array( 'name' => esc_html__( 'AJAX Reload Scripts', 'noisa' ), 'id' => 'ajax_reload_scripts', 'type' => 'textarea', 'tinymce' => 'false', 'std' => '', 'height' => '120', 'desc' => esc_html__( 'Add strings for reloaded scripts (Note: divide links with linebreaks (Enter)). These scripts will be reloaded after page loaded by AJAX.', 'noisa' ), 'dependency' => array( "element" => 'ajaxed', "value" => array( 'on' ) ) ), // Ajax reload containers array( 'name' => esc_html__( 'AJAX Reload Containers', 'noisa' ), 'id' => 'ajax_reload_containers', 'type' => 'textarea', 'tinymce' => 'false', 'std' => '', 'height' => '120', 'desc' => esc_html__( 'Add strings for reloaded containers (Note: divide links with linebreaks (Enter)). These containers will be reloaded after page loaded by AJAX.', 'noisa' ), 'dependency' => array( "element" => 'ajaxed', "value" => array( 'on' ) ) ), // Ajax exclude links array( 'name' => esc_html__( 'AJAX Exclude Links', 'noisa' ), 'id' => 'ajax_exclude_links', 'type' => 'textarea', 'tinymce' => 'false', 'std' => '', 'height' => '120', 'desc' => esc_html__( 'Add links that should be excluded from AJAX loader (Note: divide links with linebreaks (Enter)). These pages will not be loaded by AJAX.', 'noisa' ), 'dependency' => array( "element" => 'ajaxed', "value" => array( 'on' ) ) ), // Ajax events array( 'name' => esc_html__( 'AJAX Events', 'noisa' ), 'id' => 'ajax_events', 'type' => 'textarea', 'tinymce' => 'false', 'std' => '', 'height' => '120', 'desc' => esc_html__( 'Add Javascript events (Note: divide links with linebreaks (Enter)). These events will be removed after page page by AJAX.', 'noisa' ), 'dependency' => array( "element" => 'ajaxed', "value" => array( 'on' ) ) ), array( 'type' => 'sub_close' ), /* Plugins -------------------------------- */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Plugins', 'noisa' ), 'sub_tab_id' => 'sub-plugins' ), // Retina Displays array( 'name' => esc_html__( 'Retina Displays', 'noisa' ), 'id' => 'retina', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'To make this work you need to specify the width and the height of the image directly and provide the same image twice the size withe the @2x selector added at the end of the image name. For instance if you want your "logo.png" file to be retina compatible just include it in the markup with specified width and height ( the width and height of the original image in pixels ) and create a "logo@2x.png" file in the same directory that is twice the resolution.', 'noisa' ), ), // VC Frontend array( 'name' => esc_html__( 'Visual Composer Frontend Editor', 'noisa' ), 'id' => 'vc_frontend', 'type' => 'switch_button', 'plugins' => array( 'switch_button' ), 'std' => 'off', 'desc' => esc_html__( 'Enable Visual Composer frontend editor. Please Note: The editor may not work properly when AJAX is enabled.', 'noisa' ), ), array( 'type' => 'sub_close' ), /* Import/Export -------------------------------- */ array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Import/Export', 'noisa' ), 'sub_tab_id' => 'sub-import' ), array( 'type' => 'export' ), array( 'type' => 'import' ), array( 'type' => 'sub_close' ), array( 'type' => 'close' ), /* ================================================== Outdated ================================================== */ array( 'type' => 'open', 'tab_name' => esc_html__( 'Outdated', 'noisa' ), 'tab_id' => 'outdated', 'icon' => 'warning' ), array( 'type' => 'sub_open', 'sub_tab_name' => esc_html__( 'Outdated Options', 'noisa' ), 'sub_tab_id' => 'sub-outdated' ), array( 'name' => esc_html__( 'CSS Code', 'noisa' ), 'type' => 'textarea', 'std' => '', 'height' => '200', 'desc' => esc_html__( 'Please copy and paste your CSS code to visual customizer. Go to Appearance > Customize > Additional CSS ', 'noisa' ).'<a href="' . admin_url( '/customize.php') . '">Customizer</a>', 'id' => 'custom_css' ), array( 'name' => esc_html__( 'Javascript Code', 'noisa' ), 'type' => 'textarea', 'std' => '', 'height' => '200', 'desc' => esc_html__( 'Please copy and paste your JS code to visual customizer. Go to Appearance > Customize > Additional Javascript ', 'noisa' ).'<a href="' . admin_url( '/customize.php') . '">Customizer</a>', 'id' => 'custom_js' ), array( 'name' => esc_html__( 'Integrate The Fonts Into Your CSS', 'noisa' ), 'id' => 'google_code', 'type' => 'textarea', 'height' => '100', 'std' => '', 'desc' => esc_html__( 'Please copy and paste your CSS code to visual customizer. Go to Appearance > Customize > Additional CSS ', 'noisa' ).'<a href="' . admin_url( '/customize.php') . '">Customizer</a>', ), array( 'type' => 'sub_close' ), array( 'type' => 'close' ), /* ================================================== Hidden fields ================================================== */ array( 'type' => 'hidden_field', 'id' => 'theme_name', 'value' => 'noisa' ), ); /* ================================================== Init Panel ================================================== */ /* Class arguments */ $args = array( 'menu_name' => esc_html__( 'Theme Panel', 'noisa' ), 'option_name' => 'noisa_panel_opts', 'menu_icon' => '', ); /* Add class instance */ $main_panel = new RascalsThemePanel( $args, $noisa_main_options ); /* ================================================== Get Theme Options ================================================== */ function noisa_opts(){ global $main_panel; return $main_panel; }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings