Example #1
0
    public function enqueue_scripts()
    {
        global $current_user;
        ?>
		<script type="text/javascript" id="current_user">
            var currentUser = <?php 
        if (isset($current_user->ID) && $current_user->ID != 0) {
            echo json_encode($current_user);
        } else {
            echo json_encode(array('id' => 0, 'ID' => 0));
        }
        ?>
;
            var is_mobile = <?php 
        echo json_encode(et_load_mobile());
        ?>
            </script>
        <?php 
        $this->add_script('et-authentication', ae_get_url() . '/social/js/authentication.js', array('jquery', 'underscore', 'backbone', 'appengine'));
        if (is_social_connect_page()) {
            if (!isset($_SESSION)) {
                ob_start();
                @session_start();
            }
            // try to use et session
            $et_session = et_read_session();
            if (isset($et_session['et_auth_type'])) {
                wp_localize_script('et-authentication', 'ae_auth', array('action_auth' => 'et_authentication_' . $et_session['et_auth_type'], 'action_confirm' => 'et_confirm_username_' . $et_session['et_auth_type']));
            } elseif (isset($_SESSION['et_auth_type'])) {
                wp_localize_script('et-authentication', 'ae_auth', array('action_auth' => 'et_authentication_' . $_SESSION['et_auth_type'], 'action_confirm' => 'et_confirm_username_' . $_SESSION['et_auth_type']));
            }
        }
        $this->register_style('social-connect-style', ae_get_url() . '/social/css/default.css');
    }
Example #2
0
    /**
     * render the frame with is used by all page in backend
     */
    function render_frame()
    {
        ?>
		<!-- ================================ -->
		<!-- Admin Frame                      -->
		<!-- ================================ -->
		<div class="wrap">
			<div class="et-body">
				<div class="et-header">
					<div class="logo">
						<a href="http://www.enginethemes.com/"> Powered by <img src="<?php 
        echo ae_get_url();
        ?>
/assets/img/engine-logo.png" /> </a>
					</div>
					<div class="slogan"><span><?php 
        _e('Administration', ET_DOMAIN);
        ?>
</span>. <?php 
        _e('You are an admin. Here you administrate.', ET_DOMAIN);
        ?>
</div>	    	
				</div>
				<div class="et-wrapper clearfix">
					<div class="et-left-column">						
							<?php 
        $this->render_menu();
        ?>
					</div>
					<div id="engine_setting_content" class="et-main-column clearfix">
						<?php 
        // admin page html body
        $this->render();
        ?>

						<?php 
        //if( current_user_can( 'manage_options' ) || is_page_template( 'page-account-listing.php' )){
        echo '<div class="hidden">';
        wp_editor('div_load_tiny', 'div_load_tiny', ae_editor_settings());
        echo '</div>';
        //}
        ?>
					</div>
				</div>
				

				<div class="et-footer"></div>
				<!--
				<div class="et-footer">
					If you have any troubles you can <a  href="javascript:void(0)">watch a video about this page <span class="icon" data-icon="V"></span></a>or  <a href="javascript:void(0)">send us a message <span class="icon" data-icon="M"></span></a>.
				</div>
				-->
			</div>
		</div><!-- wrap -->
		
		<?php 
    }
Example #3
0
 /**
  * register base script
  */
 public function print_scripts()
 {
     $this->add_existed_script('jquery');
     $this->register_script('bootstrap', ae_get_url() . '/assets/js/bootstrap.min.js', array('jquery'), null, TRUE);
     $this->register_script('jquery-validator', ae_get_url() . '/assets/js/jquery.validate.min.js', 'jquery');
     $this->register_script('marionette', ae_get_url() . '/assets/js/marionette.js', array('jquery', 'backbone', 'underscore'), true);
     // ae core js appengine
     $this->register_script('appengine', ae_get_url() . '/assets/js/appengine.js', array('jquery', 'underscore', 'backbone', 'marionette', 'plupload'), TRUE);
     // Loads the Internet Explorer specific stylesheet.
     if (!is_admin()) {
         $this->register_style('bootstrap', ae_get_url() . '/assets/css/bootstrap.min.css', array(), '3.0');
     }
 }
 public function overview_styles()
 {
     $this->add_style('jqplot_style', ae_get_url() . '/assets/css/jquery.jqplot.min.css', array(), false, 'all');
 }
