Updated component via JCB
This commit is contained in:
parent
4e4185ad67
commit
6cc9f6022e
13
README.md
13
README.md
@ -1,6 +1,6 @@
|
||||
# Demo (2.0.0)
|
||||
|
||||
![Demo image] (https://raw.githubusercontent.com/namibia/demo-joomla-3-component/master/admin/assets/images/component-300.jpg "The Demo")
|
||||
![Demo image] (https://raw.githubusercontent.com/namibia/demo-joomla-3-component/master/admin/assets/images/vdm-component.jpg "The Demo")
|
||||
|
||||
Just a basic demo of the most basic implementations of the [Joomla] (http://www.joomla.org) Component Builder's ability.
|
||||
|
||||
@ -10,7 +10,7 @@ Just a basic demo of the most basic implementations of the [Joomla] (http://www.
|
||||
+ *Author*: [Llewellyn van der Merwe] (mailto:info@vdm.io)
|
||||
+ *Name*: [Demo] (https://www.vdm.io/)
|
||||
+ *First Build*: 18th October, 2016
|
||||
+ *Last Build*: 8th April, 2017
|
||||
+ *Last Build*: 21st August, 2017
|
||||
+ *Version*: 2.0.0
|
||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
@ -23,7 +23,7 @@ due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builde
|
||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||
> never making one mistake or taking any coffee break.)
|
||||
|
||||
+ *Line count*: **15283**
|
||||
+ *Line count*: **15341**
|
||||
+ *File count*: **147**
|
||||
+ *Folder count*: **54**
|
||||
|
||||
@ -48,6 +48,7 @@ Project duration: **1.8 weeks** or **0.4 months**
|
||||
|
||||
## Donations
|
||||
|
||||
If you want to support this project, please consider donating:
|
||||
* PayPal: pay@vdm.io
|
||||
* Bitcoin: 3H35PYwikEosvcjxHXGPLS1GufZ4b4iFu3
|
||||
If you want to support this project, please consider donating:
|
||||
* PayPal: [paypal.me/payvdm](https://www.paypal.me/payvdm)
|
||||
* Bitcoin: 1FLxiT6wyxgZ3boeviLkYJ1DRpp41uzpxa
|
||||
* Ethereum: 0x243392daa3c9c8bc841fcacf7c7f72541cb16823
|
@ -1,6 +1,6 @@
|
||||
# Demo (2.0.0)
|
||||
|
||||
![Demo image] (https://raw.githubusercontent.com/namibia/demo-joomla-3-component/master/admin/assets/images/component-300.jpg "The Demo")
|
||||
![Demo image] (https://raw.githubusercontent.com/namibia/demo-joomla-3-component/master/admin/assets/images/vdm-component.jpg "The Demo")
|
||||
|
||||
Just a basic demo of the most basic implementations of the [Joomla] (http://www.joomla.org) Component Builder's ability.
|
||||
|
||||
@ -10,7 +10,7 @@ Just a basic demo of the most basic implementations of the [Joomla] (http://www.
|
||||
+ *Author*: [Llewellyn van der Merwe] (mailto:info@vdm.io)
|
||||
+ *Name*: [Demo] (https://www.vdm.io/)
|
||||
+ *First Build*: 18th October, 2016
|
||||
+ *Last Build*: 8th April, 2017
|
||||
+ *Last Build*: 21st August, 2017
|
||||
+ *Version*: 2.0.0
|
||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
@ -23,7 +23,7 @@ due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builde
|
||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||
> never making one mistake or taking any coffee break.)
|
||||
|
||||
+ *Line count*: **15283**
|
||||
+ *Line count*: **15341**
|
||||
+ *File count*: **147**
|
||||
+ *Folder count*: **54**
|
||||
|
||||
@ -48,6 +48,7 @@ Project duration: **1.8 weeks** or **0.4 months**
|
||||
|
||||
## Donations
|
||||
|
||||
If you want to support this project, please consider donating:
|
||||
* PayPal: pay@vdm.io
|
||||
* Bitcoin: 3H35PYwikEosvcjxHXGPLS1GufZ4b4iFu3
|
||||
If you want to support this project, please consider donating:
|
||||
* PayPal: [paypal.me/payvdm](https://www.paypal.me/payvdm)
|
||||
* Bitcoin: 1FLxiT6wyxgZ3boeviLkYJ1DRpp41uzpxa
|
||||
* Ethereum: 0x243392daa3c9c8bc841fcacf7c7f72541cb16823
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage admin.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage dashboard.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage looks.css
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
BIN
admin/assets/images/vdm-component.jpg
Normal file
BIN
admin/assets/images/vdm-component.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage controller.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage demo.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage import.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage looks.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage demo.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage demo.php
|
||||
@ -441,7 +441,14 @@ abstract class DemoHelper
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
$query->select($db->quoteName(array($what)));
|
||||
$query->from($db->quoteName('#_'.$main.'_'.$table));
|
||||
if (empty($table))
|
||||
{
|
||||
$query->from($db->quoteName('#__'.$main));
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->from($db->quoteName('#_'.$main.'_'.$table));
|
||||
}
|
||||
$query->where($db->quoteName($whereString) . ' '.$operator.' (' . implode(',',$where) . ')');
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
@ -724,12 +731,20 @@ abstract class DemoHelper
|
||||
**/
|
||||
public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = 'demo')
|
||||
{
|
||||
// load some joomla helpers
|
||||
JLoader::import('joomla.application.component.model');
|
||||
// load the model file
|
||||
JLoader::import( $name, $path . '/models' );
|
||||
// return instance
|
||||
return JModelLegacy::getInstance( $name, $component.'Model' );
|
||||
JModelLegacy::addIncludePath( $path . '/models' );
|
||||
// get instance
|
||||
$model = JModelLegacy::getInstance( $name, $component.'Model' );
|
||||
// if model not found
|
||||
if ($model == false)
|
||||
{
|
||||
// build class name
|
||||
$class = $prefix.$name;
|
||||
// initilize the model
|
||||
new $class();
|
||||
$model = JModelLegacy::getInstance($name, $prefix);
|
||||
}
|
||||
return $model;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -936,10 +951,16 @@ abstract class DemoHelper
|
||||
return false;
|
||||
}
|
||||
|
||||
// typo sorry!
|
||||
public static function sorten($string, $length = 40, $addTip = true)
|
||||
{
|
||||
return self::shorten($string, $length, $addTip);
|
||||
}
|
||||
|
||||
public static function shorten($string, $length = 40, $addTip = true)
|
||||
{
|
||||
if (self::checkString($string))
|
||||
{
|
||||
{
|
||||
$initial = strlen($string);
|
||||
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
|
||||
$words_count = count($words);
|
||||
@ -959,7 +980,7 @@ abstract class DemoHelper
|
||||
$final = strlen($newString);
|
||||
if ($initial != $final && $addTip)
|
||||
{
|
||||
$title = self::sorten($string, 400 , false);
|
||||
$title = self::shorten($string, 400 , false);
|
||||
return '<span class="hasTip" title="'.$title.'" style="cursor:help">'.trim($newString).'...</span>';
|
||||
}
|
||||
elseif ($initial != $final && !$addTip)
|
||||
@ -990,7 +1011,8 @@ abstract class DemoHelper
|
||||
// If you don't need to handle multi-byte characters
|
||||
// you can use preg_replace rather than mb_ereg_replace
|
||||
// Thanks @Łukasz Rysiak!
|
||||
$string = mb_ereg_replace("([^\w\s\d\-_\(\)])", '', $string);
|
||||
// $string = mb_ereg_replace("([^\w\s\d\-_\(\)])", '', $string);
|
||||
$string = preg_replace("([^\w\s\d\-_\(\)])", '', $string);
|
||||
// http://stackoverflow.com/a/2021729/1429677
|
||||
return preg_replace('/\s+/', ' ', $string);
|
||||
}
|
||||
@ -1057,15 +1079,15 @@ abstract class DemoHelper
|
||||
return '';
|
||||
}
|
||||
|
||||
public static function htmlEscape($var, $charset = 'UTF-8', $sorten = false, $length = 40)
|
||||
public static function htmlEscape($var, $charset = 'UTF-8', $shorten = false, $length = 40)
|
||||
{
|
||||
if (self::checkString($var))
|
||||
{
|
||||
$filter = new JFilterInput();
|
||||
$string = $filter->clean(html_entity_decode(htmlentities($var, ENT_COMPAT, $charset)), 'HTML');
|
||||
if ($sorten)
|
||||
if ($shorten)
|
||||
{
|
||||
return self::sorten($string,$length);
|
||||
return self::shorten($string,$length);
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage headercheck.php
|
||||
@ -21,7 +21,7 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
class HeaderCheck
|
||||
class demoHeaderCheck
|
||||
{
|
||||
function js_loaded($script_name)
|
||||
{
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage batch_.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage batchselection.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage details_above.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage details_under.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage metadata.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage more_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage more_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage publishing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage demo.php
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.js
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage import.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage looks.php
|
||||
|
@ -1,7 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS `#__demo_look` (
|
||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
||||
`add` TINYINT(1) NOT NULL DEFAULT '0',
|
||||
`add` TINYINT(1) NOT NULL DEFAULT 0,
|
||||
`alias` CHAR(64) NOT NULL DEFAULT '',
|
||||
`dateofbirth` DATE NOT NULL DEFAULT '0000-00-00',
|
||||
`description` TEXT NOT NULL,
|
||||
@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS `#__demo_look` (
|
||||
`image` CHAR(64) NOT NULL DEFAULT '',
|
||||
`mobile_phone` VARCHAR(64) NOT NULL DEFAULT '',
|
||||
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`not_required` INT(1) NOT NULL DEFAULT '0',
|
||||
`not_required` INT(1) NOT NULL DEFAULT 0,
|
||||
`website` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`params` text NOT NULL DEFAULT '',
|
||||
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default_main.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default_vdm.php
|
||||
@ -21,30 +21,27 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
$manifest = DemoHelper::manifest();
|
||||
JHtml::_('bootstrap.loadCss');
|
||||
|
||||
?>
|
||||
<img alt="<?php echo JText::_('COM_DEMO'); ?>" src="components/com_demo/assets/images/component-300.jpg">
|
||||
<img alt="<?php echo JText::_('COM_DEMO'); ?>" src="components/com_demo/assets/images/vdm-component.jpg">
|
||||
<ul class="list-striped">
|
||||
<li><b><?php echo JText::_('COM_DEMO_VERSION'); ?>:</b> <?php echo $manifest->version; ?></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_DATE'); ?>:</b> <?php echo $manifest->creationDate; ?></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_AUTHOR'); ?>:</b> <a href="mailto:<?php echo $manifest->authorEmail; ?>"><?php echo $manifest->author; ?></a></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_WEBSITE'); ?>:</b> <a href="<?php echo $manifest->authorUrl; ?>" target="_blank"><?php echo $manifest->authorUrl; ?></a></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_LICENSE'); ?>:</b> <?php echo $manifest->license; ?></li>
|
||||
<li><b><?php echo $manifest->copyright; ?></b></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_VERSION'); ?>:</b> <?php echo $this->manifest->version; ?> <span class="update-notice"></span></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_DATE'); ?>:</b> <?php echo $this->manifest->creationDate; ?></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_AUTHOR'); ?>:</b> <a href="mailto:<?php echo $this->manifest->authorEmail; ?>"><?php echo $this->manifest->author; ?></a></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_WEBSITE'); ?>:</b> <a href="<?php echo $this->manifest->authorUrl; ?>" target="_blank"><?php echo $this->manifest->authorUrl; ?></a></li>
|
||||
<li><b><?php echo JText::_('COM_DEMO_LICENSE'); ?>:</b> <?php echo $this->manifest->license; ?></li>
|
||||
<li><b><?php echo $this->manifest->copyright; ?></b></li>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
<?php if(DemoHelper::checkArray($this->contributors)): ?>
|
||||
<?php if(count($this->contributors) > 1): ?>
|
||||
<h3><?php echo JText::_('COM_DEMO_CONTRIBUTORS'); ?></h3>
|
||||
<?php else: ?>
|
||||
<h3><?php echo JText::_('COM_DEMO_CONTRIBUTOR'); ?></h3>
|
||||
<?php endif; ?>
|
||||
<ul class="list-striped">
|
||||
<?php foreach($this->contributors as $contributor): ?>
|
||||
<li><b><?php echo $contributor['title']; ?>:</b> <?php echo $contributor['name']; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
<?php if(count($this->contributors) > 1): ?>
|
||||
<h3><?php echo JText::_('COM_DEMO_CONTRIBUTORS'); ?></h3>
|
||||
<?php else: ?>
|
||||
<h3><?php echo JText::_('COM_DEMO_CONTRIBUTOR'); ?></h3>
|
||||
<?php endif; ?>
|
||||
<ul class="list-striped">
|
||||
<?php foreach($this->contributors as $contributor): ?>
|
||||
<li><b><?php echo $contributor['title']; ?>:</b> <?php echo $contributor['name']; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage view.html.php
|
||||
@ -44,7 +44,10 @@ class DemoViewDemo extends JViewLegacy
|
||||
// Assign data to the view
|
||||
$this->icons = $this->get('Icons');
|
||||
$this->contributors = DemoHelper::getContributors();
|
||||
|
||||
|
||||
// get the manifest details of the component
|
||||
$this->manifest = DemoHelper::manifest();
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
|
||||
@ -79,15 +82,19 @@ class DemoViewDemo extends JViewLegacy
|
||||
/**
|
||||
* Method to set up the document properties
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function setDocument()
|
||||
{
|
||||
$document = JFactory::getDocument();
|
||||
|
||||
|
||||
// add dashboard style sheets
|
||||
$document->addStyleSheet(JURI::root() . "administrator/components/com_demo/assets/css/dashboard.css");
|
||||
|
||||
|
||||
// set page title
|
||||
$document->setTitle(JText::_('COM_DEMO_DASHBOARD'));
|
||||
|
||||
// add manifest to page JavaScript
|
||||
$document->addScriptDeclaration("var manifest = jQuery.parseJSON('" . json_encode($this->manifest) . "');", "text/javascript");
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage view.html.php
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage submitbutton.js
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage edit.php
|
||||
@ -53,7 +53,8 @@ $componentParams = JComponentHelper::getParams('com_demo');
|
||||
<div id="demo_loader" style="display: none;">
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_demo&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo JLayoutHelper::render('look.details_above', $this); ?><div class="form-horizontal">
|
||||
<?php echo JLayoutHelper::render('look.details_above', $this); ?>
|
||||
<div class="form-horizontal">
|
||||
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'lookTab', array('active' => 'details')); ?>
|
||||
|
||||
@ -116,6 +117,7 @@ $componentParams = JComponentHelper::getParams('com_demo');
|
||||
<input type="hidden" name="task" value="look.edit" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage view.html.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default_batch_body.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default_batch_footer.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default_body.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default_foot.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default_head.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default_toolbar.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage view.html.php
|
||||
@ -144,7 +144,7 @@ class DemoViewLooks extends JViewLegacy
|
||||
{
|
||||
JToolBarHelper::custom('looks.exportData', 'download', '', 'COM_DEMO_EXPORT_DATA', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->canDo->get('core.import') && $this->canDo->get('look.import'))
|
||||
{
|
||||
|
2
demo.xml
2
demo.xml
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="3.2" method="upgrade">
|
||||
<name>COM_DEMO</name>
|
||||
<creationDate>8th April, 2017</creationDate>
|
||||
<creationDate>21st August, 2017</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>info@vdm.io</authorEmail>
|
||||
<authorUrl>https://www.vdm.io/</authorUrl>
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage script.php
|
||||
@ -255,7 +255,7 @@ class com_demoInstallerScript
|
||||
$app = JFactory::getApplication();
|
||||
$app->enqueueMessage('First set the components global settings and permissions in the <b>Options</b> area, or the front-end of the component will not work as expected. <br />Please note that each view on the front-end has access and permissions, so if you would like the public to access those views they must be given the access and permission.', 'Info');
|
||||
echo '<a target="_blank" href="https://www.vdm.io/" title="Demo">
|
||||
<img src="components/com_demo/assets/images/component-300.jpg"/>
|
||||
<img src="components/com_demo/assets/images/vdm-component.jpg"/>
|
||||
</a>';
|
||||
}
|
||||
// do any updates needed
|
||||
@ -296,7 +296,7 @@ class com_demoInstallerScript
|
||||
|
||||
|
||||
echo '<a target="_blank" href="https://www.vdm.io/" title="Demo">
|
||||
<img src="components/com_demo/assets/images/component-300.jpg"/>
|
||||
<img src="components/com_demo/assets/images/vdm-component.jpg"/>
|
||||
</a>
|
||||
<h3>Upgrade to Version 2.0.0 Was Successful! Let us know if anything is not working as expected.</h3>';
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage looking.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage looks.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage site.css
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage controller.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage demo.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage category.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage demo.php
|
||||
@ -165,12 +165,23 @@ abstract class DemoHelper
|
||||
**/
|
||||
public static function getModel($name, $path = JPATH_COMPONENT_SITE, $component = 'demo')
|
||||
{
|
||||
// load some joomla helpers
|
||||
JLoader::import('joomla.application.component.model');
|
||||
// full path
|
||||
$fullPath = $path . '/models';
|
||||
// load the model file
|
||||
JLoader::import( $name, $path . '/models' );
|
||||
// return instance
|
||||
return JModelLegacy::getInstance( $name, $component.'Model' );
|
||||
JModelLegacy::addIncludePath($fullPath);
|
||||
// get instance
|
||||
$model = JModelLegacy::getInstance( $name, $component.'Model' );
|
||||
// if model not found
|
||||
if ($model == false)
|
||||
{
|
||||
require_once $fullPath.'/'.strtolower($name).'.php';
|
||||
// build class name
|
||||
$class = $prefix.$name;
|
||||
// initialize the model
|
||||
new $class();
|
||||
$model = JModelLegacy::getInstance($name, $prefix);
|
||||
}
|
||||
return $model;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -480,7 +491,14 @@ abstract class DemoHelper
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
$query->select($db->quoteName(array($what)));
|
||||
$query->from($db->quoteName('#_'.$main.'_'.$table));
|
||||
if (empty($table))
|
||||
{
|
||||
$query->from($db->quoteName('#__'.$main));
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->from($db->quoteName('#_'.$main.'_'.$table));
|
||||
}
|
||||
$query->where($db->quoteName($whereString) . ' '.$operator.' (' . implode(',',$where) . ')');
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
@ -793,7 +811,13 @@ abstract class DemoHelper
|
||||
return false;
|
||||
}
|
||||
|
||||
// typo sorry!
|
||||
public static function sorten($string, $length = 40, $addTip = true)
|
||||
{
|
||||
return self::shorten($string, $length, $addTip);
|
||||
}
|
||||
|
||||
public static function shorten($string, $length = 40, $addTip = true)
|
||||
{
|
||||
if (self::checkString($string))
|
||||
{
|
||||
@ -816,7 +840,7 @@ abstract class DemoHelper
|
||||
$final = strlen($newString);
|
||||
if ($initial != $final && $addTip)
|
||||
{
|
||||
$title = self::sorten($string, 400 , false);
|
||||
$title = self::shorten($string, 400 , false);
|
||||
return '<span class="hasTip" title="'.$title.'" style="cursor:help">'.trim($newString).'...</span>';
|
||||
}
|
||||
elseif ($initial != $final && !$addTip)
|
||||
@ -847,7 +871,8 @@ abstract class DemoHelper
|
||||
// If you don't need to handle multi-byte characters
|
||||
// you can use preg_replace rather than mb_ereg_replace
|
||||
// Thanks @Łukasz Rysiak!
|
||||
$string = mb_ereg_replace("([^\w\s\d\-_\(\)])", '', $string);
|
||||
// $string = mb_ereg_replace("([^\w\s\d\-_\(\)])", '', $string);
|
||||
$string = preg_replace("([^\w\s\d\-_\(\)])", '', $string);
|
||||
// http://stackoverflow.com/a/2021729/1429677
|
||||
return preg_replace('/\s+/', ' ', $string);
|
||||
}
|
||||
@ -914,15 +939,15 @@ abstract class DemoHelper
|
||||
return '';
|
||||
}
|
||||
|
||||
public static function htmlEscape($var, $charset = 'UTF-8', $sorten = false, $length = 40)
|
||||
public static function htmlEscape($var, $charset = 'UTF-8', $shorten = false, $length = 40)
|
||||
{
|
||||
if (self::checkString($var))
|
||||
{
|
||||
$filter = new JFilterInput();
|
||||
$string = $filter->clean(html_entity_decode(htmlentities($var, ENT_COMPAT, $charset)), 'HTML');
|
||||
if ($sorten)
|
||||
if ($shorten)
|
||||
{
|
||||
return self::sorten($string,$length);
|
||||
return self::shorten($string,$length);
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage headercheck.php
|
||||
@ -21,7 +21,7 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
class HeaderCheck
|
||||
class demoHeaderCheck
|
||||
{
|
||||
function js_loaded($script_name)
|
||||
{
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage route.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage details_above.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage details_under.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage metadata.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage more_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage more_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage publishing.php
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.js
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage look.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage looking.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage looks.php
|
||||
@ -71,6 +71,7 @@ class DemoModelLooks extends JModelList
|
||||
array('a.id','a.name','a.alias','a.description','a.add','a.email','a.mobile_phone','a.dateofbirth','a.image','a.website','a.not_required','a.published','a.hits','a.ordering'),
|
||||
array('id','name','alias','description','add','email','mobile_phone','dateofbirth','image','website','not_required','published','hits','ordering')));
|
||||
$query->from($db->quoteName('#__demo_look', 'a'));
|
||||
// Get where a.published is 1
|
||||
$query->where('a.published = 1');
|
||||
$query->order('a.name ASC');
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage router.php
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage submitbutton.js
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage edit.php
|
||||
@ -33,7 +33,8 @@ $componentParams = JComponentHelper::getParams('com_demo');
|
||||
<?php echo $this->toolbar->render(); ?>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_demo&layout=edit&id='.(int) $this->item->id.$this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo JLayoutHelper::render('look.details_above', $this); ?><div class="form-horizontal">
|
||||
<?php echo JLayoutHelper::render('look.details_above', $this); ?>
|
||||
<div class="form-horizontal">
|
||||
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'lookTab', array('active' => 'details')); ?>
|
||||
|
||||
@ -96,6 +97,7 @@ $componentParams = JComponentHelper::getParams('com_demo');
|
||||
<input type="hidden" name="task" value="look.edit" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage view.html.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage view.html.php
|
||||
@ -105,7 +105,7 @@ class DemoViewLooking extends JViewLegacy
|
||||
// Load the header checker class.
|
||||
require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' );
|
||||
// Initialize the header checker.
|
||||
$HeaderCheck = new HeaderCheck;
|
||||
$HeaderCheck = new demoHeaderCheck;
|
||||
|
||||
// Load uikit options.
|
||||
$uikit = $this->params->get('uikit_load');
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage default.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.0
|
||||
@build 8th April, 2017
|
||||
@build 21st August, 2017
|
||||
@created 18th October, 2016
|
||||
@package Demo
|
||||
@subpackage view.html.php
|
||||
@ -69,7 +69,7 @@ class DemoViewLooks extends JViewLegacy
|
||||
// Load the header checker class.
|
||||
require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php' );
|
||||
// Initialize the header checker.
|
||||
$HeaderCheck = new HeaderCheck;
|
||||
$HeaderCheck = new demoHeaderCheck;
|
||||
|
||||
// Load uikit options.
|
||||
$uikit = $this->params->get('uikit_load');
|
||||
|
Loading…
Reference in New Issue
Block a user