Guest User

admin.php

a guest
Oct 24th, 2020
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. defined( 'ABSPATH' ) or die();
  3. require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/helpers/wl-companion-helper.php' );
  4. require ( 'wl-wc-menu.php' );
  5.  
  6. $theme_name = wl_companion_helper::wl_get_theme_name();
  7.  
  8. if ( $theme_name == 'Nineteen' ) {
  9.  
  10.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/nineteen-customizer-scripts.php' );
  11.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/general-settings.php' );
  12.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/slider-section.php' );
  13.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/service-section.php' );
  14.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/portfolio-section.php' );
  15.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/blog-section.php' );
  16.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/team-section.php' );
  17.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/client-section.php' );
  18.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/footer-section.php' );
  19.     //require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/header-footer-scripts.php' );
  20.  
  21.     /* Customizer scripts */
  22.     add_action( 'customize_controls_enqueue_scripts', array( 'nineteen_Customizer_scripts', 'wl_customizer_enqueue' ) );
  23.  
  24.     /* General Customizer Settings */
  25.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_nineteen_general_customizer' ) );
  26.  
  27.     /* Slider Customizer Settings */
  28.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_nineteen_slider_customizer' ) );
  29.  
  30.     /* Service Customizer Settings */
  31.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_nineteen_service_customizer' ) );
  32.  
  33.     /* Portfolio Customizer Settings */
  34.     add_action( 'customize_register', array( 'wl_portfolio_customizer', 'wl_nineteen_portfolio_customizer' ) );
  35.  
  36.     /* Blog Customizer Settings */
  37.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_nineteen_blog_customizer' ) );
  38.  
  39.     /* Team Customizer Settings */
  40.     add_action( 'customize_register', array( 'wl_team_customizer', 'wl_nineteen_team_customizer' ) );
  41.  
  42.     /* Client Customizer Settings */
  43.     add_action( 'customize_register', array( 'wl_client_customizer', 'wl_nineteen_client_customizer' ) );
  44.  
  45.     /* Footer Customizer Settings */
  46.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_nineteen_footer_customizer' ) );
  47.  
  48.     /* Header Footer Scripts */
  49.     //add_action( 'customize_register', array( 'wl_header_footer_scripts_customizer', 'wl_hfs_customizer' ) );
  50.  
  51. } elseif ( $theme_name == 'ProBizz' ) {
  52.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/nineteen-customizer-scripts.php' );
  53.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/general-settings.php' );
  54.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/slider-section.php' );
  55.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/contact-section.php' );
  56.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/details-section.php' );
  57.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/service-section.php' );
  58.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/blog-section.php' );
  59.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/team-section.php' );
  60.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/client-section.php' );
  61.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/footer-section.php' );
  62.  
  63.     /* Customizer scripts */
  64.     add_action( 'customize_controls_enqueue_scripts', array( 'nineteen_Customizer_scripts', 'wl_customizer_enqueue' ) );
  65.  
  66.     /* General Customizer Settings */
  67.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_nineteen_general_customizer' ) );
  68.  
  69.     /* Slider Customizer Settings */
  70.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_nineteen_slider_customizer' ) );
  71.  
  72.     /* Contact Customizer Settings */
  73.     add_action( 'customize_register', array( 'wl_contact_customizer', 'wl_nineteen_contact_customizer' ) );
  74.  
  75.     /* Service Customizer Settings */
  76.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_nineteen_service_customizer' ) );
  77.  
  78.     /* Details Customizer Settings */
  79.     add_action( 'customize_register', array( 'wl_details_customizer', 'wl_nineteen_details_customizer' ) );
  80.  
  81.     /* Blog Customizer Settings */
  82.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_nineteen_blog_customizer' ) );
  83.  
  84.     /* Footer Customizer Settings */
  85.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_nineteen_footer_customizer' ) );
  86. }
  87. elseif ( $theme_name == 'GrowBizz' ) {
  88.  
  89.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/nineteen-customizer-scripts.php' );
  90.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/general-settings.php' );
  91.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/slider-section.php' );
  92.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/contact-section.php' );
  93.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/service-section.php' );
  94.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/blog-section.php' );
  95.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/team-section.php' );
  96.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/client-section.php' );
  97.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/footer-section.php' );
  98.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/portfolio-section.php' );
  99.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/nineteen/features/about-section.php' );
  100.  
  101.     /* Customizer scripts */
  102.     add_action( 'customize_controls_enqueue_scripts', array( 'nineteen_Customizer_scripts', 'wl_customizer_enqueue' ) );
  103.  
  104.     /* General Customizer Settings */
  105.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_nineteen_general_customizer' ) );
  106.  
  107.     /* Slider Customizer Settings */
  108.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_nineteen_slider_customizer' ) );
  109.  
  110.     /* Contact Customizer Settings */
  111.     add_action( 'customize_register', array( 'wl_contact_customizer', 'wl_nineteen_contact_customizer' ) );
  112.  
  113.     /* Service Customizer Settings */
  114.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_nineteen_service_customizer' ) );
  115.  
  116.     /* Blog Customizer Settings */
  117.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_nineteen_blog_customizer' ) );
  118.  
  119.     /* Footer Customizer Settings */
  120.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_nineteen_footer_customizer' ) );
  121.  
  122.     /* Portfolio Customizer Settings */
  123.     add_action( 'customize_register', array( 'wl_portfolio_customizer', 'wl_nineteen_portfolio_customizer' ) );
  124.  
  125.     /* about section Customizer settings */
  126.     add_action( 'customize_register', array( 'wl_about_customizer', 'wl_nineteen_about_customizer' ) );
  127.  
  128. } elseif ( $theme_name == 'weblogs') {
  129.  
  130.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/weblogs/metaboxes.php' );
  131.  
  132. } elseif ( $theme_name == 'Travelogged' ) {
  133.  
  134.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/travelogged/travelogged-customizer-scripts.php' );
  135.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/travelogged/features/slider-section.php' );
  136.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/travelogged/features/service-section.php' );
  137.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/travelogged/features/team-section.php' );
  138.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/travelogged/features/destination-section.php' );
  139.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/travelogged/features/blog-section.php' );
  140.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/travelogged/features/subscribe-section.php' );
  141.  
  142.     /* Customizer scripts */
  143.     add_action( 'customize_controls_enqueue_scripts', array( 'travelogged_Customizer_scripts', 'wl_customizer_enqueue' ) );
  144.  
  145.     /* Slider Customizer Settings */
  146.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_travelogged_slider_customizer' ) );
  147.  
  148.     /* Service Customizer Settings */
  149.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_travelogged_service_customizer' ) );
  150.  
  151.     /* Team Customizer Settings */
  152.     add_action( 'customize_register', array( 'wl_team_customizer_new', 'wl_travelogged_team_customizer_new' ) );
  153.  
  154.     /* Destination Customizer Settings */
  155.     add_action( 'customize_register', array( 'wl_destination_customizer', 'wl_travelogged_destination_customizer' ) );
  156.  
  157.     /* Blog Customizer Settings */
  158.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_travelogged_blog_customizer' ) );
  159.  
  160.     /* Subscribe Customizer Settings */
  161.     add_action( 'customize_register', array( 'wl_subscribe_customizer', 'wl_travelogged_subscribe_customizer' ) );
  162.  
  163. } elseif ( $theme_name == 'Bitstream' ) {
  164.    
  165.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/bitstream/bitstream-customizer-scripts.php' );
  166.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/bitstream/features/general-settings.php' );
  167.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/bitstream/features/top-header-section.php' );
  168.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/bitstream/features/slider-section.php' );
  169.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/bitstream/features/service-section.php' );
  170.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/bitstream/features/portfolio-section.php' );
  171.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/bitstream/features/blog-section.php' );
  172.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/bitstream/features/footer-section.php' );
  173.  
  174.     /* Customizer scripts */
  175.     add_action( 'customize_controls_enqueue_scripts', array( 'bitstream_Customizer_scripts', 'wl_customizer_enqueue' ) );
  176.  
  177.     /* General Customizer Settings */
  178.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_bitstream_general_customizer' ) );
  179.  
  180.     /* Top Header Customizer Settings */
  181.     add_action( 'customize_register', array( 'wl_topheader_customizer', 'wl_bitstream_topheader_customizer' ) );
  182.  
  183.     /* Slider Customizer Settings */
  184.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_bitstream_slider_customizer' ) );
  185.  
  186.     /* Service Customizer Settings */
  187.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_bitstream_service_customizer' ) );
  188.  
  189.     /* Portfolio Customizer Settings */
  190.     add_action( 'customize_register', array( 'wl_portfolio_customizer', 'wl_bitstream_portfolio_customizer' ) );
  191.  
  192.     /* Blog Customizer Settings */
  193.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_bitstream_blog_customizer' ) );
  194.  
  195.     /* Footer Customizer Settings */
  196.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_bitstream_footer_customizer' ) );
  197.  
  198. } elseif ( $theme_name == 'Enigma' || $theme_name == 'cista'|| $theme_name == 'Greenigma'|| $theme_name == 'Oculis'|| $theme_name == 'Presto'|| $theme_name == 'Inferno' || $theme_name == 'Enigma Child' ) {
  199.  
  200.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/enigma-customizer-scripts.php' );
  201.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/general-settings.php' );
  202.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/slider-section.php' );
  203.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/service-section.php' );
  204.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/portfolio-section.php' );
  205.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/blog-section.php' );
  206.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/extra-section.php' );
  207.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/social-section.php' );
  208.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/footer-callout-section.php' );
  209.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/footer-section.php' );
  210.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma/features/layout-section.php' );
  211.  
  212.     /* Customizer scripts */
  213.     add_action( 'customize_controls_enqueue_scripts', array( 'enigma_Customizer_scripts', 'wl_customizer_enqueue' ) );
  214.  
  215.     /* General Customizer Settings */
  216.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_enigma_general_customizer' ) );
  217.     /* Slider Customizer Settings */
  218.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_enigma_slider_customizer' ) );
  219.  
  220.     /* Service Customizer Settings */
  221.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_enigma_service_customizer' ) );
  222.  
  223.     /* Portfolio Customizer Settings */
  224.     add_action( 'customize_register', array( 'wl_portfolio_customizer', 'wl_enigma_portfolio_customizer' ) );
  225.  
  226.     /* Blog Customizer Settings */
  227.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_enigma_blog_customizer' ) );
  228.     /* Extra Settings */
  229.     add_action( 'customize_register', array( 'wl_extra_customizer', 'wl_enigma_extra_customizer' ) );
  230.  
  231.     /* Social Settings */
  232.     add_action( 'customize_register', array( 'wl_social_customizer', 'wl_enigma_social_customizer' ) );
  233.  
  234.     /* Footer Callout Settings */
  235.     add_action( 'customize_register', array( 'wl_footer_callout_customizer', 'wl_enigma_footer_callout_customizer' ) );
  236.  
  237.     /* Footer Customizer Settings */
  238.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_enigma_footer_customizer' ) );
  239.     /* Layout Customizer Settings */
  240.     add_action( 'customize_register', array( 'wl_layout_customizer', 'wl_enigma_layout_customizer' ) );
  241.  
  242. } elseif ( $theme_name == 'Enigma Parallax' ) {
  243.  
  244.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/enigma-customizer-scripts.php' );
  245.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/general-settings.php' );
  246.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/slider-section.php' );
  247.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/service-section.php' );
  248.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/portfolio-section.php' );
  249.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/blog-section.php' );
  250.    
  251.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/social-section.php' );
  252.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/footer-callout-section.php' );
  253.  
  254.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/footer-section.php' );
  255.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/layout-section.php' );
  256.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/enigma-parallax/features/team-section.php' );
  257.  
  258.  
  259.     /* Customizer scripts */
  260.     add_action( 'customize_controls_enqueue_scripts', array( 'enigma_parallax_Customizer_scripts', 'wl_customizer_enqueue' ) );
  261.  
  262.     /* General Customizer Settings */
  263.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_enigma_parallax_general_customizer' ) );
  264.     /* Slider Customizer Settings */
  265.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_enigma_parallax_slider_customizer' ) );
  266.  
  267.     /* Service Customizer Settings */
  268.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_enigma_parallax_service_customizer' ) );
  269.  
  270.     /* Portfolio Customizer Settings */
  271.     add_action( 'customize_register', array( 'wl_portfolio_customizer', 'wl_enigma_parallax_portfolio_customizer' ) );
  272.     /* Team Customizer Settings */
  273.     add_action( 'customize_register', array( 'wl_team_customizer', 'wl_enigma_team_customizer' ) );
  274.     /* Blog Customizer Settings */
  275.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_enigma_parallax_blog_customizer' ) );
  276.     /* Social Settings */
  277.     add_action( 'customize_register', array( 'wl_social_customizer', 'wl_enigma_parallax_social_customizer' ) );
  278.  
  279.     /* Footer Callout Settings */
  280.     add_action( 'customize_register', array( 'wl_footer_callout_customizer', 'wl_enigma_parallax_footer_callout_customizer' ) );
  281.  
  282.     /* Footer Customizer Settings */
  283.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_enigma_parallax_footer_customizer' ) );
  284.     /* Layout Customizer Settings */
  285.     add_action( 'customize_register', array( 'wl_layout_customizer', 'wl_enigma_parallax_layout_customizer' ) );
  286.  
  287.    
  288.  
  289. } elseif ( $theme_name == 'Weblizar' ) {
  290.  
  291.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/weblizar/weblizar-customizer-scripts.php' );
  292.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/weblizar/features/general-settings.php' );
  293.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/weblizar/features/slider-section.php' );
  294.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/weblizar/features/service-section.php' );
  295.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/weblizar/features/blog-section.php' );
  296.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/weblizar/features/social-section.php' );
  297.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/weblizar/features/footer-section.php' );
  298.    
  299.     /* Customizer scripts */
  300.     add_action( 'customize_controls_enqueue_scripts', array( 'weblizar_Customizer_scripts', 'wl_customizer_enqueue' ) );
  301.  
  302.     /* General Customizer Settings */
  303.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_wl_general_customizer' ) );
  304.     /* Slider Customizer Settings */
  305.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_wl_slider_customizer' ) );
  306.  
  307.     /* Service Customizer Settings */
  308.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_wl_service_customizer' ) );
  309.  
  310.     /* Blog Customizer Settings */
  311.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_wl_blog_customizer' ) );
  312.    
  313.     /* Social Settings */
  314.     add_action( 'customize_register', array( 'wl_social_customizer', 'wl_wl_social_customizer' ) );
  315.  
  316.     /* Footer Customizer Settings */
  317.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_wl_footer_customizer' ) );
  318.    
  319. } elseif ( $theme_name == 'Guardian' || $theme_name == 'teckzy' ) {
  320.     wl_companion_helper::wl_add_import_menu();
  321.  
  322.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/guardian-customizer-scripts.php' );
  323.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/features/general-settings.php' );
  324.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/features/slider-section.php' );
  325.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/features/service-section.php' );
  326.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/features/blog-section.php' );
  327.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/features/extra-section.php' );
  328.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/features/social-section.php' );
  329.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/features/footer-section.php' );
  330.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/guardian/features/layout-section.php' );
  331.  
  332.     /* Customizer scripts */
  333.     add_action( 'customize_controls_enqueue_scripts', array( 'guardian_Customizer_scripts', 'wl_customizer_enqueue' ) );
  334.  
  335.     /* General Customizer Settings */
  336.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_guardian_general_customizer' ) );
  337.     /* Slider Customizer Settings */
  338.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_guardian_slider_customizer' ) );
  339.  
  340.     /* Service Customizer Settings */
  341.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_guardian_service_customizer' ) );
  342.  
  343.     /* Blog Customizer Settings */
  344.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_guardian_blog_customizer' ) );
  345.     /* Extra Settings */
  346.     add_action( 'customize_register', array( 'wl_extra_customizer', 'wl_guardian_extra_customizer' ) );
  347.  
  348.     /* Social Settings */
  349.     add_action( 'customize_register', array( 'wl_social_customizer', 'wl_guardian_social_customizer' ) );
  350.  
  351.     /* Footer Customizer Settings */
  352.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_guardian_footer_customizer' ) );
  353.     /* Layout Customizer Settings */
  354.     add_action( 'customize_register', array( 'wl_layout_customizer', 'wl_guardian_layout_customizer' ) );
  355. }
  356.  elseif ( $theme_name == 'Creative' || $theme_name == 'inventive' ) {
  357.     wl_companion_helper::wl_add_import_menu();
  358.  
  359.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/creative-customizer-scripts.php' );
  360.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/general-settings.php' );
  361.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/slider-section.php' );
  362.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/service-section.php' );
  363.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/portfolio-section.php' );
  364.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/blog-section.php' );
  365.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/social-section.php' );
  366.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/footer-callout-section.php' );
  367.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/footer-section.php' );
  368.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/creative/features/layout-section.php' );
  369.  
  370.     /* Customizer scripts */
  371.     add_action( 'customize_controls_enqueue_scripts', array( 'creative_Customizer_scripts', 'wl_customizer_enqueue' ) );
  372.  
  373.     /* General Customizer Settings */
  374.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_creative_general_customizer' ) );
  375.     /* Slider Customizer Settings */
  376.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_creative_slider_customizer' ) );
  377.  
  378.     /* Service Customizer Settings */
  379.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_creative_service_customizer' ) );
  380.  
  381.     /* Portfolio Customizer Settings */
  382.     add_action( 'customize_register', array( 'wl_portfolio_customizer', 'wl_creative_portfolio_customizer' ) );
  383.  
  384.     /* Blog Customizer Settings */
  385.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_creative_blog_customizer' ) );
  386.  
  387.     /* Social Settings */
  388.     add_action( 'customize_register', array( 'wl_social_customizer', 'wl_creative_social_customizer' ) );
  389.  
  390.     /* Footer Callout Settings */
  391.     add_action( 'customize_register', array( 'wl_footer_callout_customizer', 'wl_creative_footer_callout_customizer' ) );
  392.  
  393.     /* Footer Customizer Settings */
  394.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_creative_footer_customizer' ) );
  395.     /* Layout Customizer Settings */
  396.     add_action( 'customize_register', array( 'wl_layout_customizer', 'wl_creative_layout_customizer' ) );  
  397. }
  398.  elseif ( $theme_name == 'Explora' ) {
  399.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/explora-customizer-scripts.php' );
  400.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/features/general-settings.php' );
  401.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/features/slider-section.php' );
  402.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/features/service-section.php' );
  403.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/features/portfolio-section.php' );
  404.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/features/blog-section.php' );
  405.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/features/social-section.php' );
  406.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/features/footer-section.php' );
  407.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/explora/features/layout-section.php' );
  408.  
  409.     /* Customizer scripts */
  410.     add_action( 'customize_controls_enqueue_scripts', array( 'explora_Customizer_scripts', 'wl_customizer_enqueue' ) );
  411.  
  412.     /* General Customizer Settings */
  413.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_explora_general_customizer' ) );
  414.     /* Slider Customizer Settings */
  415.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_explora_slider_customizer' ) );
  416.  
  417.     /* Service Customizer Settings */
  418.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_explora_service_customizer' ) );
  419.  
  420.     /* Portfolio Customizer Settings */
  421.     add_action( 'customize_register', array( 'wl_portfolio_customizer', 'wl_explora_portfolio_customizer' ) );
  422.  
  423.     /* Blog Customizer Settings */
  424.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_explora_blog_customizer' ) );
  425.  
  426.     /* Social Settings */
  427.     add_action( 'customize_register', array( 'wl_social_customizer', 'wl_explora_social_customizer' ) );
  428.  
  429.     /* Footer Customizer Settings */
  430.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_explora_footer_customizer' ) );
  431.     /* Layout Customizer Settings */
  432.     add_action( 'customize_register', array( 'wl_layout_customizer', 'wl_explora_layout_customizer' ) );
  433.  
  434.    
  435. }  
  436. elseif ( $theme_name == 'scoreline' ) {
  437.     wl_companion_helper::wl_add_import_menu();
  438.  
  439.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/scoreline-customizer-scripts.php' );
  440.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/general-settings.php' );
  441.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/slider-section.php' );
  442.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/service-section.php' );
  443.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/extra-section.php' );
  444.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/blog-section.php' );
  445.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/social-section.php' );
  446.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/footer-callout-section.php' );
  447.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/footer-section.php' );
  448.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/scoreline/features/layout-section.php' );
  449.  
  450.     /* Customizer scripts */
  451.     add_action( 'customize_controls_enqueue_scripts', array( 'scoreline_Customizer_scripts', 'wl_customizer_enqueue' ) );
  452.  
  453.     /* General Customizer Settings */
  454.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_scoreline_general_customizer' ) );
  455.  
  456.     /* Slider Customizer Settings */
  457.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_scoreline_slider_customizer' ) );
  458.  
  459.     /* Service Customizer Settings */
  460.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_scoreline_service_customizer' ) );
  461.  
  462.     /* Extra Settings */
  463.     add_action( 'customize_register', array( 'wl_extra_customizer', 'wl_scoreline_extra_customizer' ) );
  464.  
  465.     /* Blog Customizer Settings */
  466.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_scoreline_blog_customizer' ) );
  467.  
  468.     /* Social Settings */
  469.     add_action( 'customize_register', array( 'wl_social_customizer', 'wl_scoreline_social_customizer' ) );
  470.  
  471.     /* Footer Callout Settings */
  472.     add_action( 'customize_register', array( 'wl_footer_callout_customizer', 'wl_scoreline_footer_callout_customizer' ) );
  473.  
  474.     /* Footer Customizer Settings */
  475.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_scoreline_footer_customizer' ) );
  476.  
  477.     /* Layout Customizer Settings */
  478.     add_action( 'customize_register', array( 'wl_layout_customizer', 'wl_scoreline_layout_customizer' ) );
  479.  
  480. }elseif ( $theme_name == 'Green-Lantern' ) {
  481.  
  482.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/green-lantern/green-lantern-customizer-scripts.php' );
  483.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/green-lantern/features/general-settings.php' );
  484.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/green-lantern/features/slider-section.php' );
  485.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/green-lantern/features/service-section.php' );
  486.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/green-lantern/features/blog-section.php' );
  487.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/green-lantern/features/social-section.php' );
  488.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/green-lantern/features/footer-section.php' );
  489.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/controllers/green-lantern/features/layout-section.php' );
  490.  
  491.     /* Customizer scripts */
  492.     add_action( 'customize_controls_enqueue_scripts', array( 'green_lantern_Customizer_scripts', 'wl_customizer_enqueue' ) );
  493.  
  494.     /* General Customizer Settings */
  495.     add_action( 'customize_register', array( 'wl_general_customizer', 'wl_green_lantern_general_customizer' ) );
  496.  
  497.     /* Slider Customizer Settings */
  498.     add_action( 'customize_register', array( 'wl_slider_customizer', 'wl_green_lantern_slider_customizer' ) );
  499.  
  500.     /* Service Customizer Settings */
  501.     add_action( 'customize_register', array( 'wl_service_customizer', 'wl_green_lantern_service_customizer' ) );
  502.  
  503.     /* Blog Customizer Settings */
  504.     add_action( 'customize_register', array( 'wl_blog_customizer', 'wl_green_lantern_blog_customizer' ) );
  505.  
  506.     /* Social Settings */
  507.     add_action( 'customize_register', array( 'wl_social_customizer', 'wl_green_lantern_social_customizer' ) );
  508.  
  509.     /* Footer Customizer Settings */
  510.     add_action( 'customize_register', array( 'wl_footer_customizer', 'wl_green_lantern_footer_customizer' ) );
  511.  
  512.     /* Layout Customizer Settings */
  513.     add_action( 'customize_register', array( 'wl_layout_customizer', 'wl_green_lantern_layout_customizer' ) );
  514.  
  515. } elseif ( $theme_name == 'enigma-parallax' || $theme_name == 'Enigma' || $theme_name == 'Weblizar' || $theme_name == 'Creative' || $theme_name == 'Explora' || $theme_name == 'Guardian' || $theme_name == 'HealthCare' ) {
  516.     wl_companion_helper::wl_add_import_menu();
  517. } elseif ( $theme_name == 'Enigma Premium' ) {
  518.     add_action( 'admin_menu', array( 'WL_WC_ImportExportMenu', 'pro_theme_menu' ) );
  519. } elseif ( $theme_name == 'Enigma-Premium-Advance' ) {
  520.     add_action( 'admin_menu', array( 'WL_WC_ImportExportMenu', 'pro_theme_menu' ) );
  521. } elseif ( $theme_name == 'Enigma-Pro-Parallax' ) {
  522.     add_action( 'admin_menu', array( 'WL_WC_ImportExportMenu', 'pro_theme_menu' ) );
  523. } else {
  524.     wl_companion_helper::wl_add_import_menu_child();
  525. }
RAW Paste Data