Guest User

public.php

a guest
Oct 24th, 2020
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. defined( 'ABSPATH' ) or die();
  4. require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'admin/inc/helpers/wl-companion-helper.php' );
  5.  
  6. $theme_name = wl_companion_helper::wl_get_theme_name();
  7.  
  8. if ( $theme_name == 'Nineteen' ) {
  9.  
  10.     /* Custom scripts*/
  11.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/nineteen/wl-scripts.php' );
  12.     add_action( 'wp_footer', array( 'wl_companion_scripts', 'wl_companion_scripts_frontend' ) );
  13.  
  14.     /* Slider Html */
  15.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/nineteen/slider-section.php' );
  16.     add_action( 'wl_companion_slider', array( 'wl_companion_sliders', 'wl_companion_sliders_html' ) );
  17.  
  18.     /* Service Html */
  19.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/nineteen/service-section.php' );
  20.     add_action( 'wl_companion_service', array( 'wl_companion_services', 'wl_companion_services_html' ) );
  21.  
  22.     /* Portfolio Html */
  23.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/nineteen/portfolio-section.php' );
  24.     add_action( 'wl_companion_portfolio', array( 'wl_companion_portfolios', 'wl_companion_portfolios_html' ) );
  25.  
  26.     /* Client Html */
  27.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/nineteen/client-section.php' );
  28.     add_action( 'wl_companion_client', array( 'wl_companion_clients', 'wl_companion_clients_html' ) );
  29.  
  30.     /* Team Html */
  31.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/nineteen/team-section.php' );
  32.     add_action( 'wl_companion_team', array( 'wl_companion_teams', 'wl_companion_teams_html' ) );
  33.  
  34. } elseif ( $theme_name == 'Travelogged' ) {
  35.  
  36.     /* Slider Html */
  37.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/travelogged/slider-section.php' );
  38.     add_action( 'wl_companion_slider_travel', array( 'wl_companion_slider_travel', 'wl_companion_slider_travel_html' ) );
  39.  
  40.     /* Service Html */
  41.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/travelogged/service-section.php' );
  42.     add_action( 'wl_companion_services_travel', array( 'wl_companion_services_travel', 'wl_companion_services_travel_html' ) );
  43.  
  44.     /* Destination Html */
  45.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/travelogged/destination-section.php' );
  46.     add_action( 'wl_companion_destination_travel', array( 'wl_companion_destination_travel', 'wl_companion_destination_travel_html' ) );
  47.  
  48.     /* Team Html */
  49.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/travelogged/team-section.php' );
  50.     add_action( 'wl_companion_team_travel', array( 'wl_companion_team_travel', 'wl_companion_team_travel_html' ) );
  51.  
  52.     /* Subscribe Html */
  53.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/travelogged/subscribe-section.php' );
  54.     add_action( 'wl_companion_subscribe_travel', array( 'wl_companion_subscribe_travel', 'wl_companion_subscribe_travel_html' ) );
  55.  
  56.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/travelogged/front-end-scripts.php' );
  57.     add_action( 'wp_enqueue_scripts', array( 'wlcm_frontend_scripts', 'frontend_enqueue_assets' ) );
  58.  
  59.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/travelogged/subscribe-ajax-action.php' );
  60.     add_action( 'wp_ajax_nopriv_wlc_subscribe_form', array( 'SubscribeFormAjax', 'subscribe_form_action' ) );
  61.     add_action( 'wp_ajax_wlc_subscribe_form', array( 'SubscribeFormAjax', 'subscribe_form_action' ) );
  62.  
  63. } elseif ( $theme_name == 'Bitstream' ) {
  64.  
  65.     /* Slider Html */
  66.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/bitstream/slider-section.php' );
  67.     add_action( 'wl_companion_slider_bitstream', array( 'wl_companion_sliders_bitstream', 'wl_companion_sliders_bitstream_html' ) );
  68.    
  69.     /* Service Html */
  70.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/bitstream/service-section.php' );
  71.     add_action( 'wl_companion_service_bitstream', array( 'wl_companion_services_bitstream', 'wl_companion_services_bitstream_html' ) );
  72.  
  73.     /* Portfolio Html */
  74.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/bitstream/portfolio-section.php' );
  75.     add_action( 'wl_companion_portfolio_bitstream', array( 'wl_companion_portfolios_bitstream', 'wl_companion_portfolios_bitstream_html' ) );
  76. }
  77. elseif ( $theme_name == 'Enigma'|| $theme_name == 'Greenigma' || $theme_name == 'cista' || $theme_name == 'Oculis'|| $theme_name == 'Presto'|| $theme_name == 'Inferno' || $theme_name == 'Enigma Child' ) {
  78.  
  79.     /* Slider Html */
  80.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/enigma/slider-section.php' );
  81.     add_action( 'wl_companion_slider_enigma', array( 'wl_companion_sliders_enigma', 'wl_companion_sliders_enigma_html' ) );
  82.    
  83.     /* Service Html */
  84.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/enigma/service-section.php' );
  85.     add_action( 'wl_companion_service_enigma', array( 'wl_companion_services_enigma', 'wl_companion_services_enigma_html' ) );
  86.  
  87.     /* Portfolio Html */
  88.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/enigma/portfolio-section.php' );
  89.     add_action( 'wl_companion_portfolio_enigma', array( 'wl_companion_portfolios_enigma', 'wl_companion_portfolios_enigma_html' ) );
  90. }
  91. elseif ( $theme_name == 'Enigma Parallax' ) {
  92.  
  93.     /* Slider Html */
  94.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/enigma-parallax/slider-section.php' );
  95.     add_action( 'wl_companion_slider_enigma_parallax', array( 'wl_companion_sliders_enigma_parallax', 'wl_companion_sliders_enigma_parallax_html' ) );
  96.    
  97.     /* Service Html */
  98.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/enigma-parallax/service-section.php' );
  99.     add_action( 'wl_companion_service_enigma_parallax', array( 'wl_companion_services_enigma_parallax', 'wl_companion_services_enigma_parallax_html' ) );
  100.  
  101.     /* Portfolio Html */
  102.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/enigma-parallax/portfolio-section.php' );
  103.     add_action( 'wl_companion_portfolio_enigma_parallax', array( 'wl_companion_portfolios_enigma_parallax', 'wl_companion_portfolios_enigma_parallax_html' ) );
  104.  
  105.     /* Team Html */
  106.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/enigma-parallax/team-section.php' );
  107.     add_action( 'wl_companion_team', array( 'wl_companion_teams', 'wl_companion_teams_html' ) );
  108. }
  109. elseif ( $theme_name == 'Weblizar' ) {
  110.  
  111.     /* Slider Html */
  112.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/weblizar/slider-section.php' );
  113.     add_action( 'wl_companion_slider_wl', array( 'wl_companion_sliders_wl', 'wl_companion_sliders_wl_html' ) );
  114.    
  115.     /* Service Html */
  116.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/weblizar/service-section.php' );
  117.     add_action( 'wl_companion_service_wl', array( 'wl_companion_services_wl', 'wl_companion_services_wl_html' ) );
  118. }
  119.  
  120. elseif ( $theme_name == 'Guardian' || $theme_name == 'teckzy' ) {
  121.  
  122.     /* Slider Html */
  123.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/guardian/slider-section.php' );
  124.     add_action( 'wl_companion_slider_guardian', array( 'wl_companion_sliders_guardian', 'wl_companion_sliders_guardian_html' ) );
  125.    
  126.     /* Service Html */
  127.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/guardian/service-section.php' );
  128.     add_action( 'wl_companion_service_guardian', array( 'wl_companion_services_guardian', 'wl_companion_services_guardian_html' ) );
  129. }
  130.  
  131. elseif ( $theme_name == 'Creative'|| $theme_name == 'inventive' ) {
  132.  
  133.     /* Slider Html */
  134.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/creative/slider-section.php' );
  135.     add_action( 'wl_companion_slider_creative', array( 'wl_companion_sliders_creative', 'wl_companion_sliders_creative_html' ) );
  136.    
  137.     /* Service Html */
  138.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/creative/service-section.php' );
  139.     add_action( 'wl_companion_service_creative', array( 'wl_companion_services_creative', 'wl_companion_services_creative_html' ) );
  140.  
  141.     /* Portfolio Html */
  142.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/creative/portfolio-section.php' );
  143.     add_action( 'wl_companion_portfolio_creative', array( 'wl_companion_portfolios_creative', 'wl_companion_portfolios_creative_html' ) );
  144. }
  145.  
  146. elseif ( $theme_name == 'Explora' ) {
  147.  
  148.     /* Slider Html */
  149.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/explora/slider-section.php' );
  150.     add_action( 'wl_companion_slider_explora', array( 'wl_companion_sliders_explora', 'wl_companion_sliders_explora_html' ) );
  151.    
  152.     /* Service Html */
  153.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/explora/service-section.php' );
  154.     add_action( 'wl_companion_service_explora', array( 'wl_companion_services_explora', 'wl_companion_services_explora_html' ) );
  155.  
  156.     /* Portfolio Html */
  157.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/explora/portfolio-section.php' );
  158.     add_action( 'wl_companion_portfolio_explora', array( 'wl_companion_portfolios_explora', 'wl_companion_portfolios_explora_html' ) );
  159. }
  160. elseif ( $theme_name == 'scoreline' ) {
  161.     /* Slider Html */
  162.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/scoreline/slider-section.php' );
  163.     add_action( 'wl_companion_slider_scoreline', array( 'wl_companion_sliders_scoreline', 'wl_companion_sliders_scoreline_html' ) );
  164.    
  165.     /* Service Html */
  166.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/scoreline/service-section.php' );
  167.     add_action( 'wl_companion_service_scoreline', array( 'wl_companion_services_scoreline', 'wl_companion_services_scoreline_html' ) );
  168. }
  169. elseif ( $theme_name == 'Green-Lantern' ) {
  170.     /* Slider Html */
  171.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/green-lantern/slider-section.php' );
  172.     add_action( 'wl_companion_slider_green_lantern', array( 'wl_companion_sliders_green_lantern', 'wl_companion_sliders_green_lantern_html' ) );
  173.    
  174.     /* Service Html */
  175.     require_once( WL_COMPANION_PLUGIN_DIR_PATH . 'public/inc/green-lantern/service-section.php' );
  176.     add_action( 'wl_companion_service_green_lantern', array( 'wl_companion_services_green_lantern', 'wl_companion_services_green_lantern_html' ) );
  177. }
  178. ?>
RAW Paste Data