Imporved vdm notice, and github issues, releases, and more
This commit is contained in:
parent
ef3ffee232
commit
5a99913cb7
12
README.md
12
README.md
@ -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*: 21st August, 2017
|
||||
+ *Last Build*: 24th 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,19 +36,19 @@ 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*: **63324**
|
||||
+ *File count*: **441**
|
||||
+ *Line count*: **63481**
|
||||
+ *File count*: **443**
|
||||
+ *Folder count*: **90**
|
||||
|
||||
**116 Hours** or **15 Eight Hour Days** (the actual time the author spent)
|
||||
**117 Hours** or **15 Eight Hour Days** (the actual time the author spent)
|
||||
|
||||
> (with the following break down:
|
||||
> **debugging @44hours** = codingtime / 4;
|
||||
> **planning @25hours** = codingtime / 7;
|
||||
> **mapping @18hours** = codingtime / 10;
|
||||
> **office @29hours** = codingtime / 6;)
|
||||
> **office @30hours** = codingtime / 6;)
|
||||
|
||||
**293 Hours** or **37 Eight Hour Days**
|
||||
**294 Hours** or **37 Eight Hour Days**
|
||||
(a total of the realistic time frame for this project)
|
||||
|
||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||
|
@ -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*: 21st August, 2017
|
||||
+ *Last Build*: 24th 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,19 +36,19 @@ 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*: **63324**
|
||||
+ *File count*: **441**
|
||||
+ *Line count*: **63481**
|
||||
+ *File count*: **443**
|
||||
+ *Folder count*: **90**
|
||||
|
||||
**116 Hours** or **15 Eight Hour Days** (the actual time the author spent)
|
||||
**117 Hours** or **15 Eight Hour Days** (the actual time the author spent)
|
||||
|
||||
> (with the following break down:
|
||||
> **debugging @44hours** = codingtime / 4;
|
||||
> **planning @25hours** = codingtime / 7;
|
||||
> **mapping @18hours** = codingtime / 10;
|
||||
> **office @29hours** = codingtime / 6;)
|
||||
> **office @30hours** = codingtime / 6;)
|
||||
|
||||
**293 Hours** or **37 Eight Hour Days**
|
||||
**294 Hours** or **37 Eight Hour Days**
|
||||
(a total of the realistic time frame for this project)
|
||||
|
||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||
|
@ -10,7 +10,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage admin.css
|
||||
|
@ -10,7 +10,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage dashboard.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermon.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons.css
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage controller.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage ajax.json.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage help.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage import.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermon.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermondistributor.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage headercheck.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage batch_.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermondistributor.php
|
||||
@ -69,6 +69,11 @@ abstract class SermondistributorHelper
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The global params
|
||||
**/
|
||||
protected static $params = false;
|
||||
|
||||
/**
|
||||
* The external source links auto
|
||||
**/
|
||||
@ -89,21 +94,6 @@ abstract class SermondistributorHelper
|
||||
**/
|
||||
protected static $select_externalsource_manual;
|
||||
|
||||
/**
|
||||
* The user notice info File Name
|
||||
**/
|
||||
protected static $usernotice = false;
|
||||
|
||||
/**
|
||||
* The update error info File Name
|
||||
**/
|
||||
protected static $updateerror = false;
|
||||
|
||||
/**
|
||||
* The update last File path
|
||||
**/
|
||||
protected static $updatelast = false;
|
||||
|
||||
/**
|
||||
* The update errors
|
||||
**/
|
||||
@ -339,7 +329,7 @@ abstract class SermondistributorHelper
|
||||
// get actual update values
|
||||
$updates = self::getExternalListingUpdateKeys();
|
||||
// get last update
|
||||
$updatePath = self::getFilePath('update', 'last', 'vDm', '.txt', JPATH_COMPONENT_ADMINISTRATOR);
|
||||
$updatePath = self::getFilePath('path', 'updatelast', 'txt', 'vDm', JPATH_COMPONENT_ADMINISTRATOR);
|
||||
if (($lastUpdate = @file_get_contents($updatePath)) !== FALSE && self::checkArray($updates))
|
||||
{
|
||||
// now check what is next
|
||||
@ -364,6 +354,71 @@ abstract class SermondistributorHelper
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the file path or url
|
||||
*
|
||||
* @param string $type The (url/path) type to return
|
||||
* @param string $target The Params Target name (if set)
|
||||
* @param string $fileType The kind of filename to generate (if not set no file name is generated)
|
||||
* @param string $key The key to adjust the filename (if not set ignored)
|
||||
* @param string $default The default path if not set in Params (fallback path)
|
||||
* @param bool $createIfNotSet The switch to create the folder if not found
|
||||
*
|
||||
* @return string On success the path or url is returned based on the type requested
|
||||
*
|
||||
*/
|
||||
public static function getFilePath($type = 'path', $target = 'filepath', $fileType = null, $key = '', $default = JPATH_SITE . '/images/', $createIfNotSet = true)
|
||||
{
|
||||
// get the global settings
|
||||
if (!self::checkObject(self::$params))
|
||||
{
|
||||
self::$params = JComponentHelper::getParams('com_sermondistributor');
|
||||
}
|
||||
$filePath = self::$params->get($target, $default);
|
||||
// check the file path (revert to default only of not a hidden file path)
|
||||
if ('hiddenfilepath' !== $target && strpos($filePath, JPATH_SITE) === false)
|
||||
{
|
||||
$filePath = JPATH_SITE . '/images/';
|
||||
}
|
||||
jimport('joomla.filesystem.folder');
|
||||
// create the folder if it does not exist
|
||||
if ($createIfNotSet && !JFolder::exists($filePath))
|
||||
{
|
||||
JFolder::create($filePath);
|
||||
}
|
||||
// setup the file name
|
||||
$fileName = '';
|
||||
if (self::checkString($fileType))
|
||||
{
|
||||
// Get basic key
|
||||
$basickey = 'Th!s_iS_n0t_sAfe_buT_b3tter_then_n0thiug';
|
||||
if (method_exists(get_called_class(), "getCryptKey"))
|
||||
{
|
||||
$basickey = self::getCryptKey('basic', $basickey);
|
||||
}
|
||||
// check the key
|
||||
if (self::checkString($key))
|
||||
{
|
||||
$key = 'vDm';
|
||||
}
|
||||
// set the name
|
||||
$fileName = trim(md5($type.$target.$basickey.$key) . '.' . trim($fileType, '.'));
|
||||
}
|
||||
// return the url
|
||||
if ($type === 'url')
|
||||
{
|
||||
if (strpos($filePath, JPATH_SITE) !== false)
|
||||
{
|
||||
$filePath = trim( str_replace( JPATH_SITE, '', $filePath), '/');
|
||||
return JURI::root() . $filePath . '/' . $fileName;
|
||||
}
|
||||
// since the path is behind the root folder of the site, return only the root url (may be used to build the link)
|
||||
return JURI::root();
|
||||
}
|
||||
// sanitize the path
|
||||
return '/' . trim( $filePath, '/' ) . '/' . $fileName;
|
||||
}
|
||||
|
||||
protected static function saveFile($data,$path_filename)
|
||||
{
|
||||
@ -624,31 +679,6 @@ abstract class SermondistributorHelper
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function getFilePath($type, $name = 'listing', $key = 'vDm', $fileType = '.json', $PATH = JPATH_COMPONENT_SITE)
|
||||
{
|
||||
if (!isset(self::${$type.$name}[$key]) || !self::checkString(self::${$type.$name}[$key]))
|
||||
{
|
||||
// Get local key
|
||||
$localkey = self::getLocalKey();
|
||||
// check the key
|
||||
$keyMD5 = '';
|
||||
if ('vDm' != $key)
|
||||
{
|
||||
$keyMD5 = $key;
|
||||
}
|
||||
// set the name
|
||||
$fileName = md5($type.$name.$localkey.$keyMD5);
|
||||
// set file path
|
||||
self::${$type.$name}[$key] = $PATH.'/helpers/'.$fileName.$fileType;
|
||||
}
|
||||
if (isset(self::${$type.$name}[$key]) && self::checkString(self::${$type.$name}[$key]))
|
||||
{
|
||||
// return the path
|
||||
return self::${$type.$name}[$key];
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* get the localkey
|
||||
@ -774,7 +804,7 @@ abstract class SermondistributorHelper
|
||||
// get update error from file
|
||||
if ($fileKey)
|
||||
{
|
||||
$file_path = self::getFilePath('update', 'error', $fileKey, '.txt', JPATH_COMPONENT_ADMINISTRATOR);
|
||||
$file_path = self::getFilePath('path', 'updateerror', 'txt', $fileKey, JPATH_COMPONENT_ADMINISTRATOR);
|
||||
// check if it is set
|
||||
if (($text = @file_get_contents($file_path)) !== FALSE)
|
||||
{
|
||||
|
@ -340,6 +340,7 @@ COM_SERMONDISTRIBUTOR_DASHBOARD_SERMONS_CATID="Category For<br />Sermons"
|
||||
COM_SERMONDISTRIBUTOR_DASHBOARD_SERMON_ADD="Add Sermon<br /><br />"
|
||||
COM_SERMONDISTRIBUTOR_DASHBOARD_STATISTICS="Statistics<br /><br />"
|
||||
COM_SERMONDISTRIBUTOR_DATE="Date"
|
||||
COM_SERMONDISTRIBUTOR_DOWNLOAD="download"
|
||||
COM_SERMONDISTRIBUTOR_DOWNLOAD_NAME="Download Name"
|
||||
COM_SERMONDISTRIBUTOR_EDIT_CREATED_BY="Edit Created By"
|
||||
COM_SERMONDISTRIBUTOR_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by."
|
||||
@ -763,10 +764,13 @@ COM_SERMONDISTRIBUTOR_IMPORT_TITLE="Data Importer"
|
||||
COM_SERMONDISTRIBUTOR_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE="Package to import not found."
|
||||
COM_SERMONDISTRIBUTOR_IMPORT_UPDATE_DATA="Import Data"
|
||||
COM_SERMONDISTRIBUTOR_IMPORT_UPLOAD_BOTTON="Upload File"
|
||||
COM_SERMONDISTRIBUTOR_ISSUE="issue"
|
||||
COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_ACCESS="- Keep Original Access -"
|
||||
COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_CATEGORY="- Keep Original Category -"
|
||||
COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_STATE="- Keep Original State -"
|
||||
COM_SERMONDISTRIBUTOR_LAST_FEW_RELEASES_FROM_GITHUB_IS_LOADING="Last few releases from Github is loading"
|
||||
COM_SERMONDISTRIBUTOR_LAST_UPDATE="Last Update"
|
||||
COM_SERMONDISTRIBUTOR_LATEST_RELEASE="Latest Release"
|
||||
COM_SERMONDISTRIBUTOR_LICENSE="License"
|
||||
COM_SERMONDISTRIBUTOR_LISTING_INFO="Listing Info"
|
||||
COM_SERMONDISTRIBUTOR_LOCAL_LISTING="Local Listing"
|
||||
@ -896,7 +900,12 @@ COM_SERMONDISTRIBUTOR_NO_FILES_LINKED_YET="No Files Linked Yet"
|
||||
COM_SERMONDISTRIBUTOR_NO_ID_FOUND_CAN_NOT_RESET_THE_UPDATE_STATUS="No id found, can not reset the update status!"
|
||||
COM_SERMONDISTRIBUTOR_NO_MANUAL_UPDATES_AVAILABLE="No Manual Updates Available"
|
||||
COM_SERMONDISTRIBUTOR_NUMBER_OF_FILES_LISTED="Number of Files Listed"
|
||||
COM_SERMONDISTRIBUTOR_OPENED_BY="opened by"
|
||||
COM_SERMONDISTRIBUTOR_ON_GITHUB="on Github"
|
||||
COM_SERMONDISTRIBUTOR_OPEN="Open"
|
||||
COM_SERMONDISTRIBUTOR_OPENED="opened"
|
||||
COM_SERMONDISTRIBUTOR_OPENED_THIS="opened this"
|
||||
COM_SERMONDISTRIBUTOR_OPEN_ON_GITHUB="Open on Github"
|
||||
COM_SERMONDISTRIBUTOR_OUT_OF_DATE="Out of date"
|
||||
COM_SERMONDISTRIBUTOR_PLEASE_ADD_FILES_TO_S="Please add files to (%s)"
|
||||
COM_SERMONDISTRIBUTOR_PLEASE_CHECK_AGAIN_LATTER="Please check again latter."
|
||||
COM_SERMONDISTRIBUTOR_PREACHER="Preacher"
|
||||
@ -993,6 +1002,7 @@ COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE="Website"
|
||||
COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_DESCRIPTION="Enter website address"
|
||||
COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_HINT="http://www.example.com"
|
||||
COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_LABEL="Website"
|
||||
COM_SERMONDISTRIBUTOR_RELEASED_THIS="released this"
|
||||
COM_SERMONDISTRIBUTOR_RESETTING_THE_UPDATE_STATUS_WAS_SUCCESSFUL="Resetting the update status was successful!"
|
||||
COM_SERMONDISTRIBUTOR_RESET_UPDATE_STATUS="Reset Update Status"
|
||||
COM_SERMONDISTRIBUTOR_RESET_UPDATE_STATUS_CAN_NOT_BE_DONE="Reset update status can not be done."
|
||||
@ -1422,13 +1432,16 @@ COM_SERMONDISTRIBUTOR_THE_README_IS_LOADING="The readme is loading"
|
||||
COM_SERMONDISTRIBUTOR_THE_UPDATE_IS_RUNNING="The update is running."
|
||||
COM_SERMONDISTRIBUTOR_THE_WIKI_IS_LOADING="The wiki is loading"
|
||||
COM_SERMONDISTRIBUTOR_THIS_SOURCE_HAS_NO_LOCAL_LISTING_SET="This source has no local listing set."
|
||||
COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS="total downloads"
|
||||
COM_SERMONDISTRIBUTOR_UNKNOWN_ERROR_HAS_OCCURRED="Unknown error has occurred."
|
||||
COM_SERMONDISTRIBUTOR_UPDATE_LOCAL_LINKS_OF_TARGET_S_EXTERNAL_SOURCE="Update Local Links of (target %s) External Source"
|
||||
COM_SERMONDISTRIBUTOR_UP_TO_DATE="Up to date"
|
||||
COM_SERMONDISTRIBUTOR_USE_BATCH="Use Batch"
|
||||
COM_SERMONDISTRIBUTOR_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method."
|
||||
COM_SERMONDISTRIBUTOR_VERSION="Version"
|
||||
COM_SERMONDISTRIBUTOR_VIEW_ERROR="View Error!"
|
||||
COM_SERMONDISTRIBUTOR_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github"
|
||||
COM_SERMONDISTRIBUTOR_VIEW_MORE_RELEASES_ON_GITHUB="View more releases on Github"
|
||||
COM_SERMONDISTRIBUTOR_VIEW_UPDATE_STATUS="View Update Status"
|
||||
COM_SERMONDISTRIBUTOR_WEBSITE="Website"
|
||||
COM_SERMONDISTRIBUTOR_YOU_DO_NOT_HAVE_PERMISSION_TO_CLEAR_LOCAL_LISTING="You do not have permission to clear local listing."
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage batchselection.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage build_option_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_under.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publlshing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_under.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publlshing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_under.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage files_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage stastics_fullwidth.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage ajax.php
|
||||
@ -51,7 +51,7 @@ class SermondistributorModelAjax extends JModelList
|
||||
public function isNew($notice)
|
||||
{
|
||||
// first get the file path
|
||||
$path_filename = SermondistributorHelper::getFilePath('user', 'notice', JFactory::getUser()->username, $fileType = '.md', JPATH_COMPONENT_ADMINISTRATOR);
|
||||
$path_filename = SermondistributorHelper::getFilePath('path', 'usernotice', 'md', JFactory::getUser()->username, JPATH_COMPONENT_ADMINISTRATOR);
|
||||
// check if the file is set
|
||||
if (($content = @file_get_contents($path_filename)) !== FALSE)
|
||||
{
|
||||
@ -69,7 +69,7 @@ class SermondistributorModelAjax extends JModelList
|
||||
public function isRead($notice)
|
||||
{
|
||||
// first get the file path
|
||||
$path_filename = SermondistributorHelper::getFilePath('user', 'notice', JFactory::getUser()->username, $fileType = '.md', JPATH_COMPONENT_ADMINISTRATOR);
|
||||
$path_filename = SermondistributorHelper::getFilePath('path', 'usernotice', 'md', JFactory::getUser()->username, JPATH_COMPONENT_ADMINISTRATOR);
|
||||
// set as read if not already set
|
||||
if (($content = @file_get_contents($path_filename)) !== FALSE)
|
||||
{
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage adminviewfolderlist.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage articles.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage externalsource.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage externalsourcefiles.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage localfiles.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage preachers.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage series.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermon.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage siteviewfolderlist.php
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermon.js
|
||||
|
@ -205,36 +205,13 @@
|
||||
<option value="3">
|
||||
COM_SERMONDISTRIBUTOR_SERMON_URL</option>
|
||||
</field>
|
||||
<!-- Icon Field. Type: Media. (joomla) -->
|
||||
<!-- Note_link_directed Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_link_directed" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_directed" close="true" />
|
||||
<!-- Auto_sermons Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="icon"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_ICON_DESCRIPTION"
|
||||
directory=""
|
||||
/>
|
||||
<!-- Tags Field. Type: Tag. (joomla) -->
|
||||
<field
|
||||
type="tag"
|
||||
name="tags"
|
||||
mode="ajax"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_TAGS_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_TAGS_DESCRIPTION"
|
||||
class="inputbox small"
|
||||
published="true"
|
||||
multiple="true"
|
||||
/>
|
||||
<!-- Local_files Field. Type: Localfiles. (custom) -->
|
||||
<field
|
||||
type="localfiles"
|
||||
name="local_files"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
default="0"
|
||||
required="true"
|
||||
button="false"
|
||||
type="hidden"
|
||||
name="auto_sermons"
|
||||
default="1"
|
||||
/>
|
||||
<!-- Description Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
@ -248,71 +225,26 @@
|
||||
buttons="false"
|
||||
filter="safehtml"
|
||||
/>
|
||||
<!-- Icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="icon"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_ICON_DESCRIPTION"
|
||||
directory=""
|
||||
/>
|
||||
<!-- Note_auto_externalsource Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_auto_externalsource" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_EXTERNALSOURCE_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_EXTERNALSOURCE_DESCRIPTION" heading="h4" class="alert alert-info note_auto_externalsource" />
|
||||
<!-- Alias Field. Type: Text. (joomla) -->
|
||||
<!-- Tags Field. Type: Tag. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="alias"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_LABEL"
|
||||
description="JFIELD_ALIAS_DESC"
|
||||
filter="STRING"
|
||||
hint="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_HINT"
|
||||
/>
|
||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="not_required"
|
||||
default="[]"
|
||||
/>
|
||||
<!-- Note_link_directed Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_link_directed" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_directed" close="true" />
|
||||
<!-- Note_manual_externalsource Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_manual_externalsource" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_EXTERNALSOURCE_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_EXTERNALSOURCE_DESCRIPTION" heading="h4" class="alert alert-info note_manual_externalsource" />
|
||||
<!-- Note_link_encrypted Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_link_encrypted" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_encrypted" close="true" />
|
||||
<!-- Manual_files Field. Type: Externalsourcefiles. (custom) -->
|
||||
<field
|
||||
type="externalsourcefiles"
|
||||
name="manual_files"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES_DESCRIPTION"
|
||||
class="list_class"
|
||||
type="tag"
|
||||
name="tags"
|
||||
mode="ajax"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_TAGS_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_TAGS_DESCRIPTION"
|
||||
class="inputbox small"
|
||||
published="true"
|
||||
multiple="true"
|
||||
default="0"
|
||||
required="true"
|
||||
button="false"
|
||||
/>
|
||||
<!-- Scripture Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="scripture"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_LABEL"
|
||||
size="90"
|
||||
maxlength="150"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
message="Error! Please add some scripture reference here."
|
||||
hint="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_HINT"
|
||||
/>
|
||||
<!-- Url Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="url"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_URL_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_URL_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add sermon url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_SERMON_URL_HINT"
|
||||
/>
|
||||
<!-- Build Field. Type: List. (joomla) -->
|
||||
<field
|
||||
@ -332,11 +264,79 @@
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_SERMON_DYNAMIC_AUTOMATIC_BUILD</option>
|
||||
</field>
|
||||
<!-- Auto_sermons Field. Type: Hidden. (joomla) -->
|
||||
<!-- Note_link_encrypted Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_link_encrypted" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_encrypted" close="true" />
|
||||
<!-- Alias Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="alias"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_LABEL"
|
||||
description="JFIELD_ALIAS_DESC"
|
||||
filter="STRING"
|
||||
hint="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_HINT"
|
||||
/>
|
||||
<!-- Local_files Field. Type: Localfiles. (custom) -->
|
||||
<field
|
||||
type="localfiles"
|
||||
name="local_files"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_LOCAL_FILES_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
default="0"
|
||||
required="true"
|
||||
button="false"
|
||||
/>
|
||||
<!-- Note_manual_externalsource Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_manual_externalsource" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_EXTERNALSOURCE_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_EXTERNALSOURCE_DESCRIPTION" heading="h4" class="alert alert-info note_manual_externalsource" />
|
||||
<!-- Scripture Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="scripture"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_LABEL"
|
||||
size="90"
|
||||
maxlength="150"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
message="Error! Please add some scripture reference here."
|
||||
hint="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_HINT"
|
||||
/>
|
||||
<!-- Manual_files Field. Type: Externalsourcefiles. (custom) -->
|
||||
<field
|
||||
type="externalsourcefiles"
|
||||
name="manual_files"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_MANUAL_FILES_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
default="0"
|
||||
required="true"
|
||||
button="false"
|
||||
/>
|
||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="auto_sermons"
|
||||
default="1"
|
||||
name="not_required"
|
||||
default="[]"
|
||||
/>
|
||||
<!-- Url Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="url"
|
||||
label="COM_SERMONDISTRIBUTOR_SERMON_URL_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_SERMONDISTRIBUTOR_SERMON_URL_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add sermon url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_SERMON_URL_HINT"
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage import.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermon.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermondistributor.php
|
||||
@ -249,97 +249,88 @@ class SermondistributorModelSermondistributor extends JModelList
|
||||
return $icons;
|
||||
}
|
||||
|
||||
|
||||
public function getGithub()
|
||||
{
|
||||
// load jquery (not sure why... but else the timeago breaks)
|
||||
JHtml::_('jquery.framework');
|
||||
// get the document to load the scripts
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScript(JURI::root() . "media/com_sermondistributor/js/marked.js");
|
||||
$document->addScript(JURI::root() . "media/com_sermondistributor/js/timeago.js");
|
||||
$document->addScriptDeclaration('
|
||||
var token = "'.JSession::getFormToken().'";
|
||||
var urlToGetAllOpenIssues = "https://api.github.com/repos/SermonDistributor/Joomla-3-Component/issues?state=open&page=1&per_page=5";
|
||||
var urlToGetAllClosedIssues = "https://api.github.com/repos/SermonDistributor/Joomla-3-Component/issues?state=closed&page=1&per_page=5";
|
||||
var urlToGetAllReleases = "https://api.github.com/repos/SermonDistributor/Joomla-3-Component/releases?page=1&per_page=5";
|
||||
jQuery(document).ready(function () {
|
||||
jQuery.getJSON(urlToGetAllOpenIssues, function (openissues) {
|
||||
jQuery("#openissues").html("");
|
||||
jQuery.each(openissues, function (i, issue) {
|
||||
// set time ago
|
||||
var timeago = jQuery.timeago(new Date(issue.created_at));
|
||||
jQuery("#openissues")
|
||||
.append("<h3><a href=\"" + issue.html_url + "\" target=\"_blank\">" + issue.title + "</a></h3>")
|
||||
.append("<small><em>#" + issue.number + " '.JText::_('COM_SERMONDISTRIBUTOR_OPENED_BY').' " + issue.user.login + "<em></small>")
|
||||
.append("<img alt=\"@" + issue.user.login + "\" style=\"vertical-align: baseline;\" src=\"" + issue.user.avatar_url +"&s=60\" width=\"30\" height=\"30\"> ")
|
||||
.append("<em><a href=\"" + issue.user.html_url + "\" target=\"_blank\">" + issue.user.login + "</a> '.JText::_('COM_SERMONDISTRIBUTOR_OPENED_THIS').' <a href=\"" + issue.html_url + "\" target=\"_blank\">'.JText::_('COM_SERMONDISTRIBUTOR_ISSUE').'-" + issue.number + "</a> (" + timeago + ")</em>")
|
||||
.append(marked(issue.body))
|
||||
.append("<a href=\"" + issue.html_url + "\" target=\"_blank\">'.JText::_('COM_SERMONDISTRIBUTOR_RESPOND_TO_THIS_ISSUE_ON_GITHUB').'</a>...<hr />");
|
||||
.append("<a href=\"" + issue.html_url + "\" target=\"_blank\"><span class=\'icon-new-tab\'></span>'.JText::_('COM_SERMONDISTRIBUTOR_RESPOND_TO_THIS_ISSUE_ON_GITHUB').'</a>...<hr />");
|
||||
});
|
||||
});
|
||||
jQuery.getJSON(urlToGetAllClosedIssues, function (closedissues) {
|
||||
jQuery("#closedissues").html("");
|
||||
jQuery.each(closedissues, function (i, issue) {
|
||||
// set time ago
|
||||
var timeago = jQuery.timeago(new Date(issue.created_at));
|
||||
jQuery("#closedissues")
|
||||
.append("<h3><a href=\"" + issue.html_url + "\" target=\"_blank\">" + issue.title + "</a></h3>")
|
||||
.append("<small><em>#" + issue.number + " '.JText::_('COM_SERMONDISTRIBUTOR_OPENED_BY').' " + issue.user.login + "<em></small>")
|
||||
.append("<img alt=\"@" + issue.user.login + "\" style=\"vertical-align: baseline;\" src=\"" + issue.user.avatar_url +"&s=60\" width=\"30\" height=\"30\"> ")
|
||||
.append("<em><a href=\"" + issue.user.html_url + "\" target=\"_blank\">" + issue.user.login + "</a> '.JText::_('COM_SERMONDISTRIBUTOR_OPENED').' <a href=\"" + issue.html_url + "\" target=\"_blank\">'.JText::_('COM_SERMONDISTRIBUTOR_ISSUE').'-" + issue.number + "</a> (" + timeago + ")</em>")
|
||||
.append(marked(issue.body))
|
||||
.append("<a href=\"" + issue.html_url + "\" target=\"_blank\">'.JText::_('COM_SERMONDISTRIBUTOR_REVIEW_THIS_ISSUE_ON_GITHUB').'</a>...<hr />");
|
||||
.append("<a href=\"" + issue.html_url + "\" target=\"_blank\"><span class=\'icon-new-tab\'></span>'.JText::_('COM_SERMONDISTRIBUTOR_REVIEW_THIS_ISSUE_ON_GITHUB').'</a>...<hr />");
|
||||
});
|
||||
});
|
||||
});
|
||||
// to check is READ/NEW
|
||||
function getIS(type,notice){
|
||||
if(type == 1){
|
||||
var getUrl = "index.php?option=com_sermondistributor&task=ajax.isNew&format=json";
|
||||
} else if (type == 2) {
|
||||
var getUrl = "index.php?option=com_sermondistributor&task=ajax.isRead&format=json";
|
||||
}
|
||||
if(token.length > 0 && notice.length){
|
||||
var request = "token="+token+"¬ice="+notice;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: "POST",
|
||||
url: getUrl,
|
||||
dataType: "jsonp",
|
||||
data: request,
|
||||
jsonp: "callback"
|
||||
});
|
||||
}
|
||||
|
||||
// nice little dot trick :)
|
||||
jQuery(document).ready( function($) {
|
||||
var x=0;
|
||||
setInterval(function() {
|
||||
var dots = "";
|
||||
x++;
|
||||
for (var y=0; y < x%8; y++) {
|
||||
dots+=".";
|
||||
jQuery.getJSON(urlToGetAllReleases, function (tagreleases) {
|
||||
// set the update notice while we are at it
|
||||
var activeVersion = tagreleases[0].tag_name.substring(1);
|
||||
if (activeVersion === manifest.version) {
|
||||
jQuery(".update-notice").html("<small><span style=\'color:green;\'><span class=\'icon-shield\'></span>'.JText::_('COM_SERMONDISTRIBUTOR_UP_TO_DATE').'</span></small>");
|
||||
} else {
|
||||
jQuery(".update-notice").html("<small><span style=\'color:red;\'><span class=\'icon-warning-circle\'></span>'.JText::_('COM_SERMONDISTRIBUTOR_OUT_OF_DATE').'</span></small>");
|
||||
}
|
||||
$(".loading-dots").text(dots);
|
||||
} , 500);
|
||||
// set the taged releases
|
||||
jQuery("#tagreleases").html("");
|
||||
jQuery.each(tagreleases, function (i, tagrelease) {
|
||||
// set active release
|
||||
var activeNotice = "";
|
||||
if (i === 0) {
|
||||
var activeNotice = "<a class=\'btn btn-small btn-success\' href=\'https://github.com/SermonDistributor/Joomla-3-Component/releases/latest\'><span class=\'icon-shield icon-white\'></span> '.JText::_('COM_SERMONDISTRIBUTOR_LATEST_RELEASE').'</a><br /><br />";
|
||||
}
|
||||
// set time ago
|
||||
var timeago = jQuery.timeago(new Date(tagrelease.published_at));
|
||||
jQuery("#tagreleases")
|
||||
.append("<h3><a href=\"" + tagrelease.html_url + "\" target=\"_blank\">" + tagrelease.name + "</a></h3>")
|
||||
.append(activeNotice)
|
||||
.append("<img alt=\"@" + tagrelease.author.login + "\" style=\"vertical-align: baseline;\" src=\"" + tagrelease.author.avatar_url +"&s=60\" width=\"30\" height=\"30\"> ")
|
||||
.append("<em><a href=\"" + tagrelease.author.html_url + "\" target=\"_blank\">" + tagrelease.author.login + "</a> '.JText::_('COM_SERMONDISTRIBUTOR_RELEASED_THIS').'<em> <b><span class=\'icon-tag-2\'></span>" + tagrelease.tag_name+ "</b> (" + timeago + ")")
|
||||
.append(marked(tagrelease.body))
|
||||
.append(" <a class=\"hasTooltip\" href=\"" + tagrelease.assets[0].browser_download_url + "\" title=\"'.JText::_('COM_SERMONDISTRIBUTOR_DOWNLOAD').' " + tagrelease.assets[0].name + "\" target=\"_self\"><span class=\'icon-download\'></span>" + tagrelease.assets[0].name + "</a> (<a class=\"hasTooltip\" href=\"" + tagrelease.assets[0].browser_download_url + "\" title=\"'.JText::_('COM_SERMONDISTRIBUTOR_TOTAL_DOWNLOADS').'\"><small>" + tagrelease.assets[0].download_count + "</small></a>) ")
|
||||
.append("| <a href=\"" + tagrelease.html_url + "\" target=\"_blank\" title=\"'.JText::_('COM_SERMONDISTRIBUTOR_OPEN').' " + tagrelease.name + " '.JText::_('COM_SERMONDISTRIBUTOR_ON_GITHUB').'\"><span class=\'icon-new-tab\'></span>'.JText::_('COM_SERMONDISTRIBUTOR_OPEN_ON_GITHUB').'</a>...<hr />");
|
||||
});
|
||||
});
|
||||
});');
|
||||
$create = '<div class="btn-group pull-right">
|
||||
<a href="https://github.com/SermonDistributor/Joomla-3-Component/issues/new" class="btn btn-primary" target="_blank">'.JText::_('COM_SERMONDISTRIBUTOR_NEW_ISSUE').'</a>
|
||||
</div></br >';
|
||||
$moreopen = '<b><a href="https://github.com/SermonDistributor/Joomla-3-Component/issues" target="_blank">'.JText::_('COM_SERMONDISTRIBUTOR_VIEW_MORE_ISSUES_ON_GITHUB').'</a>...</b>';
|
||||
$moreclosed = '<b><a href="https://github.com/SermonDistributor/Joomla-3-Component/issues?q=is%3Aissue+is%3Aclosed" target="_blank">'.JText::_('COM_SERMONDISTRIBUTOR_VIEW_MORE_ISSUES_ON_GITHUB').'</a>...</b>';
|
||||
$moreopen = '<b><a href="https://github.com/SermonDistributor/Joomla-3-Component/issues" target="_blank">'.JText::_('COM_SERMONDISTRIBUTOR_VIEW_MORE_ISSUES_ON_GITHUB').'</a>...</b> ';
|
||||
$moreclosed = '<b><a href="https://github.com/SermonDistributor/Joomla-3-Component/issues?q=is%3Aissue+is%3Aclosed" target="_blank">'.JText::_('COM_SERMONDISTRIBUTOR_VIEW_MORE_ISSUES_ON_GITHUB').'</a>...</b> ';
|
||||
$viewissues = '<b><a href="https://github.com/SermonDistributor/Joomla-3-Component/releases" target="_blank">'.JText::_('COM_SERMONDISTRIBUTOR_VIEW_MORE_RELEASES_ON_GITHUB').'</a>...</b> ';
|
||||
|
||||
return (object) array(
|
||||
'openissues' => $create.'<div id="openissues">'.JText::_('COM_SERMONDISTRIBUTOR_A_FEW_OPEN_ISSUES_FROM_GITHUB_IS_LOADING').'.<span class="loading-dots">.</span></small></div>'.$moreopen,
|
||||
'closedissues' => $create.'<div id="closedissues">'.JText::_('COM_SERMONDISTRIBUTOR_A_FEW_CLOSED_ISSUES_FROM_GITHUB_IS_LOADING').'.<span class="loading-dots">.</span></small></div>'.$moreclosed
|
||||
'closedissues' => $create.'<div id="closedissues">'.JText::_('COM_SERMONDISTRIBUTOR_A_FEW_CLOSED_ISSUES_FROM_GITHUB_IS_LOADING').'.<span class="loading-dots">.</span></small></div>'.$moreclosed,
|
||||
'tagreleases' => '<div id="tagreleases">'.JText::_('COM_SERMONDISTRIBUTOR_LAST_FEW_RELEASES_FROM_GITHUB_IS_LOADING').'.<span class="loading-dots">.</span></small></div>'.$viewissues
|
||||
);
|
||||
}
|
||||
|
||||
public function getReadme()
|
||||
{
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration('
|
||||
var getreadme = "'. JURI::root() . 'administrator/components/com_sermondistributor/README.txt";
|
||||
jQuery(document).ready(function () {
|
||||
jQuery.get(getreadme)
|
||||
.success(function(readme) {
|
||||
jQuery("#readme-md").html(marked(readme));
|
||||
})
|
||||
.error(function(jqXHR, textStatus, errorThrown) {
|
||||
jQuery("#readme-md").html("'.JText::_('COM_SERMONDISTRIBUTOR_PLEASE_CHECK_AGAIN_LATTER').'");
|
||||
});
|
||||
});');
|
||||
|
||||
return '<div id="readme-md">'.JText::_('COM_SERMONDISTRIBUTOR_THE_README_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getWiki()
|
||||
{
|
||||
$document = JFactory::getDocument();
|
||||
@ -355,13 +346,18 @@ class SermondistributorModelSermondistributor extends JModelList
|
||||
});
|
||||
});');
|
||||
|
||||
return '<div id="wiki-md">'.JText::_('COM_SERMONDISTRIBUTOR_THE_WIKI_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
return '<div id="wiki-md"><small>'.JText::_('COM_SERMONDISTRIBUTOR_THE_WIKI_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function getNoticeboard()
|
||||
{
|
||||
// get the document to load the scripts
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScript(JURI::root() . "media/com_sermondistributor/js/marked.js");
|
||||
$document->addScriptDeclaration('
|
||||
var token = "'.JSession::getFormToken().'";
|
||||
var noticeboard = "https://www.vdm.io/sermondistributor-noticeboard-md";
|
||||
jQuery(document).ready(function () {
|
||||
jQuery.get(noticeboard)
|
||||
@ -393,8 +389,56 @@ class SermondistributorModelSermondistributor extends JModelList
|
||||
.error(function(jqXHR, textStatus, errorThrown) {
|
||||
jQuery("#noticeboard-md").html("'.JText::_('COM_SERMONDISTRIBUTOR_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER').'");
|
||||
});
|
||||
});
|
||||
// to check is READ/NEW
|
||||
function getIS(type,notice){
|
||||
if(type == 1){
|
||||
var getUrl = "index.php?option=com_sermondistributor&task=ajax.isNew&format=json";
|
||||
} else if (type == 2) {
|
||||
var getUrl = "index.php?option=com_sermondistributor&task=ajax.isRead&format=json";
|
||||
}
|
||||
if(token.length > 0 && notice.length){
|
||||
var request = "token="+token+"¬ice="+notice;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: "POST",
|
||||
url: getUrl,
|
||||
dataType: "jsonp",
|
||||
data: request,
|
||||
jsonp: "callback"
|
||||
});
|
||||
}
|
||||
// nice little dot trick :)
|
||||
jQuery(document).ready( function($) {
|
||||
var x=0;
|
||||
setInterval(function() {
|
||||
var dots = "";
|
||||
x++;
|
||||
for (var y=0; y < x%8; y++) {
|
||||
dots+=".";
|
||||
}
|
||||
$(".loading-dots").text(dots);
|
||||
} , 500);
|
||||
});');
|
||||
|
||||
return '<div id="noticeboard-md">'.JText::_('COM_SERMONDISTRIBUTOR_THE_NOTICE_BOARD_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
}
|
||||
|
||||
public function getReadme()
|
||||
{
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration('
|
||||
var getreadme = "'. JURI::root() . 'administrator/components/com_sermondistributor/README.txt";
|
||||
jQuery(document).ready(function () {
|
||||
jQuery.get(getreadme)
|
||||
.success(function(readme) {
|
||||
jQuery("#readme-md").html(marked(readme));
|
||||
})
|
||||
.error(function(jqXHR, textStatus, errorThrown) {
|
||||
jQuery("#readme-md").html("'.JText::_('COM_SERMONDISTRIBUTOR_PLEASE_CHECK_AGAIN_LATTER').'");
|
||||
});
|
||||
});');
|
||||
|
||||
return '<div id="readme-md"><small>'.JText::_('COM_SERMONDISTRIBUTOR_THE_README_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
}
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermondistributor.php
|
||||
|
@ -78,8 +78,8 @@ CREATE TABLE IF NOT EXISTS `#__sermondistributor_sermon` (
|
||||
KEY `idx_series` (`series`),
|
||||
KEY `idx_catid` (`catid`),
|
||||
KEY `idx_link_type` (`link_type`),
|
||||
KEY `idx_alias` (`alias`),
|
||||
KEY `idx_build` (`build`)
|
||||
KEY `idx_build` (`build`),
|
||||
KEY `idx_alias` (`alias`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__sermondistributor_series` (
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermon.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage view.html.php
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage submitbutton.js
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage edit.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 89 of this MVC
|
||||
@build 16th February, 2017
|
||||
@version @update number 90 of this MVC
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage view.html.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default.php
|
||||
@ -76,12 +76,12 @@ JHtml::_('behavior.tooltip');
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'readme', JText::_('Readme', true)); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'releases', JText::_('Releases', true)); ?>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'readme_accordian', array('active' => 'one')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'readme_accordian', 'Information', 'one'); ?>
|
||||
<?php echo $this->loadTemplate('readme_information');?>
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'releases_accordian', array('active' => 'one')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'releases_accordian', 'Information', 'one'); ?>
|
||||
<?php echo $this->loadTemplate('releases_information');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
</div>
|
||||
@ -100,6 +100,18 @@ JHtml::_('behavior.tooltip');
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'readme', JText::_('Readme', true)); ?>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'readme_accordian', array('active' => 'one')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'readme_accordian', 'Information', 'one'); ?>
|
||||
<?php echo $this->loadTemplate('readme_information');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
|
||||
</div>
|
||||
</div>
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default_closed_issues_the_closed_issues_on_github.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default_main.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default_open_issues_the_open_issues_on_github.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default_readme_information.php
|
||||
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default_releases_information.php
|
||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
A sermon distributor that links to Dropbox.
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
?>
|
||||
<?php echo $this->github->tagreleases; ?>
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default_vast_development_method_notice_board.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage default_vdm.php
|
||||
|
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.1
|
||||
@build 21st August, 2017
|
||||
@build 24th August, 2017
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage view.html.php
|
||||
@ -50,9 +50,9 @@ class SermondistributorViewSermondistributor extends JViewLegacy
|
||||
$this->icons = $this->get('Icons');
|
||||
$this->contributors = SermondistributorHelper::getContributors();
|
||||
$this->github = $this->get('Github');
|
||||
$this->readme = $this->get('Readme');
|
||||
$this->wiki = $this->get('Wiki');
|
||||
$this->noticeboard = $this->get('Noticeboard');
|
||||
$this->noticeboard = $this->get('Noticeboard');
|
||||
$this->readme = $this->get('Readme');
|
||||
|
||||
// get the manifest details of the component
|
||||
$this->manifest = SermondistributorHelper::manifest();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user