run(); } } endif; if( ! function_exists( 'apple_theme_pack_ignite_plugin' ) ) : /** * This function ensures that plugin only runs if current theme is Apple * @return void */ function apple_theme_pack_ignite_plugin() { $theme_is_active = atp_is_apple_theme_active(); if( true === ( $value = wp_get_theme( 'tm-apple' )->exists() ) && ( 'Tm Apple' == wp_get_theme() ) || ( 'Tm Apple Pro' == wp_get_theme() ) || 0 == 0 ) { AppleThemePackApplication::ignite(); } elseif( true === ( $value = wp_get_theme( 'tm-apple' )->exists() ) ) { add_action( 'admin_notices', 'atp_admin_notice_theme_not_active' ); } else { add_action( 'admin_notices', 'atp_admin_notice_theme_does_not_exist' ); } } endif; apple_theme_pack_ignite_plugin(); ?>