$statistic = '<p class="' . $colour . '"><strong>' . $stat . '</strong></p>'; } //end if if ($link && $label) { $base = 'index.php?option=com_arkeditor&view='; $label = '<a href="' . $base . $link . '">' . $label . '</a>'; $statistic = '<a href="' . $base . $link . '" class="badge-link">' . $statistic . '</a>'; } //end if // RENDER STAT echo '<td>' . $label . '</td>'; echo '<td>' . $statistic . '</td>'; } $config = ARKHelper::getEditorPluginConfig(); $toolbars = ARKHelper::getEditorToolbars(true); $plugins = ARKHelper::getEditorPlugins(true); $toolbars_core = JArrayHelper::getColumn($toolbars, 'iscore'); $plugins_core = JArrayHelper::getColumn($plugins, 'iscore'); $plugins_state = JArrayHelper::getColumn($plugins, 'published'); echo '<div id="arkstats">'; echo '<table class="table table-striped">'; echo '<tr>'; addStatistic(JText::_('COM_ARKEDITOR_STATISTIC_ALLTOOLBARS_NAME'), count($toolbars), 'info'); addStatistic(JText::_('COM_ARKEDITOR_STATISTIC_ALLPLUGINS_NAME'), count($plugins), 'info', 'list&filter_state=*&filter_iscore=*'); echo '</tr>'; echo '<tr>'; addStatistic(JText::_('COM_ARKEDITOR_STATISTIC_CORETOOLBARS_NAME'), count(array_keys($toolbars_core, 1)), 'inverse'); addStatistic(JText::_('COM_ARKEDITOR_STATISTIC_COREPLUGINS_NAME'), count(array_keys($plugins_core, 1)), 'inverse', 'list&filter_state=*&filter_iscore=1'); echo '</tr>'; echo '<tr>'; addStatistic(JText::_('COM_ARKEDITOR_STATISTIC_NONCORETOOLBARS_NAME'), count(array_keys($toolbars_core, 0)));