Example #5
0
 function wizard_scripts()
 {
     $this->add_script('ae-wizard', ae_get_url() . '/assets/js/wizard.js', array('jquery', 'appengine'));
     wp_localize_script('ae-wizard', 'ae_wizard', array('insert_sample_data' => __("Insert sample data", ET_DOMAIN), 'delete_sample_data' => __("Delete sample data", ET_DOMAIN), 'insert_fail' => __('Insert sample data false', ET_DOMAIN), 'delete_fail' => __('Delete sample data false', ET_DOMAIN), 'wr_uploading' => __("It would take up to a few minutes for your images to be uploaded to the server. Please don't close or reload this page.")));
 }
Example #6
0
 public function add_scripts()
 {
     //$this->add_script('facebook_auth', '//connect.facebook.net/en_US/all.js', array(), false, true);
     $this->add_script('facebook_auth', ae_get_url() . '/social/js/facebookauth.js', array('jquery'), false, true);
     wp_localize_script('facebook_auth', 'facebook_auth', array('appID' => ae_get_option('et_facebook_key'), 'auth_url' => home_url('?action=authentication')));
 }
Example #7
0
 function ae_editor_settings()
 {
     return apply_filters('ae_editor_settings', array('quicktags' => false, 'media_buttons' => false, 'wpautop' => false, 'teeny' => true, 'tinymce' => array('content_css' => ae_get_url() . '/assets/css/tinyeditor-content.css', 'height' => 250, 'editor_class' => 'input-item', 'autoresize_min_height' => 250, 'autoresize_max_height' => 550, 'theme_advanced_buttons1' => 'bold,|,italic,|,underline,|,bullist,numlist,|,link,unlink,|,wp_fullscreen', 'theme_advanced_buttons2' => '', 'theme_advanced_buttons3' => '', 'theme_advanced_statusbar_location' => 'none', 'theme_advanced_resizing' => true, 'paste_auto_cleanup_on_paste' => true, 'setup' => "function(ed){\n                ed.onChange.add(function(ed, l) {\n                    var content = ed.getContent();\n                    if(ed.isDirty() || content === '' ){\n                        ed.save();\n                        jQuery(ed.getElement()).blur(); // trigger change event for textarea\n                    }\n\n                });\n\n                // We set a tabindex value to the iframe instead of the initial textarea\n                ed.onInit.add(function() {\n                    var editorId = ed.editorId,\n                        textarea = jQuery('#'+editorId);\n                    jQuery('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));\n                    textarea.attr('tabindex', null);\n                });\n            }")));
 }
