Skip to content

Commit

Permalink
Updated license texts, added support for tags in calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
hschottm committed Mar 14, 2016
1 parent fc0fea4 commit 930f23b
Show file tree
Hide file tree
Showing 36 changed files with 310 additions and 594 deletions.
41 changes: 4 additions & 37 deletions classes/CalendarTags.php
Original file line number Diff line number Diff line change
@@ -1,44 +1,13 @@
<?php

/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright Helmut Schottmüller 2011
* @author Helmut Schottmüller <http://www.aurealis.de>
* @package Calendar
* @license LGPL
* @filesource
*/

namespace Contao;

if (!defined('TL_ROOT')) die('You can not access this file directly!');

/**
* Class CalendarTags
* Contao Open Source CMS - tags extension
*
* Provide methods regarding calendars.
* @copyright Helmut Schottmüller 2011
* @author Helmut Schottmüller <http://www.aurealis.de>
* @package Controller
* Copyright (c) 2009-2016 Helmut Schottmüller
*
* @license LGPL-3.0+
*/
class CalendarTags extends \Calendar
{
Expand Down Expand Up @@ -106,5 +75,3 @@ private function getTagsForTableAndId($table, $id, $url = false)
return $res;
}
}

?>
21 changes: 5 additions & 16 deletions classes/ContentHeadlineTags.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
<?php

/**
* @copyright Helmut Schottmüller <[email protected]>
* @author Helmut Schottmüller <[email protected]>
* @package Frontend
* @license LGPL
* @filesource
* Contao Open Source CMS - tags extension
*
* Copyright (c) 2009-2016 Helmut Schottmüller
*
* @license LGPL-3.0+
*/

namespace Contao;

if (!defined('TL_ROOT')) die('You can not access this file directly!');

/**
* Class ContentHeadline
*
* Front end content element "headline".
* @copyright Helmut Schottmüller <[email protected]>
* @author Helmut Schottmüller <[email protected]>
* @package Controller
*/
class ContentHeadlineTags extends \ContentHeadline
{
/**
Expand All @@ -33,4 +23,3 @@ public function generate()
}
}

?>
38 changes: 3 additions & 35 deletions classes/NewsTags.php
Original file line number Diff line number Diff line change
@@ -1,46 +1,15 @@
<?php

/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
* Contao Open Source CMS - tags extension
*
* Formerly known as TYPOlight Open Source CMS.
* Copyright (c) 2009-2016 Helmut Schottmüller
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright Helmut Schottmüller 2011
* @author Helmut Schottmüller <http://www.aurealis.de>
* @package News
* @license LGPL
* @filesource
* @license LGPL-3.0+
*/

namespace Contao;

if (!defined('TL_ROOT')) die('You can not access this file directly!');


/**
* Class CalendarTags
*
* Provide methods regarding news archives.
* @copyright Helmut Schottmüller 2011
* @author Helmut Schottmüller <http://www.aurealis.de>
* @package Controller
*/
class NewsTags extends \News
{
private $savedArticleId;
Expand Down Expand Up @@ -116,4 +85,3 @@ private function getTagsForTableAndId($table, $id, $url = false)
}
}

?>
37 changes: 5 additions & 32 deletions classes/TagField.php
Original file line number Diff line number Diff line change
@@ -1,41 +1,15 @@
<?php

/**
* TYPOlight webCMS
* Copyright (C) 2005 Leo Feyer
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at http://www.gnu.org/licenses/.
*
* PHP version 5
* @copyright Helmut Schottmüller 2008
* @author Helmut Schottmüller <[email protected]>
* @package Backend
* @license LGPL
* @filesource
*/

namespace Contao;

/**
* Class TagField
* Contao Open Source CMS - tags extension
*
* Copyright (c) 2009-2016 Helmut Schottmüller
*
* Provide methods to handle tag input fields.
* @copyright Helmut Schottmüller 2008
* @author Helmut Schottmüller <[email protected]>
* @package Controller
* @license LGPL-3.0+
*/

class TagField extends \TextField
{
protected $blnSubmitInput = FALSE;
Expand Down Expand Up @@ -176,4 +150,3 @@ public function validate()
}
}

?>
44 changes: 11 additions & 33 deletions classes/TagHelper.php
Original file line number Diff line number Diff line change
@@ -1,42 +1,15 @@
<?php

