@@ 683-687 (lines=5) @@ | ||
680 | // get some style |
|
681 | if ( apply_filters( 'FHEE_enable_default_espresso_css', FALSE ) ) { |
|
682 | // first check uploads folder |
|
683 | if ( is_readable( get_stylesheet_directory() . EE_Config::get_current_theme() . DS . 'archive-espresso_events.css' )) { |
|
684 | wp_register_style( 'archive-espresso_events', get_stylesheet_directory_uri() . EE_Config::get_current_theme() . DS . 'archive-espresso_events.css', array( 'dashicons', 'espresso_default' )); |
|
685 | } else { |
|
686 | wp_register_style( 'archive-espresso_events', EE_TEMPLATES_URL . EE_Config::get_current_theme() . DS . 'archive-espresso_events.css', array( 'dashicons', 'espresso_default' )); |
|
687 | } |
|
688 | if ( is_readable( get_stylesheet_directory() . EE_Config::get_current_theme() . DS . 'archive-espresso_events.js' )) { |
|
689 | wp_register_script( 'archive-espresso_events', get_stylesheet_directory_uri() . EE_Config::get_current_theme() . DS . 'archive-espresso_events.js', array( 'jquery-masonry' ), '1.0', TRUE ); |
|
690 | } else { |
@@ 481-485 (lines=5) @@ | ||
478 | } |
|
479 | wp_enqueue_style('espresso_default'); |
|
480 | ||
481 | if (is_readable(get_stylesheet_directory() . EE_Config::get_current_theme() . DS . 'style.css')) { |
|
482 | wp_register_style('espresso_style', |
|
483 | get_stylesheet_directory_uri() . EE_Config::get_current_theme() . DS . 'style.css', |
|
484 | array('dashicons', 'espresso_default')); |
|
485 | } else { |
|
486 | wp_register_style('espresso_style', |
|
487 | EE_TEMPLATES_URL . EE_Config::get_current_theme() . DS . 'style.css', |
|
488 | array('dashicons', 'espresso_default')); |