Example #8
0
 /**
  * register base script
  */
 public function print_scripts()
 {
     $this->add_existed_script('jquery');
     $this->register_script('bootstrap', ae_get_url() . '/assets/js/bootstrap.min.js', array('jquery'), ET_VERSION, true);
     /**
      * bootstrap slider for search form
      */
     $this->register_script('slider-bt', ae_get_url() . '/assets/js/slider-bt.js', array(), true);
     $this->register_script('et-googlemap-api', '//maps.googleapis.com/maps/api/js?sensor=false&signed_in=false', '3.0', true);
     $this->register_script('ae-colorpicker', ae_get_url() . '/assets/js/colorpicker.js', array('jquery'));
     $this->register_script('gmap', ae_get_url() . '/assets/js/gmap.js', array('jquery', 'et-googlemap-api'));
     $this->register_script('marker', ae_get_url() . '/assets/js/marker.js', array('gmap'), true);
     // tam thoi add de xai
     $this->register_script('jquery-validator', ae_get_url() . '/assets/js/jquery.validate.min.js', 'jquery');
     $this->register_script('chosen', ae_get_url() . '/assets/js/chosen.js', 'jquery');
     $this->register_script('jquery.cookie.js', ae_get_url() . '/assets/js/jquery.cookie.js', 'jquery');
     $this->register_script('marionette', ae_get_url() . '/assets/js/marionette.js', array('jquery', 'backbone', 'underscore'), true);
     // ae core js appengine
     $this->register_script('appengine', ae_get_url() . '/assets/js/appengine.js', array('jquery', 'underscore', 'backbone', 'marionette', 'plupload'), true);
     wp_localize_script('chosen', 'raty', array('hint' => array(__('bad', 'aecore-class-ae-framework-backend'), __('poor', 'aecore-class-ae-framework-backend'), __('nice', 'aecore-class-ae-framework-backend'), __('good', 'aecore-class-ae-framework-backend'), __('gorgeous', 'aecore-class-ae-framework-backend'))));
     $adminurl = admin_url('admin-ajax.php');
     if (function_exists('icl_object_id')) {
         $current = ICL_LANGUAGE_CODE;
         $adminurl = admin_url('admin-ajax.php?lang=' . $current);
     }
     $variable = array('ajaxURL' => $adminurl, 'imgURL' => ae_get_url() . '/assets/img/', 'jsURL' => ae_get_url() . '/assets/js/', 'loadingImg' => '<img class="loading loading-wheel" src="' . ae_get_url() . '/assets/img/loading.gif" alt="' . __('Loading...', 'aecore-class-ae-framework-backend') . '">', 'loading' => __('Loading', 'aecore-class-ae-framework-backend'), 'ae_is_mobile' => et_load_mobile() ? 1 : 0, 'plupload_config' => array('max_file_size' => '3mb', 'url' => admin_url('admin-ajax.php'), 'flash_swf_url' => includes_url('js/plupload/plupload.flash.swf'), 'silverlight_xap_url' => includes_url('js/plupload/plupload.silverlight.xap'), 'filters' => array(array('title' => __('Image Files', 'aecore-class-ae-framework-backend'), 'extensions' => 'jpg,jpeg,gif,png'))), 'security_level' => array('danger' => __("danger", 'aecore-class-ae-framework-backend'), 'minimum' => __("minimum", 'aecore-class-ae-framework-backend'), 'medium' => __("medium", 'aecore-class-ae-framework-backend'), 'strong' => __("strong", 'aecore-class-ae-framework-backend')), 'empty_projects' => __("No projects found", 'aecore-class-ae-framework-backend'), 'empty_profiles' => __("No profiles found", 'aecore-class-ae-framework-backend'), 'payment_was_sent' => __("Payment request was sent.", 'aecore-class-ae-framework-backend'), 'fee_and_tax' => __("For you, without taxes and fees", 'aecore-class-ae-framework-backend'), 'validator_messages' => array('paypal' => __("Email address seems invalid", 'aecore-class-ae-framework-backend'), 'user_email' => __("Email address seems invalid", 'aecore-class-ae-framework-backend'), 'max_symbols_mce' => __("Description should be at least 250 symbols", 'aecore-class-ae-framework-backend'), 'interview_dates' => __("Fill some dates", 'aecore-class-ae-framework-backend'), 'interview_contacts' => __("Fill some contacts", 'aecore-class-ae-framework-backend'), 'max_skills' => __("You've added maximum number of skills", 'aecore-class-ae-framework-backend'), 'old_pass_equal_new_error' => __("Your new password matches the old one!", 'aecore-class-ae-framework-backend')), 'profile_completion' => array('name' => __("Fill your full name", 'aecore-class-ae-framework-backend'), 'location' => __('Fill in the "Location"', 'aecore-class-ae-framework-backend'), 'e_mail' => __('Fill in the "E-Mail"', 'aecore-class-ae-framework-backend'), 'paypal' => __('Fill in the "Paypal Account"', 'aecore-class-ae-framework-backend'), 'phone_no' => __('Fill in the "Phone no"', 'aecore-class-ae-framework-backend'), 'prof_title' => __('Fill in the "Professional Title"', 'aecore-class-ae-framework-backend'), 'hourly_rate' => __('Fill in the "Hourly Rate"', 'aecore-class-ae-framework-backend'), 'skills' => __('Fill in the "Skills"', 'aecore-class-ae-framework-backend'), 'country' => __('Fill in the "Country"', 'aecore-class-ae-framework-backend'), 'about' => __('Fill in the "About"', 'aecore-class-ae-framework-backend')), 'homeURL' => home_url(), 'is_submit_post' => is_page_template('page-post-place.php') ? true : false, 'is_submit_project' => is_page_template('page-submit-project.php') ? true : false, 'is_single' => !is_singular('page') && is_singular() ? true : false, 'max_images' => ae_get_option('max_carousel', 5), 'user_confirm' => ae_get_option('user_confirm') ? 1 : 0, 'max_cat' => ae_get_option('max_cat', 3), 'confirm_delete_bid' => __("Are you sure you want to decline this bid?", 'aecore-class-ae-framework-backend'), 'confirm_message' => __("Are you sure to archive this?", 'aecore-class-ae-framework-backend'), 'confirm_message_delete' => __("Are you sure to delete this?", 'aecore-class-ae-framework-backend'), 'confirm_message_decline' => __("Are you sure to decline this?", 'aecore-class-ae-framework-backend'), 'map_zoom' => ae_get_option('map_zoom_default', 8), 'map_center' => ae_get_option('map_center_default', array('latitude' => 10, 'longitude' => 106)), 'fitbounds' => ae_get_option('fitbounds', ''), 'limit_free_msg' => __("You have reached the maximum number of Free posts. Please select another plan.", 'aecore-class-ae-framework-backend'), 'error' => __("Please fill all require fields.", 'aecore-class-ae-framework-backend'), 'geolocation' => ae_get_option('geolocation', 0), 'date_format' => get_option('date_format'), 'time_format' => get_option('time_format'), 'dates' => array('days' => array(__("Sunday", 'aecore-class-ae-framework-backend'), __("Monday", 'aecore-class-ae-framework-backend'), __("Tuesday", 'aecore-class-ae-framework-backend'), __("Wednesday", 'aecore-class-ae-framework-backend'), __("Thursday", 'aecore-class-ae-framework-backend'), __("Friday", 'aecore-class-ae-framework-backend'), __("Saturday", 'aecore-class-ae-framework-backend'), __("Sunday", 'aecore-class-ae-framework-backend')), 'daysShort' => array(__("Sun", 'aecore-class-ae-framework-backend'), __("Mon", 'aecore-class-ae-framework-backend'), __("Tue", 'aecore-class-ae-framework-backend'), __("Wed", 'aecore-class-ae-framework-backend'), __("Thu", 'aecore-class-ae-framework-backend'), __("Fri", 'aecore-class-ae-framework-backend'), __("Sat", 'aecore-class-ae-framework-backend'), __("Sun", 'aecore-class-ae-framework-backend')), 'daysMin' => array(__("Su", 'aecore-class-ae-framework-backend'), __("Mo", 'aecore-class-ae-framework-backend'), __("Tu", 'aecore-class-ae-framework-backend'), __("We", 'aecore-class-ae-framework-backend'), __("Th", 'aecore-class-ae-framework-backend'), __("Fr", 'aecore-class-ae-framework-backend'), __("Sa", 'aecore-class-ae-framework-backend'), __("Su", 'aecore-class-ae-framework-backend')), 'months' => array(__("January", 'aecore-class-ae-framework-backend'), __("February", 'aecore-class-ae-framework-backend'), __("March", 'aecore-class-ae-framework-backend'), __("April", 'aecore-class-ae-framework-backend'), __("May", 'aecore-class-ae-framework-backend'), __("June", 'aecore-class-ae-framework-backend'), __("July", 'aecore-class-ae-framework-backend'), __("August", 'aecore-class-ae-framework-backend'), __("September", 'aecore-class-ae-framework-backend'), __("October", 'aecore-class-ae-framework-backend'), __("November", 'aecore-class-ae-framework-backend'), __("December", 'aecore-class-ae-framework-backend')), 'monthsShort' => array(__("Jan", 'aecore-class-ae-framework-backend'), __("Feb", 'aecore-class-ae-framework-backend'), __("Mar", 'aecore-class-ae-framework-backend'), __("Apr", 'aecore-class-ae-framework-backend'), __("May", 'aecore-class-ae-framework-backend'), __("Jun", 'aecore-class-ae-framework-backend'), __("Jul", 'aecore-class-ae-framework-backend'), __("Aug", 'aecore-class-ae-framework-backend'), __("Sep", 'aecore-class-ae-framework-backend'), __("Oct", 'aecore-class-ae-framework-backend'), __("Nov", 'aecore-class-ae-framework-backend'), __("Dec", 'aecore-class-ae-framework-backend'))));
     $variable['global_map_style'] = AE_Mapstyle::get_instance()->get_current_style();
     $variable = apply_filters('ae_globals', $variable);
     wp_localize_script('appengine', 'ae_globals', $variable);
     /**
      * html5
      */
     echo '<!--[if lt IE 9]>
             <script src="' . ae_get_url() . '/assets/js/html5.js"></script>
         <![endif]-->';
     // Loads the Internet Explorer specific stylesheet.
     if (!is_admin()) {
         $this->register_style('bootstrap', ae_get_url() . '/assets/css/bootstrap.min.css', array(), '3.0');
     }
 }
