Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/themes/code4rest/inc/customizer/options/general-social-options.php
Ðазад
<?php /** * Header Builder Options * * @package Code4rest */ namespace Code4rest; use Code4rest\Theme_Customizer; use function Code4rest\code4rest; ob_start(); ?> <div class="code4rest-compontent-description"> <h2><?php echo esc_html__( 'Social Network Links', 'code4rest' ); ?></h2> </div> <?php $compontent_description = ob_get_clean(); $settings = array( 'social_settings' => array( 'control_type' => 'code4rest_blank_control', 'section' => 'general_social', 'settings' => false, 'priority' => 1, 'description' => $compontent_description, ), 'facebook_link' => array( 'control_type' => 'code4rest_text_control', 'sanitize' => 'esc_url_raw', 'section' => 'general_social', 'default' => code4rest()->default( 'facebook_link' ), 'label' => esc_html__( 'Facebook', 'code4rest' ), ), 'twitter_link' => array( 'control_type' => 'code4rest_text_control', 'sanitize' => 'esc_url_raw', 'section' => 'general_social', 'default' => code4rest()->default( 'twitter_link' ), 'label' => esc_html__( 'Twitter', 'code4rest' ), ), 'instagram_link' => array( 'control_type' => 'code4rest_text_control', 'sanitize' => 'esc_url_raw', 'section' => 'general_social', 'default' => code4rest()->default( 'instagram_link' ), 'label' => esc_html__( 'Instagram', 'code4rest' ), ), 'youtube_link' => array( 'control_type' => 'code4rest_text_control', 'sanitize' => 'esc_url_raw', 'section' => 'general_social', 'default' => code4rest()->default( 'youtube_link' ), 'label' => esc_html__( 'YouTube', 'code4rest' ), ), 'vimeo_link' => array( 'control_type' => 'code4rest_text_control', 'sanitize' => 'esc_url_raw', 'section' => 'general_social', 'default' => code4rest()->default( 'vimeo_link' ), 'label' => esc_html__( 'Vimeo', 'code4rest' ), ), 'facebook_group_link' => array( 'control_type' => 'code4rest_text_control', 'sanitize' => 'esc_url_raw', 'section' => 'general_social', 'default' => code4rest()->default( 'facebook_group_link' ), 'label' => esc_html__( 'Facebook Group', 'code4rest' ), ), 'pinterest_link' => array( 'control_type' => 'code4rest_text_control', 'sanitize' => 'esc_url_raw', 'section' => 'general_social', 'default' => code4rest()->default( 'pinterest_link' ), 'label' => esc_html__( 'Pinterest', 'code4rest' ), ), 'linkedin_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'linkedin_link' ), 'label' => esc_html__( 'Linkedin', 'code4rest' ), ), 'dribbble_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'dribbble_link' ), 'label' => esc_html__( 'Dribbble', 'code4rest' ), ), 'behance_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'behance_link' ), 'label' => esc_html__( 'Behance', 'code4rest' ), ), 'patreon_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'patreon_link' ), 'label' => esc_html__( 'Patreon', 'code4rest' ), ), 'reddit_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'reddit_link' ), 'label' => esc_html__( 'Reddit', 'code4rest' ), ), 'medium_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'medium_link' ), 'label' => esc_html__( 'medium', 'code4rest' ), ), 'wordpress_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'wordpress_link' ), 'label' => esc_html__( 'WordPress', 'code4rest' ), ), 'github_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'github_link' ), 'label' => esc_html__( 'GitHub', 'code4rest' ), ), 'vk_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'vk_link' ), 'label' => esc_html__( 'VK', 'code4rest' ), ), 'xing_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'xing_link' ), 'label' => esc_html__( 'Xing', 'code4rest' ), ), 'rss_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'rss_link' ), 'label' => esc_html__( 'RSS', 'code4rest' ), ), 'google_reviews_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'google_reviews_link' ), 'label' => esc_html__( 'Google Reviews', 'code4rest' ), ), 'yelp_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'yelp_link' ), 'label' => esc_html__( 'Yelp', 'code4rest' ), ), 'trip_advisor_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'trip_advisor_link' ), 'label' => esc_html__( 'Trip Advisor', 'code4rest' ), ), 'imdb_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'imdb_link' ), 'label' => esc_html__( 'IMDB', 'code4rest' ), ), 'whatsapp_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'whatsapp_link' ), 'label' => esc_html__( 'WhatsApp', 'code4rest' ), ), 'telegram_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'telegram_link' ), 'label' => esc_html__( 'Telegram', 'code4rest' ), ), 'soundcloud_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'soundcloud_link' ), 'label' => esc_html__( 'SoundCloud', 'code4rest' ), ), 'tumblr_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'tumblr_link' ), 'label' => esc_html__( 'Tumblr', 'code4rest' ), ), 'tiktok_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'tiktok_link' ), 'label' => esc_html__( 'Tiktok', 'code4rest' ), ), 'discord_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'discord_link' ), 'label' => esc_html__( 'Discord', 'code4rest' ), ), 'spotify_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'spotify_link' ), 'label' => esc_html__( 'Spotify', 'code4rest' ), ), 'apple_podcasts_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'apple_podcasts_link' ), 'label' => esc_html__( 'Apple Podcast', 'code4rest' ), ), 'flickr_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'flickr_link' ), 'label' => esc_html__( 'Flickr', 'code4rest' ), ), '500px_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( '500px_link' ), 'label' => esc_html__( '500PX', 'code4rest' ), ), 'bandcamp_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'bandcamp_link' ), 'label' => esc_html__( 'Bandcamp', 'code4rest' ), ), 'anchor_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'anchor_link' ), 'label' => esc_html__( 'Anchor', 'code4rest' ), ), 'email_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'sanitize_text_field', 'default' => code4rest()->default( 'email_link' ), 'label' => esc_html__( 'Email', 'code4rest' ), ), 'phone_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'sanitize_text_field', 'default' => code4rest()->default( 'phone_link' ), 'label' => esc_html__( 'Phone', 'code4rest' ), ), 'custom1_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'custom1_link' ), 'label' => esc_html__( 'Custom 1', 'code4rest' ), ), 'custom2_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'custom2_link' ), 'label' => esc_html__( 'Custom 2', 'code4rest' ), ), 'custom3_link' => array( 'control_type' => 'code4rest_text_control', 'section' => 'general_social', 'sanitize' => 'esc_url_raw', 'default' => code4rest()->default( 'custom3_link' ), 'label' => esc_html__( 'Custom 3', 'code4rest' ), ), ); Theme_Customizer::add_settings( $settings );
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка