/** * Checks if the component is enabled * * @param string $option The component option. * @param boolean $strict If set and the component does not exist, false will be returned. * * @return boolean * * @since 11.1 */ public static function isEnabled($option, $strict = false) { if (!self::isLegacy()) { return \Component::isEnabled($option, $strict); } $result = self::getComponent($option, $strict); return $result->enabled | JFactory::getApplication()->isAdmin(); }
if ($this->categories) { ?> <div class="grid"> <div class="col span3"> <h2><?php echo Lang::txt('Categories'); ?> </h2> </div><!-- / .col span3 --> <div class="col span9 omega"> <div class="grid"> <?php $i = 0; $clm = ''; foreach ($this->categories as $category) { if ($category->id == 7 && !Component::isEnabled('com_tools', true)) { continue; } $i++; switch ($i) { case 3: $clm = 'omega'; break; case 2: $clm = ''; break; case 1: default: $clm = ''; break; }
* all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */ // No direct access defined('_HZEXEC_') or die; $this->css()->css('features'); $html = ''; $wishlist = Component::isEnabled('com_wishlist'); ?> <header id="content-header"> <h2><?php echo $this->title; ?> </h2> <div id="content-header-extra"> <ul id="useroptions"> <li><a class="btn icon-add" href="<?php echo Route::url('index.php?option=' . $this->option . '&task=start'); ?> "><?php echo Lang::txt('COM_PROJECTS_START_NEW'); ?>
} ?> <section class="main section"> <div class="subject"> <div class="grid"> <?php if ($this->types) { $i = 0; $clm = ''; foreach ($this->types as $type) { if ($type->contributable != 1) { continue; } if ($type->alias == 'tools') { if (!Component::isEnabled('com_tools', true)) { continue; } $url = Route::url('index.php?option=com_tools&task=create'); } else { $url = Route::url('index.php?option=' . $this->option . '&task=draft&step=' . $this->step . '&type=' . $type->id . ($this->group ? '&group=' . $this->group : '')); } $i++; switch ($i) { case 3: $clm = 'omega'; break; case 2: $clm = ''; break; case 1:
echo Lang::txt('COM_KB_HAVE_A_FEATURE_REQUEST'); ?> <a href="<?php echo Route::url('index.php?option=com_wishlist'); ?> "><?php echo Lang::txt('COM_KB_FEATURE_TELL_US'); ?> </a> </p> </div><!-- / .container --> <?php } ?> <?php if (Component::isEnabled('com_support')) { ?> <div class="container"> <h3><?php echo Lang::txt('COM_KB_TROUBLE_REPORT'); ?> </h3> <p> <?php echo Lang::txt('COM_KB_TROUBLE_FOUND_BUG'); ?> <a href="<?php echo Route::url('index.php?option=com_support&controller=tickets&task=new'); ?> "><?php echo Lang::txt('COM_KB_TROUBLE_TELL_US');
?> <ul class="entries-menu filter-options"> <li> <select name="type" id="filter-type"> <option value="" <?php echo !$this->filters['type'] ? ' selected="selected"' : ''; ?> ><?php echo Lang::txt('COM_RESOURCES_ALL_TYPES'); ?> </option> <?php foreach ($this->types as $item) { ?> <?php if ($item->id == 7 && !Component::isEnabled('com_tools', true)) { continue; } ?> <option value="<?php echo $item->id; ?> "<?php echo $this->filters['type'] == $item->id ? ' selected="selected"' : ''; ?> ><?php echo $this->escape(stripslashes($item->type)); ?> </option> <?php }
<p><?php echo Lang::txt('COM_GROUPS_BROWSE_ASIDE_SECTION_ONE_DEATAILS_ONE'); ?> </p> <p><?php echo Lang::txt('COM_GROUPS_BROWSE_ASIDE_SECTION_ONE_DEATAILS_TWO'); ?> </p> <p><?php echo Lang::txt('COM_GROUPS_BROWSE_ASIDE_SECTION_ONE_DEATAILS_THREE'); ?> </p> </div><!-- / .container --> <?php if (Component::isEnabled('com_members')) { ?> <div class="container"> <h3><?php echo Lang::txt('COM_GROUPS_BROWSE_ASIDE_SECTION_TWO_TITLE'); ?> </h3> <p><?php echo Lang::txt('COM_GROUPS_BROWSE_ASIDE_SECTION_TWO_DEATAILS', Route::url('index.php?option=com_members')); ?> </p> </div><!-- / .container --> <?php } ?> </aside><!-- / .aside -->