file update
This commit is contained in:
parent
065d8999d4
commit
f6ab1e99ed
@ -271,6 +271,17 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
||||
'no' => 'No'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_load_flaticon_from_theme',
|
||||
'label' => __('Load Flat Icon From Theme?', 'mage-eventpress'),
|
||||
'desc' => __('If the icons are not working, and you want to remove Flat Icon load from the plugin select Yes', 'mage-eventpress'),
|
||||
'type' => 'select',
|
||||
'default' => 'no',
|
||||
'options' => array(
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_speed_up_list_page',
|
||||
'label' => __('Speed up the Event List Page Loading?', 'mage-eventpress'),
|
||||
|
@ -10,7 +10,8 @@ add_action('admin_enqueue_scripts', 'mep_add_admin_scripts', 10, 1);
|
||||
function mep_add_admin_scripts($hook)
|
||||
{
|
||||
global $post;
|
||||
$user_api = mep_get_option('google-map-api', 'general_setting_sec', '');
|
||||
$user_api = mep_get_option('google-map-api', 'general_setting_sec', '');
|
||||
$flaticonLoad = mep_get_option('mep_load_flaticon_from_theme', 'general_setting_sec', 'no');
|
||||
|
||||
/**
|
||||
* Load Only when the New Event Add Page Open.
|
||||
@ -45,7 +46,9 @@ function mep_add_admin_scripts($hook)
|
||||
wp_enqueue_style('jquery.modal.min', plugin_dir_url(__DIR__) . 'css/jquery.modal.min.css', array(), 1.0);
|
||||
|
||||
//flaticon
|
||||
if($flaticonLoad == 'no'){
|
||||
wp_enqueue_style('flaticon', plugin_dir_url(__DIR__) . 'fonts/flaticon/flaticon.css');
|
||||
}
|
||||
|
||||
/**
|
||||
* Enquue Admin Scripts
|
||||
@ -98,6 +101,7 @@ function mep_event_enqueue_scripts()
|
||||
{
|
||||
$owlThemeLoad = mep_get_option('mep_load_carousal_from_theme', 'carousel_setting_sec', 'no');
|
||||
$fontAwesoneLoad = mep_get_option('mep_load_fontawesome_from_theme', 'general_setting_sec', 'no');
|
||||
$flaticonLoad = mep_get_option('mep_load_flaticon_from_theme', 'general_setting_sec', 'no');
|
||||
|
||||
wp_enqueue_script('jquery');
|
||||
wp_enqueue_script('jquery-ui-datepicker');
|
||||
@ -107,6 +111,7 @@ function mep_event_enqueue_scripts()
|
||||
wp_enqueue_style('mep-event-style', plugin_dir_url(__DIR__) . 'css/style.css', array(),time());
|
||||
wp_enqueue_style('filter_pagination', plugin_dir_url(__DIR__) . 'css/filter_pagination.css', array());
|
||||
wp_enqueue_style('mep-event-timeline-min-style', plugin_dir_url(__DIR__) . 'css/timeline.min.css', array('mep-event-style'));
|
||||
|
||||
if($fontAwesoneLoad == 'no'){
|
||||
wp_enqueue_style('font-awesome-css-cdn', "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css", null, 1);
|
||||
wp_enqueue_style('font-awesome-css-cdn-5.2.0', "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.2.0/css/all.min.css", null, 1);
|
||||
@ -130,7 +135,9 @@ function mep_event_enqueue_scripts()
|
||||
wp_enqueue_script('mep-event-faq', plugin_dir_url(__DIR__) . 'js/mep_event_faq.js', array('jquery'), 1.0, true);
|
||||
|
||||
//flaticon
|
||||
wp_enqueue_style('flaticon', plugin_dir_url(__DIR__) . 'fonts/flaticon/flaticon.css');
|
||||
if($flaticonLoad == 'no'){
|
||||
wp_enqueue_style('flaticon', plugin_dir_url(__DIR__) . 'fonts/flaticon/flaticon.css');
|
||||
}
|
||||
|
||||
if($owlThemeLoad == 'no'){
|
||||
wp_enqueue_style('mep-event-owl-carousal-main-style', plugin_dir_url(__DIR__) . 'css/owl.carousel.min.css', array('mep-event-style'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user