Example #1
0
 /**
  * Display method
  *
  * @param   string  $tpl  The template name
  *
  * @return  void
  */
 public function display($tpl = null)
 {
     /** @var RedcoreModelConfig $model */
     $model = $this->getModel('Config');
     $option = JFactory::getApplication()->input->getString('component', 'com_redcore');
     $lang = JFactory::getLanguage();
     // Load component language files
     $lang->load($option, JPATH_ADMINISTRATOR, 'en-GB', false, false) || $lang->load($option, JPATH_ADMINISTRATOR . '/components/' . $option, 'en-GB', false, false);
     $this->form = $model->getForm();
     $this->component = $model->getComponent($option);
     $this->return = JFactory::getApplication()->input->get('return', '', 'Base64');
     $this->componentTitle = RText::getTranslationIfExists($this->component->xml->name, '', '');
     $this->contentElements = $model->loadContentElements($option);
     $this->missingContentElements = $model->loadMissingContentElements($option, $this->contentElements);
     RLayoutHelper::$defaultBasePath = JPATH_ADMINISTRATOR . '/components/' . $option . '/layouts';
     $extensionXml = RComponentHelper::getComponentManifestFile($option);
     if (isset($extensionXml->redcore)) {
         $attributes = $extensionXml->redcore->attributes();
         if (!empty($attributes['defaultFramework'])) {
             RHtmlMedia::setFramework((string) $attributes['defaultFramework']);
         }
     }
     parent::display($tpl);
 }
						<?php 
    echo JText::_('JGLOBAL_NO_MATCHING_RESULTS');
    ?>
					</td>
				</tr>
			<?php 
}
?>
			</tbody>
		</table>
	</div>

	<div class="col-md-6">
		<h4>
			<?php 
echo RText::getTranslationIfExists($xml->name, '', '');
?>
 <?php 
echo JText::_('COM_REDCORE_CONFIG_PLUGINS');
?>
		</h4>
		<table class="table table-striped adminlist">
			<thead>
				<tr>
					<th><?php 
echo JText::_('COM_REDCORE_CONFIG_NAME');
?>
</th>
					<th><?php 
echo JText::_('COM_REDCORE_INSTALL_WITH_COMPONENT');
?>
Example #3
0
            ?>
					<?php 
        }
        ?>
					<div class="tab-pane" id="params_<?php 
        echo $formType;
        ?>
_<?php 
        echo $name;
        ?>
">
						<?php 
        if (isset($fieldSet->description) && !empty($fieldSet->description)) {
            ?>
							<p class="tab-description"><?php 
            echo RText::getTranslationIfExists($fieldSet->description, '', '');
            ?>
</p>
						<?php 
        }
        ?>
						<?php 
        foreach ($form->getFieldset($name) as $field) {
            ?>
							<div class="form-group">
								<?php 
            if (!$field->hidden && $name != "permissions") {
                ?>
									<div class="control-label">
										<?php 
                echo $field->label;
Example #4
0
							<strong><span class="label label-success"><?php 
        echo !empty($component->xml->version) ? $component->xml->version : '';
        ?>
</span></strong>
						</td>
					</tr>
					<tr>
						<td>
							<strong><?php 
        echo JText::_('JGLOBAL_DESCRIPTION');
        ?>
:</strong>
						</td>
						<td>
							<strong><?php 
        echo !empty($component->xml->description) ? RText::getTranslationIfExists($component->xml->description, '', '') : '';
        ?>
</strong>
						</td>
					</tr>
					</tbody>
				</table>
				<?php 
        if ($configurationLink) {
            ?>
					<a
						class="btn btn-primary"
						href="<?php 
            echo JRoute::_('index.php?option=com_redcore&view=config&layout=edit&component=' . $component->option . '&return=' . $return);
            ?>
">