Sindbad~EG File Manager
<?php
if (!defined('ABSPATH')) exit; // Exit if accessed directly
define('ImicFrameworkPath', dirname(__FILE__));
include_once (ABSPATH . 'wp-admin/includes/plugin.php');
/*
* Here you include files which is required by theme
*/
require_once (ImicFrameworkPath . '/theme-functions.php');
/* Taxonomy Fields
==================================================*/
require_once (ImicFrameworkPath . '/term_color_picker.php');
require_once (ImicFrameworkPath . '/extra_category_field.php');
/* META BOX FRAMEWORK
================================================== */
require_once (ImicFrameworkPath . '/barebones-config.php');
require_once (ImicFrameworkPath . '/welcome.php');
/* Meta Boxes Field
==================================================*/
require_once (ImicFrameworkPath . '/post_meta.php');
require_once (ImicFrameworkPath . '/meta-boxes.php');
/* MEGA MENU
================================================== */
require_once (ImicFrameworkPath . '/megamenu/megamenu.php');
/* PLUGIN INCLUDES
================================================== */
require_once (ImicFrameworkPath . '/tgm/class-tgm-plugin-activation.php');
require_once (ImicFrameworkPath . '/tgm/plugin-includes.php');
/* LOAD STYLESHEETS
================================================== */
if (!function_exists('imic_enqueue_styles'))
{
function imic_enqueue_styles()
{
$options = get_option('imic_options');
$theme_info = wp_get_theme();
$event_feature = (isset($options['enable_event_feature'])) ? $options['enable_event_feature'] : '1';
$sermon_feature = (isset($options['enable_sermon_feature'])) ? $options['enable_sermon_feature'] : '1';
$color_scheme = (isset($options['theme_color_scheme']))?$options['theme_color_scheme']:'';
wp_register_style('imic_bootstrap', IMIC_THEME_PATH . '/assets/css/bootstrap.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('fontawesome', IMIC_THEME_PATH . '/assets/css/font-awesome.min.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('fontawesome-shims', IMIC_THEME_PATH . '/assets/css/font-awesome-v4-shims.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_owl1', IMIC_THEME_PATH . '/assets/vendor/owl-carousel/css/owl.carousel.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_owl2', IMIC_THEME_PATH . '/assets/vendor/owl-carousel/css/owl.theme.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_animations', IMIC_THEME_PATH . '/assets/css/animations.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_lineicons', IMIC_THEME_PATH . '/assets/css/line-icons.min.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic-gfont1', '//fonts.googleapis.com/css?family=Roboto:400,700,300', array() , NULL, 'all');
wp_register_style('imic-gfont2', '//fonts.googleapis.com/css?family=Volkhov:400,400italic', array() , NULL, 'all');
wp_register_style('imic-gfont3', '//fonts.googleapis.com/css?family=Clicker+Script', array() , NULL, 'all');
wp_register_style('imic_bootstrap_theme', IMIC_THEME_PATH . '/assets/css/bootstrap-theme.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_main', get_stylesheet_uri() , array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_prettyPhoto', IMIC_THEME_PATH . '/assets/vendor/prettyphoto/css/prettyPhoto.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_magnific', IMIC_THEME_PATH . '/assets/vendor/magnific/magnific-popup.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_mediaelement', IMIC_THEME_PATH . '/assets/vendor/mediaelement/mediaelementplayer.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_nivo_default', IMIC_THEME_PATH . '/assets/vendor/nivoslider/themes/default/default.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_nivo_slider', IMIC_THEME_PATH . '/assets/vendor/nivoslider/nivo-slider.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_custom_css', IMIC_THEME_PATH . '/assets/css/custom.php', array() , NULL, 'all');
wp_register_style('theme-colors', IMIC_THEME_PATH . '/assets/colors/' . $color_scheme, array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_fullcalendar_css', IMIC_THEME_PATH . '/assets/vendor/fullcalendar/fullcalendar.css', array() , $theme_info->get('Version') , 'all');
wp_register_style('imic_fullcalendar_print', IMIC_THEME_PATH . '/assets/vendor/fullcalendar/fullcalendar.print.css', array() , $theme_info->get('Version') , 'print');
wp_register_style('imic_rtl_css', IMIC_THEME_PATH . '/assets/rtl.css', array() , $theme_info->get('Version') , 'all');
//**Enqueue STYLESHEETPATH**//
wp_enqueue_style('imic_bootstrap');
wp_enqueue_style('imic_bootstrap_theme');
wp_enqueue_style('fontawesome');
wp_enqueue_style('fontawesome-shims');
wp_enqueue_style('imic_animations');
wp_enqueue_style('imic_lineicons');
wp_enqueue_style('imic_main');
$heading_font_family = (isset($options['subpage_header_desc_typo']['font-family'])) ? $options['subpage_header_desc_typo']['font-family'] : '';
$body_font_family = (isset($options['body_font_typo']['font-family'])) ? $options['body_font_typo']['font-family'] : '';
if ($heading_font_family == '')
{
wp_enqueue_style('imic_gfont2');
}
if ($body_font_family == '')
{
wp_enqueue_style('imic-gfont1');
}
if (isset($options['switch_lightbox']) && $options['switch_lightbox'] == 0)
{
wp_enqueue_style('imic_prettyPhoto');
}
elseif (isset($options['switch_lightbox']) && $options['switch_lightbox'] == 1)
{
wp_enqueue_style('imic_magnific');
}
wp_enqueue_style('imic_mediaelement');
if (isset($options['theme_color_type']) && $options['theme_color_type'] == 0)
{
wp_enqueue_style('theme-colors');
}
elseif(!(isset($options['theme_color_type'])))
{
wp_enqueue_style('theme-colors-default', IMIC_THEME_PATH . '/assets/colors/color1.css', array() , $theme_info->get('Version') , 'all');
}
if (isset($options['enable_rtl']) && $options['enable_rtl'] == 1)
{
wp_enqueue_style('imic_rtl_css');
}
//**End Enqueue STYLESHEETPATH**//
}
add_action('wp_enqueue_scripts', 'imic_enqueue_styles', 99);
}
if (!function_exists('imic_enqueue_scripts'))
{
function imic_enqueue_scripts()
{
$options = get_option('imic_options');
$event_feature = (isset($options['enable_event_feature'])) ? $options['enable_event_feature'] : '1';
$sermon_feature = (isset($options['enable_sermon_feature'])) ? $options['enable_sermon_feature'] : '1';
$gmap_api_key = (isset($options['google_map_api'])) ? $options['google_map_api'] : '';
$theme_info = wp_get_theme();
$monthNamesValue = (isset($options['calendar_month_name']))?$options['calendar_month_name']:'';
$monthNames = (empty($monthNamesValue)) ? array() : explode(',', trim($monthNamesValue));
$monthNamesShortValue = (isset($options['calendar_month_name_short']))?$options['calendar_month_name_short']:'';
$monthNamesShort = (empty($monthNamesShortValue)) ? array() : explode(',', trim($monthNamesShortValue));
$dayNamesValue = (isset($options['calendar_day_name']))?$options['calendar_day_name']:'';
$dayNames = (empty($dayNamesValue)) ? array() : explode(',', trim($dayNamesValue));
$dayNamesShortValue = (isset($options['calendar_day_name_short']))?$options['calendar_day_name_short']:'';
$dayNamesShort = (empty($dayNamesShortValue)) ? array() : explode(',', trim($dayNamesShortValue));
$facebook = (isset($options['share_icon']))?$options['share_icon'][1]:'';
$twitter = (isset($options['share_icon']))?$options['share_icon'][2]:'';
$google = (isset($options['share_icon']))?$options['share_icon'][3]:'';
$tumblr = (isset($options['share_icon']))?$options['share_icon'][4]:'';
$pinterest = (isset($options['share_icon']))?$options['share_icon'][5]:'';
$reddit = (isset($options['share_icon']))?$options['share_icon'][6]:'';
$linkedin = (isset($options['share_icon']))?$options['share_icon'][8]:'';
$email_share = (isset($options['share_icon']))?$options['share_icon'][8]:'';
$invalid_name = esc_html__('You must enter your name', 'framework');
$invalid_email = esc_html__('You must enter your email', 'framework');
$forwarding = esc_html__('Your details are getting forwarded to the Event Manager', 'framework');
$processing = esc_html__('Processing...', 'framework');
$booked = esc_html__('Booked', 'framework');
$print = esc_html__('Print', 'framework');
$detail_sent = esc_html__('Event details has been sent to your email', 'framework');
//**register script**//
wp_register_script('imic_jquery_modernizr', IMIC_THEME_PATH . '/assets/js/modernizr.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_owl_carousel', IMIC_THEME_PATH . '/assets/vendor/owl-carousel/js/owl.carousel.min.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_owl_carousel_init', IMIC_THEME_PATH . '/assets/vendor/owl-carousel/js/owl.carousel.init.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_prettyphoto', IMIC_THEME_PATH . '/assets/vendor/prettyphoto/js/prettyphoto.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_magnific', IMIC_THEME_PATH . '/assets/vendor/magnific/jquery.magnific-popup.min.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_helper_plugins', IMIC_THEME_PATH . '/assets/js/helper-plugins.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_bootstrap', IMIC_THEME_PATH . '/assets/js/bootstrap.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_init', IMIC_THEME_PATH . '/assets/js/init.js', array('imic_jquery_flexslider') , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_home', IMIC_THEME_PATH . '/assets/js/home.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_header', IMIC_THEME_PATH . '/assets/js/header.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_google_map', '//maps.google.com/maps/api/js?sensor=false&key=' . $gmap_api_key, array() , $theme_info->get('Version') , true);
wp_register_script('imic_gmap', IMIC_THEME_PATH . '/assets/js/googleMap.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_flexslider', IMIC_THEME_PATH . '/assets/vendor/flexslider/js/jquery.flexslider.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_countdown', IMIC_THEME_PATH . '/assets/vendor/countdown/js/jquery.countdown.min.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_jquery_mediaelement_and_player', IMIC_THEME_PATH . '/assets/vendor/mediaelement/mediaelement-and-player.min.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_fullcalendar', IMIC_THEME_PATH . '/assets/vendor/fullcalendar/fullcalendar.min.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_gcal', IMIC_THEME_PATH . '/assets/vendor/fullcalendar/gcal.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_calender_events', IMIC_THEME_PATH . '/assets/js/calender_events.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_nivo_slider', IMIC_THEME_PATH . '/assets/vendor/nivoslider/jquery.nivo.slider.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_contact_event_manager', IMIC_THEME_PATH . '/assets/js/event.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_contact_map', IMIC_THEME_PATH . '/assets/js/contact-map.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_counter_init', IMIC_THEME_PATH . '/assets/js/counter_init.js', array() , $theme_info->get('Version') , true);
wp_register_script('imic_calender_updated', IMIC_THEME_PATH . '/assets/vendor/fullcalendar/lib/moment.min.js', array() , $theme_info->get('Version') , false);
//**End register script**//
//**Enqueue script**//
if($event_feature == '1'){
wp_enqueue_script('imic_calender_updated');
}
wp_enqueue_script('imic_jquery_modernizr');
wp_enqueue_script('jquery');
if (isset($options['switch_lightbox']) && $options['switch_lightbox'] == 0)
{
wp_enqueue_script('imic_jquery_prettyphoto');
}
elseif (isset($options['switch_lightbox']) && $options['switch_lightbox'] == 1)
{
wp_enqueue_script('imic_jquery_magnific');
}
wp_enqueue_script('imic_jquery_helper_plugins');
wp_enqueue_script('imic_jquery_bootstrap');
wp_enqueue_script('imic_jquery_init');
if (isset($options['switch_sticky_header']) && $options['switch_sticky_header'] == 1)
{
wp_enqueue_script('imic_header');
}
wp_enqueue_script('imic_jquery_mediaelement_and_player');
wp_enqueue_script('imic_google_map');
wp_localize_script('imic_jquery_init', 'urlajax_adore', array(
'facebook' => $facebook,
'twitter' => $twitter,
'google' => $google,
'tumblr' => $tumblr,
'pinterest' => $pinterest,
'reddit' => $reddit,
'linkedin' => $linkedin,
'email' => $email_share
));
if($event_feature == '1'){
wp_enqueue_script('imic_contact_event_manager');
wp_localize_script('imic_contact_event_manager', 'ajax', array(
'url' => admin_url('admin-ajax.php') ,
'name' => $invalid_name,
'emails' => $invalid_email,
'forwards' => $forwarding,
'process' => $processing,
'book' => $booked,
'prints' => $print,
'sending' => $detail_sent,
'single' => ''
));
}
if (is_singular() && comments_open() && get_option('thread_comments'))
{
wp_enqueue_script('comment-reply');
}
//**End Enqueue script**//
}
add_action('wp_enqueue_scripts', 'imic_enqueue_scripts');
}
/* LOAD BACKEND SCRIPTS
================================================== */
function imic_admin_scripts()
{
$theme_info = wp_get_theme();
wp_register_script('imic-admin-functions', IMIC_THEME_PATH . '/assets/js/imic_admin.js', 'jquery', $theme_info->get('Version'), true);
wp_enqueue_script('imic-admin-scripts-new', IMIC_THEME_PATH . '/assets/js/imi-plugins.js', 'jquery', $theme_info->get('Version'), true);
wp_localize_script('imic-admin-scripts-new', 'vals', array(
'siteurl' => esc_url(site_url('wp-admin/admin.php?page=imi-admin-welcome'))
));
wp_enqueue_script('imic-admin-functions');
wp_localize_script('imic-admin-functions', 'admin', array(
'url' => admin_url('admin-ajax.php')
));
wp_enqueue_style('adorechurch-admin-style', IMIC_THEME_PATH . '/assets/css/admin-pages.css', array() , $theme_info->get('Version'), 'all');
if (isset($_REQUEST['taxonomy']))
{
wp_register_script('imic-upload', IMIC_THEME_PATH . '/assets/js/imic-upload.js', 'jquery', $theme_info->get('Version'), true);
wp_enqueue_media();
wp_enqueue_script('imic-upload');
}
}
add_action('admin_enqueue_scripts', 'imic_admin_scripts');
/* LOAD BACKEND STYLE
================================================== */
function imic_admin_styles()
{
$theme_info = wp_get_theme();
add_editor_style(IMIC_THEME_PATH . '/assets/css/font-awesome.min.css', array() , $theme_info->get('Version'), 'all');
add_editor_style(IMIC_THEME_PATH . '/assets/css/font-awesome-v4-shims.css', array() , $theme_info->get('Version'), 'all');
}
add_action('admin_head', 'imic_admin_styles');
/* LOAD Page Builder Prebuilt Pages
================================================== */
require_once (ImicFrameworkPath . '/page-builder/page-builder.php');
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists