| Server IP : 104.21.28.229 / Your IP : 216.73.216.68 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/domains/mienphi.org/public_html/wp-content/themes/eduma/inc/widgets/social/ |
Upload File : |
<?php
/**
* Thim_Builder Social config class
*
* @version 1.0.0
* @author ThimPress
* @package Thim_Builder/Classes
* @category Classes
* @author Thimpress, tuanta
*/
/**
* Prevent loading this file directly
*/
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'Thim_Builder_Config_Social' ) ) {
/**
* Class Thim_Builder_Config_Accordion
*/
class Thim_Builder_Config_Social extends Thim_Builder_Abstract_Config {
/**
* Thim_Builder_Config_Social constructor.
*/
public function __construct() {
// info
self::$base = 'social';
self::$name = esc_html__( 'Thim: Social', 'eduma' );
self::$desc = esc_html__( 'Display social icon.', 'eduma' );
self::$icon = 'thim-widget-icon thim-widget-icon-social';
parent::__construct();
}
/**
* @return array
*/
public function get_options() {
// options
return array(
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Title', 'eduma' ),
'param_name' => 'title',
),
array(
'type' => 'dropdown',
'admin_label' => true,
'heading' => esc_html__( 'Style', 'eduma' ),
'param_name' => 'style',
'value' => array(
esc_html__( 'Default', 'eduma' ) => '',
esc_html__( 'Style 2', 'eduma' ) => 'style-2',
esc_html__( 'Style 3', 'eduma' ) => 'style-3',
esc_html__( 'Style 4', 'eduma' ) => 'style-4',
),
'std'=>''
),
array(
'type' => 'checkbox',
'admin_label' => true,
'heading' => esc_html__( 'Show label', 'eduma' ),
'param_name' => 'show_label',
'std' => false,
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Facebook Url', 'eduma' ),
'param_name' => 'link_face',
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Twitter Url', 'eduma' ),
'param_name' => 'link_twitter',
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Google Url', 'eduma' ),
'param_name' => 'link_google',
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Dribble Url', 'eduma' ),
'param_name' => 'link_dribble',
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Linkedin Url', 'eduma' ),
'param_name' => 'link_linkedin',
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Pinterest Url', 'eduma' ),
'param_name' => 'link_pinterest',
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Instagram Url', 'eduma' ),
'param_name' => 'link_instagram',
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Youtube Url', 'eduma' ),
'param_name' => 'link_youtube',
),
array(
'type' => 'textfield',
'admin_label' => true,
'heading' => esc_html__( 'Snapchat Url', 'eduma' ),
'param_name' => 'link_snapchat',
),
array(
'type' => 'dropdown',
'admin_label' => true,
'heading' => esc_html__( 'Link Target', 'eduma' ),
'param_name' => 'link_target',
'value' => array(
esc_html__( 'Select', 'eduma' ) => '',
esc_html__( 'Same window', 'eduma' ) => '_self',
esc_html__( 'New window', 'eduma' ) => '_blank',
),
'std' => '_self'
),
);
}
public function get_template_name() {
return 'base';
}
}
}