Renamed the uikit lib folders. Resolved the gh-188 by updateing the note. Resolved gh-92 by implementation of the library manager in the compiler.

This commit is contained in:
2017-12-10 21:17:26 +02:00
parent b60d208d9e
commit f900f65baa
700 changed files with 12837 additions and 14154 deletions

View File

@ -90,7 +90,7 @@ $edit = "index.php?option=com_componentbuilder&view=libraries&task=library.edit"
<?php echo $this->escape($item->description); ?>
</td>
<td class="hidden-phone">
<?php echo JText::_($item->how); ?>
<?php echo $this->escape($item->how); ?>
</td>
<td class="hidden-phone">
<?php echo JText::_($item->type); ?>

View File

@ -197,7 +197,7 @@ class ComponentbuilderViewLibraries extends JViewLegacy
}
// Set How Selection
$this->howOptions = $this->getTheHowSelections();
$this->howOptions = JFormHelper::loadFieldType('Filebehaviour')->getOptions();
if ($this->howOptions)
{
// How Filter
@ -248,9 +248,12 @@ class ComponentbuilderViewLibraries extends JViewLegacy
*/
protected function setDocument()
{
$document = JFactory::getDocument();
$document->setTitle(JText::_('COM_COMPONENTBUILDER_LIBRARIES'));
$document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/libraries.css");
if (!isset($this->document))
{
$this->document = JFactory::getDocument();
}
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_LIBRARIES'));
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/libraries.css");
}
/**
@ -288,42 +291,6 @@ class ComponentbuilderViewLibraries extends JViewLegacy
);
}
protected function getTheHowSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select the text.
$query->select($db->quoteName('how'));
$query->from($db->quoteName('#__componentbuilder_library'));
$query->order($db->quoteName('how') . ' ASC');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// get model
$model = $this->getModel();
$results = array_unique($results);
$_filter = array();
foreach ($results as $how)
{
// Translate the how selection
$text = $model->selectionTranslation($how,'how');
// Now add the how and its text to the options array
$_filter[] = JHtml::_('select.option', $how, JText::_($text));
}
return $_filter;
}
return false;
}
protected function getTheTypeSelections()
{
// Get a db connection.