Example #9
0
 public function on_add_scripts()
 {
     parent::on_add_scripts();
     // default scripts: jquery, backbone, underscore
     $this->add_existed_script('jquery');
     $this->add_existed_script('underscore');
     $this->add_existed_script('backbone');
     $this->add_script('site-core', ae_get_url() . '/assets/js/appengine.js', array('jquery', 'backbone', 'underscore', 'plupload'));
     $this->add_script('site-functions', TEMPLATEURL . '/js/functions.js', array('jquery', 'backbone', 'underscore'));
     $this->add_script('bootstrap', TEMPLATEURL . '/js/libs/bootstrap.min.js');
     $this->add_script('modernizr', TEMPLATEURL . '/js/libs/modernizr.js', array('jquery'));
     //$this->add_script('adjector', 			TEMPLATEURL . '/js/libs/adjector.js','jquery');
     $this->add_script('rotator', TEMPLATEURL . '/js/libs/jquery.simple-text-rotator.min.js', 'jquery');
     $this->add_script('jquery-validator', TEMPLATEURL . '/js/libs/jquery.validate.min.js', 'jquery');
     $this->add_existed_script('jquery-ui-autocomplete');
     //enqueue google recaptcha scripts
     if (ae_get_option('gg_captcha')) {
         $this->add_script('recaptcha', '//www.google.com/recaptcha/api.js');
     }
     if (et_load_mobile()) {
         return;
     } else {
         if (ae_get_option('qa_live_notifications')) {
             $this->add_existed_script('heartbeat');
         }
         $this->add_script('waypoints', TEMPLATEURL . '/js/libs/waypoints.min.js', array('jquery'));
         $this->add_script('waypoints-sticky', TEMPLATEURL . '/js/libs/waypoints-sticky.js', array('jquery', 'waypoints'));
         $this->add_script('chosen', TEMPLATEURL . '/js/libs/chosen.jquery.min.js', array('jquery'));
         $this->add_script('classie', TEMPLATEURL . '/js/libs/classie.js', array('jquery'));
         $this->add_script('site-script', TEMPLATEURL . '/js/scripts.js', 'jquery');
         $this->add_script('site-front', TEMPLATEURL . '/js/front.js', array('jquery', 'underscore', 'backbone', 'site-functions'));
         //localize scripts
         wp_localize_script('site-front', 'qa_front', qa_static_texts());
         if (is_singular('question') || is_singular('answer')) {
             $this->add_script('qa-shcore', TEMPLATEURL . '/js/libs/syntaxhighlighter/shCore.js', array('jquery'));
             $this->add_script('qa-brush-js', TEMPLATEURL . '/js/libs/syntaxhighlighter/shBrushJScript.js', array('jquery', 'qa-shcore'));
             $this->add_script('qa-brush-php', TEMPLATEURL . '/js/libs/syntaxhighlighter/shBrushPhp.js', array('jquery', 'qa-shcore'));
             $this->add_script('qa-brush-css', TEMPLATEURL . '/js/libs/syntaxhighlighter/shBrushCss.js', array('jquery', 'qa-shcore'));
             $this->add_script('single-question', TEMPLATEURL . '/js/single-question.js', array('jquery', 'underscore', 'backbone', 'site-functions', 'site-front'));
         }
         if (is_single()) {
             //enqueue magnific-popup
             $this->add_script('magnific-popup', TEMPLATEURL . '/js/libs/jquery.magnific-popup.min.js', array('jquery'));
         }
         if (is_page_template('page-intro.php')) {
             $this->add_script('intro', TEMPLATEURL . '/js/intro.js', array('jquery', 'underscore', 'backbone', 'site-functions', 'site-front'));
         }
         if (is_author()) {
             $this->add_existed_script('plupload_all');
             $this->add_script('profile', TEMPLATEURL . '/js/profile.js', array('jquery', 'underscore', 'backbone', 'site-functions', 'site-front'));
         }
         if (is_page_template('page-pending.php')) {
             $this->add_script('pending', TEMPLATEURL . '/js/pending.js', array('jquery', 'underscore', 'backbone', 'site-functions', 'site-front'));
         }
     }
 }
