PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
social-share
/
dashboard
/
admin
<?php if ( ! function_exists( 'webon_core_add_page_social_share_options' ) ) { /** * Function that add general options for this module */ function webon_core_add_page_social_share_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => WEBON_CORE_OPTIONS_NAME, 'type' => 'admin', 'slug' => 'social-share', 'icon' => 'fa fa-book', 'title' => esc_html__( 'Social Share', 'webon-core' ), 'description' => esc_html__( 'Global Social Share Options', 'webon-core' ) ) ); if ( $page ) { $social_networks = webon_core_social_networks_list(); foreach ( $social_networks as $network => $params ) { $page->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_enable_share_' . $network, 'title' => sprintf( esc_html__( 'Enable %s Share', 'webon-core' ), $params['label'] ), 'default_value' => 'yes' ) ); if ( $network == 'twitter' ) { $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_twitter_via', 'title' => esc_html__( 'Twitter Via Text', 'webon-core' ), 'default_value' => esc_html__( '@QodeInteractive', 'webon-core' ), 'dependency' => array( 'show' => array( 'qodef_enable_share_twitter' => array( 'values' => 'yes', 'default_value' => 'yes' ) ) ) ) ); } } // Hook to include additional options after module options do_action( 'webon_core_action_after_social_share_options_map', $page ); } } add_action( 'webon_core_action_default_options_init', 'webon_core_add_page_social_share_options', webon_core_get_admin_options_map_position( 'social-share' ) ); }
[+]
..
[-] social-share-options.php
[edit]