</td> </tr> <?php } ?> <tr> <td data-export-label="AxisComposer Support"><?php _e('AxisComposer support', 'axiscomposer'); ?> :</td> <td class="help"><?php echo ac_help_tip(__('Displays whether or not the current active theme declares AxisComposer support.', 'axiscomposer')); ?> </td> <td><?php if (!current_theme_supports('axiscomposer') && !in_array($active_theme->template, ac_get_core_supported_themes())) { echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . __('Not declared', 'axiscomposer') . '</mark>'; } else { echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>'; } ?> </td> </tr> </tbody> </table> <?php do_action('axiscomposer_system_status_report'); ?> <script type="text/javascript">
/** * Test ac_get_core_supported_themes() * * @since 1.0.0 */ public function test_ac_get_core_supported_themes() { $expected_themes = array('twentysixteen', 'twentyfifteen', 'twentyfourteen', 'twentythirteen', 'twentytwelve', 'twentyeleven', 'twentyten'); $this->assertEquals($expected_themes, ac_get_core_supported_themes()); }
/** * Show the Theme Check notice. */ public static function theme_check_notice() { if (!current_theme_supports('axiscomposer') && !in_array(get_option('template'), ac_get_core_supported_themes())) { include 'views/html-notice-theme-support.php'; } else { self::remove_notice('theme_support'); } }