update the component

This commit is contained in:
Llewellyn van der Merwe 2017-08-20 22:14:08 +01:00
parent 27af00de80
commit abced381fd
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
124 changed files with 196 additions and 151 deletions

View File

@ -1,6 +1,6 @@
# Sermon Distributor (1.4.1)
![Sermon Distributor image](https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor")
![Sermon Distributor image](https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/vdm-component.jpg "The Sermon Distributor")
Distributor is a highly advanced sermon distributor that runs on the [Joomla 3.x](http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox.
@ -23,7 +23,7 @@ The best way to see all your options is to install this component on you Joomla
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
+ *First Build*: 22nd October, 2015
+ *Last Build*: 17th August, 2017
+ *Last Build*: 20th August, 2017
+ *Version*: 1.4.1
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@ -36,7 +36,7 @@ due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder
> (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*: **63277**
+ *Line count*: **63322**
+ *File count*: **441**
+ *Folder count*: **90**

View File

@ -1,6 +1,6 @@
# Sermon Distributor (1.4.1)
![Sermon Distributor image](https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor")
![Sermon Distributor image](https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/vdm-component.jpg "The Sermon Distributor")
Distributor is a highly advanced sermon distributor that runs on the [Joomla 3.x](http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox.
@ -23,7 +23,7 @@ The best way to see all your options is to install this component on you Joomla
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
+ *First Build*: 22nd October, 2015
+ *Last Build*: 17th August, 2017
+ *Last Build*: 20th August, 2017
+ *Version*: 1.4.1
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@ -36,7 +36,7 @@ due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder
> (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*: **63277**
+ *Line count*: **63322**
+ *File count*: **441**
+ *Folder count*: **90**

View File

@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage admin.css

View File

@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage dashboard.css

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage controller.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage ajax.json.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage help.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage import.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermondistributor.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage headercheck.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage batch_.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermondistributor.php
@ -1375,7 +1375,14 @@ abstract class SermondistributorHelper
$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();
@ -1658,12 +1665,20 @@ abstract class SermondistributorHelper
**/
public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = 'sermondistributor')
{
// 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;
}
/**
@ -1870,10 +1885,16 @@ abstract class SermondistributorHelper
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);
@ -1893,7 +1914,7 @@ abstract class SermondistributorHelper
$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)
@ -1992,15 +2013,15 @@ abstract class SermondistributorHelper
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;
}

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage batchselection.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage build_option_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_under.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publlshing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_under.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publlshing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermons_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermons_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_under.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage files_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage stastics_fullwidth.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage ajax.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage adminviewfolderlist.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage articles.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage externalsource.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage externalsourcefiles.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage localfiles.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage preachers.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage series.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermon.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage siteviewfolderlist.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage import.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermondistributor.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermondistributor.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage default.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage view.html.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage default.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage default_closed_issues_the_closed_issues_on_github.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage default_main.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage default_open_issues_the_open_issues_on_github.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage default_readme_information.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage default_vast_development_method_notice_board.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage default_vdm.php
@ -27,7 +27,7 @@
defined('_JEXEC') or die('Restricted access');
?>
<img alt="<?php echo JText::_('COM_SERMONDISTRIBUTOR'); ?>" src="components/com_sermondistributor/assets/images/component-300.jpg">
<img alt="<?php echo JText::_('COM_SERMONDISTRIBUTOR'); ?>" src="components/com_sermondistributor/assets/images/vdm-component.jpg">
<ul class="list-striped">
<li><b><?php echo JText::_('COM_SERMONDISTRIBUTOR_VERSION'); ?>:</b> <?php echo $this->manifest->version; ?>&nbsp;&nbsp;<span class="update-notice"></span></li>
<li><b><?php echo JText::_('COM_SERMONDISTRIBUTOR_DATE'); ?>:</b> <?php echo $this->manifest->creationDate; ?></li>

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage view.html.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage script.php
@ -1035,7 +1035,7 @@ class com_sermondistributorInstallerScript
$db->setQuery($query);
$allDone = $db->execute();
echo '<a target="_blank" href="https://www.vdm.io/" title="Sermon Distributor">
<img src="components/com_sermondistributor/assets/images/component-300.jpg"/>
<img src="components/com_sermondistributor/assets/images/vdm-component.jpg"/>
</a>';
}
// do any updates needed
@ -1366,7 +1366,7 @@ class com_sermondistributorInstallerScript
$app->enqueueMessage('Your Dropbox integration has been moved, and can now be viewed at the new external source view. You will now need an APP token to update your local listing of the Dropbox files. Please review the Wiki tab when creating/editing the external source, or open an issue on github if you experience any more difficulties.', 'Info');
}
echo '<a target="_blank" href="https://www.vdm.io/" title="Sermon Distributor">
<img src="components/com_sermondistributor/assets/images/component-300.jpg"/>
<img src="components/com_sermondistributor/assets/images/vdm-component.jpg"/>
</a>
<h3>Upgrade to Version 1.4.1 Was Successful! Let us know if anything is not working as expected.</h3>';
}

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2" method="upgrade">
<name>COM_SERMONDISTRIBUTOR</name>
<creationDate>17th August, 2017</creationDate>
<creationDate>20th August, 2017</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://www.vdm.io/</authorUrl>

View File

@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage site.css

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage controller.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage ajax.json.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage download.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage help.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage category.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage categorysermons.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage dropboxupdater.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage headercheck.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage route.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermondistributor.php
@ -1022,12 +1022,23 @@ abstract class SermondistributorHelper
**/
public static function getModel($name, $path = JPATH_COMPONENT_SITE, $component = 'sermondistributor')
{
// 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;
}
/**
@ -1337,7 +1348,14 @@ abstract class SermondistributorHelper
$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();
@ -1650,7 +1668,13 @@ abstract class SermondistributorHelper
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))
{
@ -1673,7 +1697,7 @@ abstract class SermondistributorHelper
$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)
@ -1772,15 +1796,15 @@ abstract class SermondistributorHelper
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;
}

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.4.1
@build 17th August, 2017
@build 20th August, 2017
@created 22nd October, 2015
@package Sermon Distributor
@subpackage addtodropboxbutton.php

Some files were not shown because too many files have changed in this diff Show More