Example #10
0
 /**
  * register base script
  */
 public function print_scripts()
 {
     $this->add_existed_script('jquery');
     $this->register_script('bootstrap', ae_get_url() . '/assets/js/bootstrap.min.js', array('jquery'), ET_VERSION, true);
     /**
      * bootstrap slider for search form
      */
     $this->register_script('slider-bt', ae_get_url() . '/assets/js/slider-bt.js', array(), true);
     $this->register_script('et-googlemap-api', '//maps.googleapis.com/maps/api/js?sensor=false&signed_in=false', '3.0', true);
     $this->register_script('ae-colorpicker', ae_get_url() . '/assets/js/colorpicker.js', array('jquery'));
     $this->register_script('gmap', ae_get_url() . '/assets/js/gmap.js', array('jquery', 'et-googlemap-api'));
     $this->register_script('marker', ae_get_url() . '/assets/js/marker.js', array('gmap'), true);
     // tam thoi add de xai
     $this->register_script('jquery-validator', ae_get_url() . '/assets/js/jquery.validate.min.js', 'jquery');
     $this->register_script('chosen', ae_get_url() . '/assets/js/chosen.js', 'jquery');
     $this->register_script('marionette', ae_get_url() . '/assets/js/marionette.js', array('jquery', 'backbone', 'underscore'), true);
     // ae core js appengine
     $this->register_script('appengine', ae_get_url() . '/assets/js/appengine.js', array('jquery', 'underscore', 'backbone', 'marionette', 'plupload'), true);
     wp_localize_script('chosen', 'raty', array('hint' => array(__('bad', ET_DOMAIN), __('poor', ET_DOMAIN), __('nice', ET_DOMAIN), __('good', ET_DOMAIN), __('gorgeous', ET_DOMAIN))));
     $adminurl = admin_url('admin-ajax.php');
     if (function_exists('icl_object_id')) {
         $current = ICL_LANGUAGE_CODE;
         $adminurl = admin_url('admin-ajax.php?lang=' . $current);
     }
     $variable = array('ajaxURL' => $adminurl, 'imgURL' => ae_get_url() . '/assets/img/', 'jsURL' => ae_get_url() . '/assets/js/', 'loadingImg' => '<img class="loading loading-wheel" src="' . ae_get_url() . '/assets/img/loading.gif" alt="' . __('Loading...', ET_DOMAIN) . '">', 'loading' => __('Loading', ET_DOMAIN), 'ae_is_mobile' => et_load_mobile() ? 1 : 0, 'plupload_config' => array('max_file_size' => '3mb', 'url' => admin_url('admin-ajax.php'), 'flash_swf_url' => includes_url('js/plupload/plupload.flash.swf'), 'silverlight_xap_url' => includes_url('js/plupload/plupload.silverlight.xap'), 'filters' => array(array('title' => __('Image Files', ET_DOMAIN), 'extensions' => 'jpg,jpeg,gif,png'))), 'homeURL' => home_url(), 'is_submit_post' => is_page_template('page-post-place.php') ? true : false, 'is_submit_project' => is_page_template('page-submit-project.php') ? true : false, 'is_single' => !is_singular('page') && is_singular() ? true : false, 'max_images' => ae_get_option('max_carousel', 5), 'user_confirm' => ae_get_option('user_confirm') ? 1 : 0, 'max_cat' => ae_get_option('max_cat', 3), 'confirm_message' => __("Are you sure to archive this?", ET_DOMAIN), 'map_zoom' => ae_get_option('map_zoom_default', 8), 'map_center' => ae_get_option('map_center_default', array('latitude' => 10, 'longitude' => 106)), 'fitbounds' => ae_get_option('fitbounds', ''), 'limit_free_msg' => __("You have reached the maximum number of Free posts. Please select another plan.", ET_DOMAIN), 'error' => __("Please fill all require fields.", ET_DOMAIN), 'geolocation' => ae_get_option('geolocation', 0), 'date_format' => get_option('date_format'), 'time_format' => get_option('time_format'), 'dates' => array('days' => array(__("Sunday", ET_DOMAIN), __("Monday", ET_DOMAIN), __("Tuesday", ET_DOMAIN), __("Wednesday", ET_DOMAIN), __("Thursday", ET_DOMAIN), __("Friday", ET_DOMAIN), __("Saturday", ET_DOMAIN), __("Sunday", ET_DOMAIN)), 'daysShort' => array(__("Sun", ET_DOMAIN), __("Mon", ET_DOMAIN), __("Tue", ET_DOMAIN), __("Wed", ET_DOMAIN), __("Thu", ET_DOMAIN), __("Fri", ET_DOMAIN), __("Sat", ET_DOMAIN), __("Sun", ET_DOMAIN)), 'daysMin' => array(__("Su", ET_DOMAIN), __("Mo", ET_DOMAIN), __("Tu", ET_DOMAIN), __("We", ET_DOMAIN), __("Th", ET_DOMAIN), __("Fr", ET_DOMAIN), __("Sa", ET_DOMAIN), __("Su", ET_DOMAIN)), 'months' => array(__("January", ET_DOMAIN), __("February", ET_DOMAIN), __("March", ET_DOMAIN), __("April", ET_DOMAIN), __("May", ET_DOMAIN), __("June", ET_DOMAIN), __("July", ET_DOMAIN), __("August", ET_DOMAIN), __("September", ET_DOMAIN), __("October", ET_DOMAIN), __("November", ET_DOMAIN), __("December", ET_DOMAIN)), 'monthsShort' => array(__("Jan", ET_DOMAIN), __("Feb", ET_DOMAIN), __("Mar", ET_DOMAIN), __("Apr", ET_DOMAIN), __("May", ET_DOMAIN), __("Jun", ET_DOMAIN), __("Jul", ET_DOMAIN), __("Aug", ET_DOMAIN), __("Sep", ET_DOMAIN), __("Oct", ET_DOMAIN), __("Nov", ET_DOMAIN), __("Dec", ET_DOMAIN))));
     $variable['global_map_style'] = AE_Mapstyle::get_instance()->get_current_style();
     $variable = apply_filters('ae_globals', $variable);
     wp_localize_script('appengine', 'ae_globals', $variable);
     /**
      * html5
      */
     echo '<!--[if lt IE 9]>
             <script src="' . ae_get_url() . '/assets/js/html5.js"></script>
         <![endif]-->';
     // Loads the Internet Explorer specific stylesheet.
     if (!is_admin()) {
         $this->register_style('bootstrap', ae_get_url() . '/assets/css/bootstrap.min.css', array(), '3.0');
     }
 }