/**
* TYPOlight webCMS
* Copyright (C) 2005 Leo Feyer
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at http://www.gnu.org/licenses/.
*
* PHP version 5
* @copyright Helmut Schottmüller 2008-2010
* @author Helmut Schottmüller <[email protected]>
* @package memberextensions
* @license LGPL
* @filesource
*/
namespace Contao;

/**
* Class TagHelper
* Contao Open Source CMS - tags extension
*
* Copyright (c) 2008-2016 Helmut Schottmüller
*
* Helper class for tags
* @copyright Helmut Schottmüller 2008-2010
* @author Helmut Schottmüller <[email protected]>
* @package Controller
* @license LGPL-3.0+
*/

namespace Contao;

class TagHelper extends \Backend
{
/**
Expand All @@ -48,6 +21,11 @@ public function __construct()
$this->import('Database');
}

public function getAllEvents($arrEvents, $arrCalendars, $intStart, $intEnd, $caller)
{
return $arrEvents;
}

/*
* Cleanup all tags that are associated to no longer existing TYPOlight objects
*/
Expand Down Expand Up @@ -334,6 +312,7 @@ public function getTagsAndTaglistForIdAndTable($id, $table, $jumpto)
foreach ($tags as $id => $tag)
{
$strUrl = ampersand($this->generateFrontendUrl($pageArr, $items . '/tag/' . \System::urlencode($tag)));
if (strlen(\Environment::get('queryString'))) $strUrl .= "?" . \Environment::get('queryString');
$tags[$id] = '<a href="' . $strUrl . '">' . specialchars($tag) . '</a>';
$taglist[$id] = array(
'url' => $tags[$id],
Expand Down Expand Up @@ -392,4 +371,3 @@ public function generateNewsFeed()
}
}

?>
41 changes: 5 additions & 36 deletions classes/TagList.php
Original file line number Diff line number Diff line change
@@ -1,44 +1,15 @@
<?php

/**
* TYPOlight webCMS
* Copyright (C) 2005 Leo Feyer
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at http://www.gnu.org/licenses/.
*
* PHP version 5
* @copyright Helmut Schottmüller 2008
* @author Helmut Schottmüller <[email protected]>
* @package Backend
* @license LGPL
* @filesource
*/

namespace Contao;

if (!defined('TL_ROOT')) die('You can not access this file directly!');


/**
* Class TagList
* Contao Open Source CMS - tags extension
*
* Provide methods to handle tag input fields.
* @copyright Helmut Schottmüller 2008
* @author Helmut Schottmüller <[email protected]>
* @package Controller
* Copyright (c) 2008-2016 Helmut Schottmüller
*
* @license LGPL-3.0+
*/

class TagList extends \System
{
protected $forTable = "";
Expand Down Expand Up @@ -527,5 +498,3 @@ public function __get($strKey)
}
}
}

?>
29 changes: 4 additions & 25 deletions config/config.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
<?php

/**
* TYPOlight webCMS
* Copyright (C) 2005 Leo Feyer
* Contao Open Source CMS - tags extension
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at http://www.gnu.org/licenses/.
* Copyright (c) 2008-2016 Helmut Schottmüller
*
* PHP version 5
* @copyright Helmut Schottmüller 2008
* @author Helmut Schottmüller <[email protected]>
* @package Backend
* @license LGPL
* @filesource
* @license LGPL-3.0+
*/


/**
* Form fields
*/
Expand Down Expand Up @@ -59,7 +40,6 @@
$GLOBALS['FE_MOD']['news']['newslist'] = 'ModuleNewsListTags';
$GLOBALS['FE_MOD']['news']['newsarchive'] = 'ModuleNewsArchiveTags';
$GLOBALS['FE_MOD']['news']['newsreader'] = 'ModuleNewsReaderTags';
$GLOBALS['FE_MOD']['events']['calendar'] = 'ModuleCalendarTags';
$GLOBALS['FE_MOD']['events']['eventlist'] = 'ModuleEventlistTags';
$GLOBALS['FE_MOD']['events']['eventreader'] = 'ModuleEventReaderTags';
$GLOBALS['FE_MOD']['faq']['faqlist'] = 'ModuleFaqListTags';
Expand Down Expand Up @@ -144,4 +124,3 @@
}
}

?>
8 changes: 8 additions & 0 deletions dca/tl_article.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/**
* Contao Open Source CMS - tags extension
*
* Copyright (c) 2008-2016 Helmut Schottmüller
*
* @license LGPL-3.0+
*/

class tl_article_tags extends tl_article
{
public function removeArticle($dc)
Expand Down
Loading

0 comments on commit 930f23b

Please sign in to comment.