| Current Path : /home/ereika83/www/wp-content/plugins/genesis-club-pro/classes/ |
| Current File : /home/ereika83/www/wp-content/plugins/genesis-club-pro/classes/class-utils-pro.php |
<?php
class Genesis_Club_Utils_Pro extends Genesis_Club_Utils {
const FONT_AWESOME_VERSION = '4.6.3';
const FONT_AWESOME_URL = '//maxcdn.bootstrapcdn.com/font-awesome/%1$s/css/font-awesome.min.css';
function register_icons_font() {
global $wp_styles;
wp_enqueue_style( 'font-awesome', sprintf(self::FONT_AWESOME_URL, self::FONT_AWESOME_VERSION), array(), self::FONT_AWESOME_VERSION, 'all' );
wp_enqueue_style('font-awesome-ie7', plugins_url('styles/font-awesome-ie7.min.css', dirname(__FILE__)), array(), self::FONT_AWESOME_VERSION, 'all');
$wp_styles->add_data('font-awesome-ie7', 'conditional', 'lte IE 7');
}
function register_tabbed_widget_area($widget_area='') {
wp_enqueue_style('tabbed-widget-area', plugins_url('styles/tabbed-widgets.css',dirname(__FILE__)), null);
wp_enqueue_script('tabbed-widget-area', plugins_url('scripts/jquery.tabbed-widgets.js',dirname(__FILE__)), array('jquery'), null, true);
if ($widget_area) {
wp_localize_script( 'tabbed-widget-area', 'genesis_club_tabbed_widget_area', array('selector' => $widget_area) );
add_action ('wp_print_footer_scripts', array($this, 'execute_tabbed_widget_area_script'), 30);
}
}
function execute_tabbed_widget_area_script() {
print <<< SCRIPT
<script>
jQuery(document).ready ( function ($) {
if (typeof genesis_club_tabbed_widget_area != "undefined")
$(genesis_club_tabbed_widget_area.selector).genesis_club_tabbed_widgets();
});
</script>
SCRIPT;
}
}