| @@ 157-161 (lines=5) @@ | ||
| 154 | // get some style |
|
| 155 | if ( apply_filters( 'FHEE_enable_default_espresso_css', TRUE ) && is_single() ) { |
|
| 156 | // first check theme folder |
|
| 157 | if ( is_readable( get_stylesheet_directory() . $this->theme . DS . 'style.css' )) { |
|
| 158 | wp_register_style( $this->theme, get_stylesheet_directory_uri() . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ) ); |
|
| 159 | } else if ( is_readable( EE_TEMPLATES . $this->theme . DS . 'style.css' )) { |
|
| 160 | wp_register_style( $this->theme, EE_TEMPLATES_URL . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ) ); |
|
| 161 | } |
|
| 162 | wp_enqueue_style( $this->theme ); |
|
| 163 | if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) { |
|
| 164 | EE_Registry::instance()->load_helper( 'Maps' ); |
|
| @@ 167-171 (lines=5) @@ | ||
| 164 | // get some style |
|
| 165 | if ( apply_filters( 'FHEE_enable_default_espresso_css', TRUE ) && is_archive() ) { |
|
| 166 | // first check theme folder |
|
| 167 | if ( is_readable( get_stylesheet_directory() . $this->theme . DS . 'style.css' )) { |
|
| 168 | wp_register_style( $this->theme, get_stylesheet_directory_uri() . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ) ); |
|
| 169 | } else if ( is_readable( EE_TEMPLATES . $this->theme . DS . 'style.css' )) { |
|
| 170 | wp_register_style( $this->theme, EE_TEMPLATES_URL . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ) ); |
|
| 171 | } |
|
| 172 | wp_enqueue_style( $this->theme ); |
|
| 173 | } |
|
| 174 | } |
|