You've already forked joomla_test
first commit
This commit is contained in:
1155
modules/mod_k2_tools/helper.php
Normal file
1155
modules/mod_k2_tools/helper.php
Normal file
File diff suppressed because it is too large
Load Diff
420
modules/mod_k2_tools/includes/calendarClass.php
Normal file
420
modules/mod_k2_tools/includes/calendarClass.php
Normal file
@ -0,0 +1,420 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: calendarClass.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// PHP Calendar Class Version 1.4 (5th March 2001)
|
||||
//
|
||||
// Copyright David Wilkinson 2000 - 2001. All Rights reserved.
|
||||
//
|
||||
// This software may be used, modified and distributed freely
|
||||
// providing this copyright notice remains intact at the head
|
||||
// of the file.
|
||||
//
|
||||
// This software is freeware. The author accepts no liability for
|
||||
// any loss or damages whatsoever incurred directly or indirectly
|
||||
// from the use of this script. The author of this software makes
|
||||
// no claims as to its fitness for any purpose whatsoever. If you
|
||||
// wish to use this software you should first satisfy yourself that
|
||||
// it meets your requirements.
|
||||
//
|
||||
// URL: http://www.cascade.org.uk/software/php/calendar/
|
||||
// Email: davidw@cascade.org.uk
|
||||
|
||||
|
||||
class Calendar
|
||||
{
|
||||
/*
|
||||
Constructor for the Calendar class
|
||||
*/
|
||||
function Calendar()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Get the array of strings used to label the days of the week. This array contains seven
|
||||
elements, one for each day of the week. The first entry in this array represents Sunday.
|
||||
*/
|
||||
function getDayNames()
|
||||
{
|
||||
return $this->dayNames;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Set the array of strings used to label the days of the week. This array must contain seven
|
||||
elements, one for each day of the week. The first entry in this array represents Sunday.
|
||||
*/
|
||||
function setDayNames($names)
|
||||
{
|
||||
$this->dayNames = $names;
|
||||
}
|
||||
|
||||
/*
|
||||
Get the array of strings used to label the months of the year. This array contains twelve
|
||||
elements, one for each month of the year. The first entry in this array represents January.
|
||||
*/
|
||||
function getMonthNames()
|
||||
{
|
||||
return $this->monthNames;
|
||||
}
|
||||
|
||||
/*
|
||||
Set the array of strings used to label the months of the year. This array must contain twelve
|
||||
elements, one for each month of the year. The first entry in this array represents January.
|
||||
*/
|
||||
function setMonthNames($names)
|
||||
{
|
||||
$this->monthNames = $names;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Gets the start day of the week. This is the day that appears in the first column
|
||||
of the calendar. Sunday = 0.
|
||||
*/
|
||||
function getStartDay()
|
||||
{
|
||||
return $this->startDay;
|
||||
}
|
||||
|
||||
/*
|
||||
Sets the start day of the week. This is the day that appears in the first column
|
||||
of the calendar. Sunday = 0.
|
||||
*/
|
||||
function setStartDay($day)
|
||||
{
|
||||
$this->startDay = $day;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Gets the start month of the year. This is the month that appears first in the year
|
||||
view. January = 1.
|
||||
*/
|
||||
function getStartMonth()
|
||||
{
|
||||
return $this->startMonth;
|
||||
}
|
||||
|
||||
/*
|
||||
Sets the start month of the year. This is the month that appears first in the year
|
||||
view. January = 1.
|
||||
*/
|
||||
function setStartMonth($month)
|
||||
{
|
||||
$this->startMonth = $month;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Return the URL to link to in order to display a calendar for a given month/year.
|
||||
You must override this method if you want to activate the "forward" and "back"
|
||||
feature of the calendar.
|
||||
|
||||
Note: If you return an empty string from this function, no navigation link will
|
||||
be displayed. This is the default behaviour.
|
||||
|
||||
If the calendar is being displayed in "year" view, $month will be set to zero.
|
||||
*/
|
||||
function getCalendarLink($month, $year)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
/*
|
||||
Return the URL to link to for a given date.
|
||||
You must override this method if you want to activate the date linking
|
||||
feature of the calendar.
|
||||
|
||||
Note: If you return an empty string from this function, no navigation link will
|
||||
be displayed. This is the default behaviour.
|
||||
*/
|
||||
function getDateLink($day, $month, $year)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Return the HTML for the current month
|
||||
*/
|
||||
function getCurrentMonthView()
|
||||
{
|
||||
$d = getdate(time());
|
||||
return $this->getMonthView($d["mon"], $d["year"]);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Return the HTML for the current year
|
||||
*/
|
||||
function getCurrentYearView()
|
||||
{
|
||||
$d = getdate(time());
|
||||
return $this->getYearView($d["year"]);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Return the HTML for a specified month
|
||||
*/
|
||||
function getMonthView($month, $year)
|
||||
{
|
||||
return $this->getMonthHTML($month, $year);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Return the HTML for a specified year
|
||||
*/
|
||||
function getYearView($year)
|
||||
{
|
||||
return $this->getYearHTML($year);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/********************************************************************************
|
||||
|
||||
The rest are private methods. No user-servicable parts inside.
|
||||
|
||||
You shouldn't need to call any of these functions directly.
|
||||
|
||||
*********************************************************************************/
|
||||
|
||||
|
||||
/*
|
||||
Calculate the number of days in a month, taking into account leap years.
|
||||
*/
|
||||
function getDaysInMonth($month, $year)
|
||||
{
|
||||
if ($month < 1 || $month > 12)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
$d = $this->daysInMonth[$month - 1];
|
||||
|
||||
if ($month == 2)
|
||||
{
|
||||
// Check for leap year
|
||||
// Forget the 4000 rule, I doubt I'll be around then...
|
||||
|
||||
if ($year%4 == 0)
|
||||
{
|
||||
if ($year%100 == 0)
|
||||
{
|
||||
if ($year%400 == 0)
|
||||
{
|
||||
$d = 29;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$d = 29;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $d;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Generate the HTML for a given month
|
||||
*/
|
||||
function getMonthHTML($m, $y, $showYear = 1)
|
||||
{
|
||||
$s = "";
|
||||
|
||||
$a = $this->adjustDate($m, $y);
|
||||
$month = $a[0];
|
||||
$year = $a[1];
|
||||
|
||||
$daysInMonth = $this->getDaysInMonth($month, $year);
|
||||
$date = getdate(mktime(12, 0, 0, $month, 1, $year));
|
||||
|
||||
$first = $date["wday"];
|
||||
$monthName = $this->monthNames[$month - 1];
|
||||
|
||||
$prev = $this->adjustDate($month - 1, $year);
|
||||
$next = $this->adjustDate($month + 1, $year);
|
||||
|
||||
if ($showYear == 1)
|
||||
{
|
||||
$prevMonth = $this->getCalendarLink($prev[0], $prev[1]);
|
||||
$nextMonth = $this->getCalendarLink($next[0], $next[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$prevMonth = "";
|
||||
$nextMonth = "";
|
||||
}
|
||||
|
||||
$header = $monthName . (($showYear > 0) ? " " . $year : "");
|
||||
|
||||
$s .= "<table class=\"calendar\">\n";
|
||||
$s .= "<tr>\n";
|
||||
$s .= "<td class=\"calendarNavMonthPrev\">" . (($prevMonth == "") ? " " : "<a class=\"calendarNavLink\" href=\"$prevMonth\">«</a>") . "</td>\n";
|
||||
$s .= "<td class=\"calendarCurrentMonth\" colspan=\"5\">$header</td>\n";
|
||||
$s .= "<td class=\"calendarNavMonthNext\">" . (($nextMonth == "") ? " " : "<a class=\"calendarNavLink\" href=\"$nextMonth\">»</a>") . "</td>\n";
|
||||
$s .= "</tr>\n";
|
||||
|
||||
$s .= "<tr>\n";
|
||||
$s .= "<td class=\"calendarDayName\" style=\"width:".round(100/7)."%\">" . $this->dayNames[($this->startDay)%7] . "</td>\n";
|
||||
$s .= "<td class=\"calendarDayName\" style=\"width:".round(100/7)."%\">" . $this->dayNames[($this->startDay+1)%7] . "</td>\n";
|
||||
$s .= "<td class=\"calendarDayName\" style=\"width:".round(100/7)."%\">" . $this->dayNames[($this->startDay+2)%7] . "</td>\n";
|
||||
$s .= "<td class=\"calendarDayName\" style=\"width:".round(100/7)."%\">" . $this->dayNames[($this->startDay+3)%7] . "</td>\n";
|
||||
$s .= "<td class=\"calendarDayName\" style=\"width:".round(100/7)."%\">" . $this->dayNames[($this->startDay+4)%7] . "</td>\n";
|
||||
$s .= "<td class=\"calendarDayName\" style=\"width:".round(100/7)."%\">" . $this->dayNames[($this->startDay+5)%7] . "</td>\n";
|
||||
$s .= "<td class=\"calendarDayName\" style=\"width:".round(100/7)."%\">" . $this->dayNames[($this->startDay+6)%7] . "</td>\n";
|
||||
$s .= "</tr>\n";
|
||||
|
||||
// We need to work out what date to start at so that the first appears in the correct column
|
||||
$d = $this->startDay + 1 - $first;
|
||||
while ($d > 1)
|
||||
{
|
||||
$d -= 7;
|
||||
}
|
||||
|
||||
// Make sure we know when today is, so that we can use a different CSS style
|
||||
$today = getdate(time());
|
||||
|
||||
while ($d <= $daysInMonth)
|
||||
{
|
||||
$s .= "<tr>\n";
|
||||
|
||||
for ($i = 0; $i < 7; $i++)
|
||||
{
|
||||
$class = ($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "calendarToday" : "calendarDate";
|
||||
|
||||
if ($d > 0 && $d <= $daysInMonth){
|
||||
$link = $this->getDateLink($d, $month, $year);
|
||||
if($link == ""){
|
||||
$s .= "<td class=\"{$class}\">$d</td>\n";
|
||||
} else {
|
||||
$s .= "<td class=\"{$class}Linked\"><a href=\"$link\">$d</a></td>\n";
|
||||
}
|
||||
} else {
|
||||
$s .= "<td class=\"calendarDateEmpty\"> </td>\n";
|
||||
}
|
||||
|
||||
$d++;
|
||||
}
|
||||
$s .= "</tr>\n";
|
||||
}
|
||||
|
||||
$s .= "</table>\n";
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Generate the HTML for a given year
|
||||
*/
|
||||
function getYearHTML($year)
|
||||
{
|
||||
$s = "";
|
||||
$prev = $this->getCalendarLink(0, $year - 1);
|
||||
$next = $this->getCalendarLink(0, $year + 1);
|
||||
|
||||
$s .= "<table class=\"calendar\" border=\"0\">\n";
|
||||
$s .= "<tr>";
|
||||
$s .= "<td class=\"calendarNavMonthPrev\">" . (($prev == "") ? " " : "<a class=\"calendarNavLink\" href=\"$prev\">«</a>") . "</td>\n";
|
||||
$s .= "<td class=\"calendarCurrentMonth\">" . (($this->startMonth > 1) ? $year . " - " . ($year + 1) : $year) ."</td>\n";
|
||||
$s .= "<td class=\"calendarNavMonthNext\">" . (($next == "") ? " " : "<a class=\"calendarNavLink\" href=\"$next\">»</a>") . "</td>\n";
|
||||
$s .= "</tr>\n";
|
||||
$s .= "<tr>";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(0 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(1 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(2 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "</tr>\n";
|
||||
$s .= "<tr>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(3 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(4 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(5 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "</tr>\n";
|
||||
$s .= "<tr>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(6 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(7 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(8 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "</tr>\n";
|
||||
$s .= "<tr>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(9 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(10 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "<td class=\"calendarMonth\">" . $this->getMonthHTML(11 + $this->startMonth, $year, 0) ."</td>\n";
|
||||
$s .= "</tr>\n";
|
||||
$s .= "</table>\n";
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
/*
|
||||
Adjust dates to allow months > 12 and < 0. Just adjust the years appropriately.
|
||||
e.g. Month 14 of the year 2001 is actually month 2 of year 2002.
|
||||
*/
|
||||
function adjustDate($month, $year)
|
||||
{
|
||||
$a = array();
|
||||
$a[0] = $month;
|
||||
$a[1] = $year;
|
||||
|
||||
while ($a[0] > 12)
|
||||
{
|
||||
$a[0] -= 12;
|
||||
$a[1]++;
|
||||
}
|
||||
|
||||
while ($a[0] <= 0)
|
||||
{
|
||||
$a[0] += 12;
|
||||
$a[1]--;
|
||||
}
|
||||
|
||||
return $a;
|
||||
}
|
||||
|
||||
/*
|
||||
The start day of the week. This is the day that appears in the first column
|
||||
of the calendar. Sunday = 0.
|
||||
*/
|
||||
var $startDay = 0;
|
||||
|
||||
/*
|
||||
The start month of the year. This is the month that appears in the first slot
|
||||
of the calendar in the year view. January = 1.
|
||||
*/
|
||||
var $startMonth = 1;
|
||||
|
||||
/*
|
||||
The labels to display for the days of the week. The first entry in this array
|
||||
represents Sunday.
|
||||
*/
|
||||
var $dayNames = array("S", "M", "T", "W", "T", "F", "S");
|
||||
|
||||
/*
|
||||
The labels to display for the months of the year. The first entry in this array
|
||||
represents January.
|
||||
*/
|
||||
var $monthNames = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
|
||||
|
||||
/*
|
||||
The number of days in each month. You're unlikely to want to change this...
|
||||
The first entry in this array represents January.
|
||||
*/
|
||||
var $daysInMonth = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
|
||||
|
||||
}
|
||||
|
||||
?>
|
1
modules/mod_k2_tools/index.html
Normal file
1
modules/mod_k2_tools/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
114
modules/mod_k2_tools/mod_k2_tools.php
Normal file
114
modules/mod_k2_tools/mod_k2_tools.php
Normal file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: mod_k2_tools.php 1899 2013-02-08 18:57:03Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die ;
|
||||
|
||||
if (K2_JVERSION != '15')
|
||||
{
|
||||
$language = JFactory::getLanguage();
|
||||
$language->load('mod_k2.j16', JPATH_ADMINISTRATOR, null, true);
|
||||
}
|
||||
|
||||
require_once (dirname(__FILE__).DS.'helper.php');
|
||||
|
||||
// Params
|
||||
$moduleclass_sfx = $params->get('moduleclass_sfx', '');
|
||||
$module_usage = $params->get('module_usage', 0);
|
||||
$authorAvatarWidthSelect = $params->get('authorAvatarWidthSelect', 'custom');
|
||||
$authorAvatarWidth = $params->get('authorAvatarWidth', 50);
|
||||
$button = $params->get('button', '');
|
||||
$imagebutton = $params->get('imagebutton', '');
|
||||
$button_pos = $params->get('button_pos', 'left');
|
||||
$button_text = $params->get('button_text', JText::_('K2_SEARCH'));
|
||||
$width = intval($params->get('width', 20));
|
||||
$maxlength = $width > 20 ? $width : 20;
|
||||
$text = $params->get('text', JText::_('K2_SEARCH'));
|
||||
|
||||
if (K2_JVERSION == '15')
|
||||
{
|
||||
JHTML::_('behavior.mootools');
|
||||
}
|
||||
else
|
||||
{
|
||||
JHTML::_('behavior.framework');
|
||||
|
||||
}
|
||||
|
||||
// API
|
||||
$document = JFactory::getDocument();
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
// Output
|
||||
switch ($module_usage)
|
||||
{
|
||||
|
||||
case '0' :
|
||||
$months = modK2ToolsHelper::getArchive($params);
|
||||
if (count($months))
|
||||
{
|
||||
require (JModuleHelper::getLayoutPath('mod_k2_tools', 'archive'));
|
||||
}
|
||||
break;
|
||||
|
||||
case '1' :
|
||||
// User avatar
|
||||
if ($authorAvatarWidthSelect == 'inherit')
|
||||
{
|
||||
$componentParams = JComponentHelper::getParams('com_k2');
|
||||
$avatarWidth = $componentParams->get('userImageWidth');
|
||||
}
|
||||
else
|
||||
{
|
||||
$avatarWidth = $authorAvatarWidth;
|
||||
}
|
||||
$authors = modK2ToolsHelper::getAuthors($params);
|
||||
require (JModuleHelper::getLayoutPath('mod_k2_tools', 'authors'));
|
||||
break;
|
||||
|
||||
case '2' :
|
||||
$calendar = modK2ToolsHelper::calendar($params);
|
||||
require (JModuleHelper::getLayoutPath('mod_k2_tools', 'calendar'));
|
||||
break;
|
||||
|
||||
case '3' :
|
||||
$breadcrumbs = modK2ToolsHelper::breadcrumbs($params);
|
||||
$path = $breadcrumbs[0];
|
||||
$title = $breadcrumbs[1];
|
||||
require (JModuleHelper::getLayoutPath('mod_k2_tools', 'breadcrumbs'));
|
||||
break;
|
||||
|
||||
case '4' :
|
||||
$output = modK2ToolsHelper::treerecurse($params, 0, 0, true);
|
||||
require (JModuleHelper::getLayoutPath('mod_k2_tools', 'categories'));
|
||||
break;
|
||||
|
||||
case '5' :
|
||||
echo modK2ToolsHelper::treeselectbox($params);
|
||||
break;
|
||||
|
||||
case '6' :
|
||||
$categoryFilter = modK2ToolsHelper::getSearchCategoryFilter($params);
|
||||
$action = JRoute::_(K2HelperRoute::getSearchRoute());
|
||||
require (JModuleHelper::getLayoutPath('mod_k2_tools', 'search'));
|
||||
break;
|
||||
|
||||
case '7' :
|
||||
$tags = modK2ToolsHelper::tagCloud($params);
|
||||
if (count($tags))
|
||||
{
|
||||
require (JModuleHelper::getLayoutPath('mod_k2_tools', 'tags'));
|
||||
}
|
||||
break;
|
||||
|
||||
case '8' :
|
||||
$customcode = modK2ToolsHelper::renderCustomCode($params);
|
||||
require (JModuleHelper::getLayoutPath('mod_k2_tools', 'customcode'));
|
||||
break;
|
||||
}
|
147
modules/mod_k2_tools/mod_k2_tools.xml
Normal file
147
modules/mod_k2_tools/mod_k2_tools.xml
Normal file
@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="module" client="site" version="2.5" method="upgrade">
|
||||
<name>K2 Tools</name>
|
||||
<author>JoomlaWorks</author>
|
||||
<creationDate>July 8th, 2013</creationDate>
|
||||
<copyright>Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.</copyright>
|
||||
<authorEmail>please-use-the-contact-form@joomlaworks.net</authorEmail>
|
||||
<authorUrl>www.joomlaworks.net</authorUrl>
|
||||
<version>2.6.7</version>
|
||||
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
|
||||
<description>K2_TOOLS</description>
|
||||
<files>
|
||||
<filename module="mod_k2_tools">mod_k2_tools.php</filename>
|
||||
<filename>helper.php</filename>
|
||||
<filename>index.html</filename>
|
||||
<folder>includes</folder>
|
||||
<folder>tmpl</folder>
|
||||
</files>
|
||||
<config>
|
||||
<fields name="params">
|
||||
<fieldset name="basic" addfieldpath="/administrator/components/com_k2/elements/">
|
||||
<field name="moduleclass_sfx" type="text" default="" label="K2_MODULE_CLASS_SUFFIX" description="K2_MODULE_CLASS_SUFFIX_DESCRIPTION"/>
|
||||
<field name="module_usage" type="list" default="0" label="K2_SELECT_MODULE_FUNCTIONALITY" description="">
|
||||
<option value="0">K2_ARCHIVE</option>
|
||||
<option value="1">K2_AUTHORS_LIST</option>
|
||||
<option value="2">K2_BLOGSTYLE_CALENDAR_NO_OPTIONS</option>
|
||||
<option value="3">K2_BREADCRUMBS</option>
|
||||
<option value="4">K2_CATEGORIES_LIST_MENU</option>
|
||||
<option value="5">K2_CATEGORY_SELECT_BOX</option>
|
||||
<option value="6">K2_SEARCH_BOX</option>
|
||||
<option value="7">K2_TAG_CLOUD</option>
|
||||
<option value="8">K2_CUSTOM_CODE</option>
|
||||
</field>
|
||||
<!-- K2_ARCHIVE_SETTINGS -->
|
||||
<field name="" type="header" default="K2_ARCHIVE_SETTINGS" label="" description=""/>
|
||||
<field name="archiveItemsCounter" type="radio" default="1" label="K2_ITEMS_COUNTER" description="">
|
||||
<option value="0">K2_HIDE</option>
|
||||
<option value="1">K2_SHOW</option>
|
||||
</field>
|
||||
<field name="archiveCategory" type="categories" label="K2_CATEGORY_FILTER" description="" default=""/>
|
||||
<!-- Authors List Settings -->
|
||||
<field name="" type="header" default="K2_AUTHORS_LIST_SETTINGS" label="" description=""/>
|
||||
<field name="authors_module_category" type="categories" default="" label="K2_FILTER_AUTHORS_BY_ROOT_CATEGORY" description="K2_SELECT_THE_ROOT_CATEGORY_FOR_WHICH_YOU_WANT_TO_FILTER_AN_AUTHOR_LIST_SELECT_NONE_TO_FETCH_AUTHORS_FROM_ALL_CATEGORIES"/>
|
||||
<field name="authorItemsCounter" type="radio" default="1" label="K2_ITEMS_COUNTER" description="">
|
||||
<option value="0">K2_HIDE</option>
|
||||
<option value="1">K2_SHOW</option>
|
||||
</field>
|
||||
<field name="authorAvatar" type="radio" default="1" label="K2_AUTHOR_AVATAR" description="">
|
||||
<option value="0">K2_HIDE</option>
|
||||
<option value="1">K2_SHOW</option>
|
||||
</field>
|
||||
<field name="authorAvatarWidthSelect" type="list" default="custom" label="K2_AUTHOR_AVATAR_WIDTH" description="">
|
||||
<option value="inherit">K2_INHERIT_FROM_COMPONENT_PARAMETERS</option>
|
||||
<option value="custom">K2_USE_CUSTOM_WIDTH</option>
|
||||
</field>
|
||||
<field name="authorAvatarWidth" type="text" default="50" size="4" label="K2_CUSTOM_WIDTH_FOR_AUTHOR_AVATAR_IN_PX" description=""/>
|
||||
<field name="authorLatestItem" type="radio" default="1" label="K2_LATEST_ITEM_WRITTEN_BY_AUTHOR" description="">
|
||||
<option value="0">K2_HIDE</option>
|
||||
<option value="1">K2_SHOW</option>
|
||||
</field>
|
||||
<!-- Calendar Settings -->
|
||||
<field name="" type="header" default="K2_CALENDAR_SETTINGS" label="" description=""/>
|
||||
<field name="calendarCategory" type="categories" label="K2_CATEGORY_FILTER" description="" default=""/>
|
||||
<!-- Breadcrumbs Settings -->
|
||||
<field name="" type="header" default="K2_BREADCRUMBS_SETTINGS" label="" description=""/>
|
||||
<field name="home" type="text" default="" label="K2_ROOT_LABEL_EG_HOME" description="K2_THE_LABEL_FOR_THE_HOME_LINK_LEAVE_THIS_BLANK_IF_YOU_DONT_WISH_TO_INCLUDE_A_HOME_LINK_IN_YOUR_PATH"/>
|
||||
<field name="seperator" type="text" default="" label="K2_PATH_SEPARATOR" description="K2_THE_PATH_SEPARATOR_EG_A_RIGHT_ARROW"/>
|
||||
<!-- Categories List (Menu) Settings -->
|
||||
<field name="" type="header" default="K2_CATEGORIES_LIST_MENU_SETTINGS" label="" description=""/>
|
||||
<field name="root_id" type="categories" default="" label="K2_SELECT_ROOT_CATEGORY" description="K2_SELECT_THE_ROOT_CATEGORY_FOR_WHICH_YOU_WANT_TO_CREATE_A_CATEGORY_LIST_SELECT_NONE_TO_FETCH_A_LIST_OF_ALL_CATEGORIES"/>
|
||||
<field name="end_level" type="text" default="" size="4" label="K2_LEVELS_TO_RENDER" description="K2_SELECT_THE_NUMBER_OF_LEVELS_YOU_WISH_TO_RENDER_LEAVE_THIS_BLANK_IF_YOU_WISH_TO_RENDER_ALL_THE_LEVELS_BELOW_THE_SELECTED_ROOT_CATEGORY"/>
|
||||
<field name="categoriesListOrdering" type="list" default="" label="K2_ORDER_BY" description="">
|
||||
<option value="">K2_DEFAULT_BY_ID_ASCENDING</option>
|
||||
<option value="reversedefault">K2_REVERSE_DEFAULT_BY_ID_DESCENDING</option>
|
||||
<option value="alpha">K2_NAME_ALPHABETICAL</option>
|
||||
<option value="ralpha">K2_NAME_REVERSE_ALPHABETICAL</option>
|
||||
<option value="order">K2_ORDERING</option>
|
||||
</field>
|
||||
<field name="categoriesListItemsCounter" type="radio" default="1" label="K2_ITEMS_COUNTER" description="">
|
||||
<option value="0">K2_HIDE</option>
|
||||
<option value="1">K2_SHOW</option>
|
||||
</field>
|
||||
<!-- Category Select Box Settings -->
|
||||
<field name="" type="header" default="K2_CATEGORY_SELECT_BOX_SETTINGS" label="" description=""/>
|
||||
<field name="root_id2" type="categories" default="" label="K2_SELECT_ROOT_CATEGORY" description="K2_SELECT_THE_ROOT_CATEGORY_FOR_WHICH_YOU_WANT_TO_CREATE_A_CATEGORY_DROPDOWN_LIST_SELECT_NONE_TO_CREATE_A_DROPDOWN_LIST_FROM_ALL_CATEGORIES"/>
|
||||
<!-- Search Box Settings -->
|
||||
<field name="" type="header" default="K2_SEARCH_BOX_SETTINGS" label="" description=""/>
|
||||
<field name="catfilter" type="radio" default="0" label="K2_CATEGORY_FILTER" description="">
|
||||
<option value="0">K2_ALL</option>
|
||||
<option value="1">K2_SELECT</option>
|
||||
</field>
|
||||
<field name="category_id" type="categoriesmultiple" default="" label="K2_RESTRICT_SEARCH_RESULTS_TO_ONE_OR_MORE_CATEGORIES" description="K2_BY_CHOOSING_SPECIFIC_CATEGORIES_HERE_YOU_CAN_NARROW_DOWN_SEARCH_RESULTS_TO_ITEMS_BELONGING_IN_THE_SELECTED_CATEGORIES_THIS_OPTION_IS_VERY_HANDY_IF_YOU_ARE_DEVELOPING_A_WEBSITE_FOR_BOTH_GUEST_VISITORS_AND_REGISTERED_MEMBERS_EG_INTRANET_AND_YOU_WANT_TO_RESTRICT_SEARCH_RESULTS_FOR_GUEST_VISITORS_ONLY_TO_CATEGORIES_THAT_THEY_ARE_ALLOWED_TO_VIEW"/>
|
||||
<field name="getChildren" type="radio" default="0" label="K2_FETCH_ITEMS_FROM_CHILDREN_CATEGORIES" description="">
|
||||
<option value="0">K2_NO</option>
|
||||
<option value="1">K2_YES</option>
|
||||
</field>
|
||||
<field name="liveSearch" type="radio" default="" label="K2_ENABLE_LIVE_SEARCH" description="K2_IF_YOU_ENABLE_THIS_OPTION_SEARCH_RESULTS_WILL_BE_DISPLAYED_RIGHT_BELOW_THE_SEARCH_BOX_AS_YOU_TYPE_YOUR_SEARCH_QUERY">
|
||||
<option value="">K2_NO</option>
|
||||
<option value="1">K2_YES</option>
|
||||
</field>
|
||||
<field name="width" type="text" default="20" size="4" label="K2_SEARCH_BOX_MAXIMUM_CHARACTER_LENGTH" description="K2_THE_NUMBER_OF_ALLOWED_CHARACTERS_TO_BE_INPUT_IN_THE_SEARCH_BOX"/>
|
||||
<field name="text" type="text" default="" label="K2_SEARCH_BOX_DEFAULT_TEXT" description="K2_THE_TEXT_TO_DISPLAY_BY_DEFAULT_IN_THE_SEARCH_BOX"/>
|
||||
<field name="button" type="radio" default="" label="K2_SHOW_SEARCH_BUTTON" description="">
|
||||
<option value="">K2_NO</option>
|
||||
<option value="1">K2_YES</option>
|
||||
</field>
|
||||
<field name="imagebutton" type="radio" default="" label="K2_SEARCH_BUTTON_AS_IMAGE" description="K2_USE_AN_IMAGE_AS_THE_SEARCH_BUTTON">
|
||||
<option value="">K2_NO</option>
|
||||
<option value="1">K2_YES</option>
|
||||
</field>
|
||||
<field name="button_text" type="text" default="" label="K2_SEARCH_BUTTON_TEXT" description="K2_SET_THE_DEFAULT_TEXT_WHICH_WILL_APPEAR_ON_THE_SEARCH_BOX_EG_SEARCH_SITE"/>
|
||||
<!-- Tag Cloud Settings -->
|
||||
<field name="" type="header" default="K2_TAG_CLOUD_SETTINGS" label="" description=""/>
|
||||
<field name="min_size" type="text" default="75" size="4" label="K2_MIN_FONT_SIZE" description="K2_FONT_SIZE_FOR_LESS_POPULAR_TAGS"/>
|
||||
<field name="max_size" type="text" default="300" size="4" label="K2_MAX_FONT_SIZE" description="K2_FONT_SIZE_FOR_MOST_POPULAR_TAGS"/>
|
||||
<field name="cloud_limit" type="text" default="30" size="4" label="K2_TAG_LIMIT_X_MOST_POPULAR" description="K2_SELECT_THE_X_MOST_POPULAR_TAGS_TO_DISPLAY"/>
|
||||
<field name="cloud_category" type="categories" multiple="multiple" default="0" label="K2_FILTER_TAGS_FROM_ONE_OR_MORE_CATEGORIES" description="K2_TO_SELECT_MULTIPLE_CATEGORIES_PRESS_AND_KEEP_CTRLCMD_AND_THEN_CLICK_ON_THE_DESIRED_CATEGORIES"/>
|
||||
<field name="cloud_category_recursive" type="radio" default="0" label="K2_APPLY_TAG_CATEGORY_FILTER_RECURSIVELY_TO_ALL_SUBCATEGORIES" description="">
|
||||
<option value="0">K2_NO</option>
|
||||
<option value="1">K2_YES</option>
|
||||
</field>
|
||||
<!-- Custom code settings -->
|
||||
<field name="" type="header" default="K2_CUSTOM_CODE_SETTINGS" label="" description=""/>
|
||||
<field name="customCode" type="textarea" filter="raw" default="" label="K2_ADD_CUSTOM_HTML_CSS_JS_OR_PHP_CODE" description="" cols="60" rows="20" />
|
||||
<field name="parsePhp" type="radio" default="0" label="K2_PARSE_PHP_CODE" description="">
|
||||
<option value="0">K2_NO</option>
|
||||
<option value="1">K2_YES</option>
|
||||
</field>
|
||||
<field name="K2Plugins" type="radio" default="0" label="K2_ENABLE_K2_PLUGINS" description="">
|
||||
<option value="0">K2_NO</option>
|
||||
<option value="1">K2_YES</option>
|
||||
</field>
|
||||
<field name="JPlugins" type="radio" default="0" label="K2_ENABLE_JOOMLA_CONTENT_PLUGINS" description="">
|
||||
<option value="0">K2_NO</option>
|
||||
<option value="1">K2_YES</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset name="advanced">
|
||||
<field name="cache" type="list" default="1" label="K2_CACHING" description="K2_SELECT_WHETHER_TO_CACHE_THE_CONTENT_OF_THIS_MODULE">
|
||||
<option value="1">K2_USE_GLOBAL</option>
|
||||
<option value="0">K2_NO_CACHING</option>
|
||||
</field>
|
||||
<field name="cache_time" type="text" default="900" label="K2_CACHE_TIME" description="K2_THE_TIME_IN_SECONDS_BEFORE_THE_MODULE_IS_RECACHED"/>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</config>
|
||||
</extension>
|
25
modules/mod_k2_tools/tmpl/archive.php
Normal file
25
modules/mod_k2_tools/tmpl/archive.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: archive.php 1899 2013-02-08 18:57:03Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2ArchivesBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
|
||||
<ul>
|
||||
<?php foreach ($months as $month): ?>
|
||||
<li>
|
||||
<a href="<?php echo $month->link; ?>">
|
||||
<?php echo $month->name.' '.$month->y; ?>
|
||||
<?php if ($params->get('archiveItemsCounter')) echo '('.$month->numOfItems.')'; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
44
modules/mod_k2_tools/tmpl/authors.php
Normal file
44
modules/mod_k2_tools/tmpl/authors.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: authors.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2AuthorsListBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
|
||||
<ul>
|
||||
<?php foreach ($authors as $author): ?>
|
||||
<li>
|
||||
<?php if ($params->get('authorAvatar')): ?>
|
||||
<a class="k2Avatar abAuthorAvatar" rel="author" href="<?php echo $author->link; ?>" title="<?php echo K2HelperUtilities::cleanHtml($author->name); ?>">
|
||||
<img src="<?php echo $author->avatar; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($author->name); ?>" style="width:<?php echo $avatarWidth; ?>px;height:auto;" />
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<a class="abAuthorName" rel="author" href="<?php echo $author->link; ?>">
|
||||
<?php echo $author->name; ?>
|
||||
|
||||
<?php if ($params->get('authorItemsCounter')): ?>
|
||||
<span>(<?php echo $author->items; ?>)</span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
|
||||
<?php if ($params->get('authorLatestItem')): ?>
|
||||
<a class="abAuthorLatestItem" href="<?php echo $author->latest->link; ?>" title="<?php echo K2HelperUtilities::cleanHtml($author->latest->title); ?>">
|
||||
<?php echo $author->latest->title; ?>
|
||||
<span class="abAuthorCommentsCount">
|
||||
(<?php echo $author->latest->numOfComments; ?> <?php if($author->latest->numOfComments=='1') echo JText::_('K2_MODK2TOOLS_COMMENT'); else echo JText::_('K2_MODK2TOOLS_COMMENTS'); ?>)
|
||||
</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
43
modules/mod_k2_tools/tmpl/breadcrumbs.php
Normal file
43
modules/mod_k2_tools/tmpl/breadcrumbs.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: breadcrumbs.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2BreadcrumbsBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
|
||||
<?php
|
||||
$output = '';
|
||||
if ($params->get('home')) {
|
||||
$output .= '<span class="bcTitle">'.JText::_('K2_YOU_ARE_HERE').'</span>';
|
||||
$output .= '<a href="'.JURI::root().'">'.$params->get('home',JText::_('K2_HOME')).'</a>';
|
||||
if (count($path)) {
|
||||
foreach ($path as $link) {
|
||||
$output .= '<span class="bcSeparator">'.$params->get('seperator','»').'</span>'.$link;
|
||||
}
|
||||
}
|
||||
if($title){
|
||||
$output .= '<span class="bcSeparator">'.$params->get('seperator','»').'</span>'.$title;
|
||||
}
|
||||
} else {
|
||||
if($title){
|
||||
$output .= '<span class="bcTitle">'.JText::_('K2_YOU_ARE_HERE').'</span>';
|
||||
}
|
||||
if (count($path)) {
|
||||
foreach ($path as $link) {
|
||||
$output .= $link.'<span class="bcSeparator">'.$params->get('seperator','»').'</span>';
|
||||
}
|
||||
}
|
||||
$output .= $title;
|
||||
}
|
||||
|
||||
echo $output;
|
||||
?>
|
||||
</div>
|
18
modules/mod_k2_tools/tmpl/calendar.php
Normal file
18
modules/mod_k2_tools/tmpl/calendar.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: calendar.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2CalendarBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
|
||||
<?php echo $calendar; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
17
modules/mod_k2_tools/tmpl/categories.php
Normal file
17
modules/mod_k2_tools/tmpl/categories.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: categories.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2CategoriesListBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
|
||||
<?php echo $output; ?>
|
||||
</div>
|
17
modules/mod_k2_tools/tmpl/customcode.php
Normal file
17
modules/mod_k2_tools/tmpl/customcode.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: customcode.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2CustomCodeBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
|
||||
<?php echo $customcode; ?>
|
||||
</div>
|
49
modules/mod_k2_tools/tmpl/search.php
Normal file
49
modules/mod_k2_tools/tmpl/search.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: search.php 1899 2013-02-08 18:57:03Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/*
|
||||
Important note:
|
||||
If you wish to use the live search option, it's important that you maintain the same class names for wrapping elements, e.g. the wrapping div and form.
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2SearchBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); if($params->get('liveSearch')) echo ' k2LiveSearchBlock'; ?>">
|
||||
<form action="<?php echo $action; ?>" method="get" autocomplete="off" class="k2SearchBlockForm">
|
||||
|
||||
<input type="text" value="<?php echo $text; ?>" name="searchword" maxlength="<?php echo $maxlength; ?>" size="<?php echo $width; ?>" alt="<?php echo $button_text; ?>" class="inputbox" onblur="if(this.value=='') this.value='<?php echo $text; ?>';" onfocus="if(this.value=='<?php echo $text; ?>') this.value='';" />
|
||||
|
||||
<?php if($button): ?>
|
||||
<?php if($imagebutton): ?>
|
||||
<input type="image" value="<?php echo $button_text; ?>" class="button" onclick="this.form.searchword.focus();" src="<?php echo JURI::base(true); ?>/components/com_k2/images/fugue/search.png" />
|
||||
<?php else: ?>
|
||||
<input type="submit" value="<?php echo $button_text; ?>" class="button" onclick="this.form.searchword.focus();" />
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" name="categories" value="<?php echo $categoryFilter; ?>" />
|
||||
<?php if(!$app->getCfg('sef')): ?>
|
||||
<input type="hidden" name="option" value="com_k2" />
|
||||
<input type="hidden" name="view" value="itemlist" />
|
||||
<input type="hidden" name="task" value="search" />
|
||||
<?php endif; ?>
|
||||
<?php if($params->get('liveSearch')): ?>
|
||||
<input type="hidden" name="format" value="html" />
|
||||
<input type="hidden" name="t" value="" />
|
||||
<input type="hidden" name="tpl" value="search" />
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
|
||||
<?php if($params->get('liveSearch')): ?>
|
||||
<div class="k2LiveSearchResults"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
24
modules/mod_k2_tools/tmpl/tags.php
Normal file
24
modules/mod_k2_tools/tmpl/tags.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: tags.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2TagCloudBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
|
||||
<?php foreach ($tags as $tag): ?>
|
||||
<?php if(!empty($tag->tag)): ?>
|
||||
<a href="<?php echo $tag->link; ?>" style="font-size:<?php echo $tag->size; ?>%" title="<?php echo $tag->count.' '.JText::_('K2_ITEMS_TAGGED_WITH').' '.K2HelperUtilities::cleanHtml($tag->tag); ?>">
|
||||
<?php echo $tag->tag; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
Reference in New Issue
Block a user