|
From: <luc...@us...> - 2015-02-18 17:22:47
|
Revision: 12994
http://sourceforge.net/p/xoops/svn/12994
Author: luciorota
Date: 2015-02-18 17:22:44 +0000 (Wed, 18 Feb 2015)
Log Message:
-----------
fixed bug in install, uninstall, update
move all .tpl to templates folder
Modified Paths:
--------------
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/breadcrumb.php
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/choicebyletter.php
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/download.php
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/oninstall.php
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/onuninstall.php
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/onupdate.php
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/xoops_version.php
Added Paths:
-----------
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/templates/wfdownloads_co_breadcrumb.tpl
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/templates/wfdownloads_co_choicebyletter.tpl
Removed Paths:
-------------
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/breadcrumb.tpl
XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/choicebyletter.tpl
Modified: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/breadcrumb.php
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/breadcrumb.php 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/breadcrumb.php 2015-02-18 17:22:44 UTC (rev 12994)
@@ -26,12 +26,19 @@
* echo $breadcrumb->render();
*/
defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
+include_once dirname(dirname(__DIR__)) . '/include/common.php';
/**
* Class WfdownloadsBreadcrumb
*/
class WfdownloadsBreadcrumb
{
+ /**
+ * @var WfdownloadsWfdownloads
+ * @access public
+ */
+ public $wfdownloads = null;
+
private $dirname;
private $_bread = array();
@@ -40,7 +47,8 @@
*/
public function __construct()
{
- $this->dirname = basename(dirname(dirname(__DIR__)));
+ $this->wfdownloads = WfdownloadsWfdownloads::getInstance();
+ $this->dirname = basename(dirname(dirname(__DIR__)));
}
/**
@@ -75,10 +83,7 @@
// IN PROGRESS
// IN PROGRESS
// IN PROGRESS
- //$ret .= $breadcrumbTpl->fetch(__DIR__ . '_breadcrumb.tpl');
- $tplSource = file_get_contents(__DIR__ . '/breadcrumb.tpl');
-// $ret .= $choiceByLetterTpl->fetchFromData($tplSource, false, null);
- $ret .= $breadcrumbTpl->fetchFromData($tplSource, false, null);
+ $ret .= $breadcrumbTpl->fetch("db:{$this->wfdownloads->getModule()->dirname()}_co_breadcrumb.tpl");
unset($breadcrumbTpl);
return $ret;
Deleted: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/breadcrumb.tpl
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/breadcrumb.tpl 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/breadcrumb.tpl 2015-02-18 17:22:44 UTC (rev 12994)
@@ -1,16 +0,0 @@
-<div class="wfdownloads_headertable">
- <div class="wfdownloads_breadcrumb">
- <{foreach item=bread from=$breadcrumb name=bcloop}>
- <span class="bread">
- <{if ($bread.link)}>
- <a href="<{$bread.link}>" title="<{$bread.title}>"><{$bread.title}></a>
- <{else}>
- <{$bread.title}>
- <{/if}>
- </span>
- <{if !$smarty.foreach.bcloop.last}>
- <span class="delimiter">></span>
- <{/if}>
- <{/foreach}>
- </div>
-</div>
Modified: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/choicebyletter.php
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/choicebyletter.php 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/choicebyletter.php 2015-02-18 17:22:44 UTC (rev 12994)
@@ -23,6 +23,7 @@
* echo $choicebyletter->render();
*/
defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
+include_once dirname(dirname(__DIR__)) . '/include/common.php';
/**
* Class WfdownloadsChoiceByLetter
@@ -30,6 +31,12 @@
class WfdownloadsChoiceByLetter
{
/**
+ * @var WfdownloadsWfdownloads
+ * @access public
+ */
+ public $wfdownloads = null;
+
+ /**
* *#@+
*
* @access private
@@ -61,6 +68,7 @@
*/
public function __construct($objHandler, $criteria = null, $field_name = null, $alphabet = array(), $arg_name = 'letter', $url = null, $extra_arg = '', $caseSensitive = false)
{
+ $this->wfdownloads = WfdownloadsWfdownloads::getInstance();
$this->objHandler = $objHandler;
$this->criteria = is_null($criteria) ? new CriteriaCompo() : $criteria;
$this->field_name = is_null($field_name) ? $this->objHandler->identifierName : $field_name;
@@ -128,9 +136,7 @@
// IN PROGRESS
// IN PROGRESS
// IN PROGRESS
- //$ret .= $choiceByLetterTpl->fetch(__DIR__ . '/choicebyletter.tpl');
- $tplSource = file_get_contents(__DIR__ . '/choicebyletter.tpl');
- $ret .= $choiceByLetterTpl->fetchFromData($tplSource, false, null);
+ $ret .= $choiceByLetterTpl->fetch("db:{$this->wfdownloads->getModule()->dirname()}_co_choicebyletter.tpl");
unset($choiceByLetterTpl);
return $ret;
Deleted: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/choicebyletter.tpl
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/choicebyletter.tpl 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/common/choicebyletter.tpl 2015-02-18 17:22:44 UTC (rev 12994)
@@ -1,96 +0,0 @@
-<style type="text/css">
- .button_green {
- -moz-box-shadow: inset 0 1px 0 0 #d9fbbe;
- -webkit-box-shadow: inset 0 1px 0 0 #d9fbbe;
- box-shadow: inset 0 1px 0 0 #d9fbbe;
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #d9fbbe), color-stop(1, #d9fbbe));
- background: -moz-linear-gradient(center top, #a5cc52 5%, #d9fbbe 100%);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d9fbbe', endColorstr='#b8e356');
- background-color: #d9fbbe;
- -webkit-border-radius: 2px;
- -moz-border-radius: 2px;
- border-radius: 2px;
- text-indent: 0;
- border: 1px solid #83c41a;
- display: inline-block;
- color: inherit;
- font-family: inherit;
- font-size: 12px;
- font-weight: bold;
- font-style: normal;
- height: 20px;
- line-height: 20px;
- width: auto;
- min-width: 10px;
- text-decoration: none;
- text-align: center;
- text-shadow: 1px 1px 0 #d9fbbe;
- margin: 2px 0;
- padding: 0 4px;
- }
-
- .button_green:hover {
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #b8e356), color-stop(1, #a5cc52));
- background: -moz-linear-gradient(center top, #b8e356 5%, #a5cc52 100%);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b8e356', endColorstr='#a5cc52');
- background-color: #86ae47;
- }
-
- .button_green:active {
- position: relative;
- top: 1px;
- }
-
- .button_grey {
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf));
- background: -moz-linear-gradient(center top, #ededed 5%, #dfdfdf 100%);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
- background-color: #ededed;
- -webkit-border-radius: 2px;
- -moz-border-radius: 2px;
- border-radius: 2px;
- text-indent: 0;
- border: 1px solid #dcdcdc;
- display: inline-block;
- color: inherit;
- font-family: inherit;
- font-size: 12px;
- font-weight: bold;
- font-style: normal;
- height: 20px;
- line-height: 20px;
- width: auto;
- min-width: 10px;
- text-decoration: none;
- text-align: center;
- text-shadow: 1px 1px 0 #ffffff;
- margin: 2px 0;
- padding: 0 4px;
- }
-
- .button_grey:hover {
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed));
- background: -moz-linear-gradient(center top, #dfdfdf 5%, #ededed 100%);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
- background-color: #dfdfdf;
- }
-
- .button_grey:active {
- position: relative;
- top: 1px;
- }
-</style>
-<br/>
-<div>
- <{assign var="alphabetcount" value=$alphabet|@count}>
- <{foreach name=letters item=letter from=$alphabet}>
- <{if ($letter.count > 0)}>
- <a class='button_green' href='<{$letter.url}>' title='<{$letter.count}>'><{$letter.letter}></a>
- <{else}>
- <span class='button_grey'><{$letter.letter}></span>
- <{/if}>
- <{if ($smarty.foreach.letters.iteration == (round($alphabetcount/2))+1)}>
-</div>
-<div><{else}><{/if}>
- <{/foreach}>
-</div>
Modified: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/download.php 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/class/download.php 2015-02-18 17:22:44 UTC (rev 12994)
@@ -459,14 +459,14 @@
$userfile_file = new XoopsFormFile(_MD_WFDOWNLOADS_UPLOAD_FILEC, 'userfile', 0);
// get max file size (setup and php.ini)
$phpiniMaxFileSize = (min((int)(ini_get('upload_max_filesize')), (int)(ini_get('post_max_size')), (int)(ini_get('memory_limit')))) * 1024 * 1024; // bytes
- $maxFileSize = wfdownloads_bytesToSize1024(min($this->wfdownloads->getConfig('maxfilesize'), $phpiniMaxFileSize));
+ $maxFileSize = wfdownloads_bytesToSize1024(min($this->wfdownloads->getConfig('maxfilesize'), $phpiniMaxFileSize));
// get allowed mimetypes
if (wfdownloads_userIsAdmin()) {
- $mimetypeCriteria = new Criteria('mime_admin', true);
+ $criteria = new Criteria('mime_admin', true);
} else {
- $mimetypeCriteria = new Criteria('mime_user', true);
+ $criteria = new Criteria('mime_user', true);
}
- $mimetypes = $this->wfdownloads->getHandler('mimetype')->getList($mimetypeCriteria);
+ $mimetypes = $this->wfdownloads->getHandler('mimetype')->getList($criteria);
$allowedExtensions = implode(' | ', $mimetypes);
$userfile_file->setDescription(
sprintf(
@@ -711,7 +711,11 @@
// download: submitter
if (!$this->isNew()) {
$userCount = $member_handler->getUserCount();
+// IN PROGRESS
+// IN PROGRESS
+// IN PROGRESS
if ($userCount > 200) {
+ //$sform -> addElement(new XoopsFormText(_AM_WFDOWNLOADS_FILE_SUBMITTERID, 'submitter', 10, 10, $this->getVar('submitter', 'e')), true);
$submitter_select = new XoopsFormSelectUser (
_AM_WFDOWNLOADS_FILE_SUBMITTER, 'submitter', false, $this->getVar(
'submitter',
@@ -742,10 +746,10 @@
$userfile_file = new XoopsFormFile(_MD_WFDOWNLOADS_UPLOAD_FILEC, 'userfile', 0);
// get max file size (setup and php.ini)
$phpiniMaxFileSize = min((int)(ini_get('upload_max_filesize')), (int)(ini_get('post_max_size')), (int)(ini_get('memory_limit'))) * 1024 * 1024; // bytes
- $maxFileSize = wfdownloads_bytesToSize1024(min($this->wfdownloads->getConfig('maxfilesize'), $phpiniMaxFileSize));
+ $maxFileSize = wfdownloads_bytesToSize1024(min($this->wfdownloads->getConfig('maxfilesize'), $phpiniMaxFileSize));
// get allowed mimetypes
- $mimetypeCriteria = new Criteria('mime_admin', true);
- $mimetypes = $this->wfdownloads->getHandler('mimetype')->getList($mimetypeCriteria);
+ $criteria = new Criteria('mime_admin', true);
+ $mimetypes = $this->wfdownloads->getHandler('mimetype')->getList($criteria);
$allowedExtensions = implode(' | ', $mimetypes);
$userfile_file->setDescription(
sprintf(
@@ -759,7 +763,7 @@
);
$sform->addElement($userfile_file, false);
// download: cid
- $categoryObjs = $this->wfdownloads->getHandler('category')->getObjects();
+ $categoryObjs = $this->wfdownloads->getHandler('category')->getObjects();
$categoryObjsTree = new XoopsObjectTree($categoryObjs, 'cid', 'pid');
$sform->addElement(
new XoopsFormLabel(_AM_WFDOWNLOADS_FILE_CATEGORY, $categoryObjsTree->makeSelBox('cid', 'title', '-', $this->getVar('cid', 'e')))
@@ -1224,17 +1228,17 @@
*
* @return array
*/
- public function getActiveDownloads($criteria = null)
+ public function getActiveDownloads($crit = null)
{
- if (is_object($criteria)) {
- $downloadsCriteria = $criteria;
+ if (is_object($crit)) {
+ $criteria = $crit;
} else {
- $downloadsCriteria = new CriteriaCompo();
+ $criteria = new CriteriaCompo();
}
- $activeDownloadsCriteria = $this->getActiveCriteria();
- $downloadsCriteria->add($activeDownloadsCriteria);
+ $active_crit = $this->getActiveCriteria();
+ $criteria->add($active_crit);
- return $this->getObjects($downloadsCriteria);
+ return $this->getObjects($criteria);
}
/**
@@ -1244,14 +1248,14 @@
*
* @return array/int
*/
- public function getActiveCount($criteria = null)
+ public function getActiveCount($crit = null)
{
- $activeDownloadsCriteria = $this->getActiveCriteria();
- if (is_object($criteria)) {
- $activeDownloadsCriteria->add($criteria);
+ $criteria = $this->getActiveCriteria();
+ if (is_object($crit)) {
+ $criteria->add($crit);
}
- return $this->getCount($activeDownloadsCriteria);
+ return $this->getCount($criteria);
}
/**
@@ -1274,24 +1278,24 @@
*
* @return bool
*/
- public function delete($downloadsObj, $force = false)
+ public function delete($download, $force = false)
{
- if (parent::delete($downloadsObj, $force)) {
- $downloadsCriteria = new Criteria('lid', (int)$download->getVar('lid'));
- $this->wfdownloads->getHandler('rating')->deleteAll($downloadsCriteria);
- $this->wfdownloads->getHandler('mirror')->deleteAll($downloadsCriteria);
- $this->wfdownloads->getHandler('review')->deleteAll($downloadsCriteria);
- $this->wfdownloads->getHandler('report')->deleteAll($downloadsCriteria);
+ if (parent::delete($download, $force)) {
+ $criteria = new Criteria('lid', (int)$download->getVar('lid'));
+ $this->wfdownloads->getHandler('rating')->deleteAll($criteria);
+ $this->wfdownloads->getHandler('mirror')->deleteAll($criteria);
+ $this->wfdownloads->getHandler('review')->deleteAll($criteria);
+ $this->wfdownloads->getHandler('report')->deleteAll($criteria);
// delete comments
- xoops_comment_delete((int)$this->wfdownloads->getModule()->mid(), (int)$downloadsObj->getVar('lid'));
+ xoops_comment_delete((int)$this->wfdownloads->getModule()->mid(), (int)$download->getVar('lid'));
// Formulize module support (2006/05/04) jpc - start
if (wfdownloads_checkModule('formulize')) {
- if (file_exists(XOOPS_ROOT_PATH . '/modules/formulize/include/functions.php') && $downloadsObj->getVar('formulize_idreq') > 0) {
+ if (file_exists(XOOPS_ROOT_PATH . '/modules/formulize/include/functions.php') && $download->getVar('formulize_idreq') > 0) {
include_once XOOPS_ROOT_PATH . '/modules/formulize/include/functions.php';
//deleteFormEntries(array($download->getVar('formulize_idreq')));
- $categoryObj = $this->wfdownloads->getHandler('category')->get($downloadsObj->getVar('cid'));
- deleteFormEntries(array($downloadsObj->getVar('formulize_idreq')), $categoryObj->getVar('formulize_fid'));
+ $category = $this->wfdownloads->getHandler('category')->get($download->getVar('cid'));
+ deleteFormEntries(array($download->getVar('formulize_idreq')), $category->getVar('formulize_fid'));
}
}
// Formulize module support (2006/05/04) jpc - end
Modified: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/oninstall.php
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/oninstall.php 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/oninstall.php 2015-02-18 17:22:44 UTC (rev 12994)
@@ -20,8 +20,6 @@
*/
defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
include_once __DIR__ . '/common.php';
-//@include_once WFDOWNLOADS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/admin.php';
-xoops_loadLanguage('admin', $wfdownloads->getModule()->dirname());
define('INDEX_FILE_PATH', XOOPS_ROOT_PATH . '/uploads/index.html');
define('BLANK_FILE_PATH', XOOPS_ROOT_PATH . '/uploads/blank.gif');
@@ -33,6 +31,7 @@
*/
function xoops_module_pre_install_wfdownloads(&$xoopsModule)
{
+ xoops_loadLanguage('admin', $xoopsModule->dirname());
// NOP
return true;
}
@@ -44,6 +43,7 @@
*/
function xoops_module_install_wfdownloads(&$xoopsModule)
{
+ xoops_loadLanguage('admin', $xoopsModule->dirname());
// get module config values
$hModConfig = xoops_gethandler('config');
$configArray = $hModConfig->getConfigsByCat(0, $xoopsModule->getVar('mid'));
Modified: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/onuninstall.php
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/onuninstall.php 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/onuninstall.php 2015-02-18 17:22:44 UTC (rev 12994)
@@ -20,8 +20,6 @@
*/
defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
include_once __DIR__ . '/common.php';
-//@include_once WFDOWNLOADS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/admin.php';
-xoops_loadLanguage('admin', $wfdownloads->getModule()->dirname());
/**
* @param $xoopsModule
@@ -30,6 +28,7 @@
*/
function xoops_module_pre_uninstall_wfdownloads(&$xoopsModule)
{
+ xoops_loadLanguage('admin', $xoopsModule->dirname());
// NOP
return true;
}
@@ -39,5 +38,6 @@
*/
function xoops_module_uninstall_wfdownloads(&$xoopsModule)
{
+ xoops_loadLanguage('admin', $xoopsModule->dirname());
// NOP
}
Modified: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/onupdate.php
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/onupdate.php 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/include/onupdate.php 2015-02-18 17:22:44 UTC (rev 12994)
@@ -20,8 +20,7 @@
*/
defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
include_once __DIR__ . '/common.php';
-$wfdownloads = WfdownloadsWfdownloads::getInstance();
-xoops_loadLanguage('admin', $wfdownloads->getModule()->dirname());
+
include_once WFDOWNLOADS_ROOT_PATH . '/class/dbupdater.php';
/**
@@ -32,6 +31,7 @@
*/
function xoops_module_update_wfdownloads(&$xoopsModule, $previousVersion)
{
+ xoops_loadLanguage('admin', $xoopsModule->dirname());
ob_start();
invert_nohtm_dohtml_values();
if ($previousVersion < 322) {
Added: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/templates/wfdownloads_co_breadcrumb.tpl
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/templates/wfdownloads_co_breadcrumb.tpl (rev 0)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/templates/wfdownloads_co_breadcrumb.tpl 2015-02-18 17:22:44 UTC (rev 12994)
@@ -0,0 +1,16 @@
+<div class="wfdownloads_headertable">
+ <div class="wfdownloads_breadcrumb">
+ <{foreach item=bread from=$breadcrumb name=bcloop}>
+ <span class="bread">
+ <{if ($bread.link)}>
+ <a href="<{$bread.link}>" title="<{$bread.title}>"><{$bread.title}></a>
+ <{else}>
+ <{$bread.title}>
+ <{/if}>
+ </span>
+ <{if !$smarty.foreach.bcloop.last}>
+ <span class="delimiter">></span>
+ <{/if}>
+ <{/foreach}>
+ </div>
+</div>
Added: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/templates/wfdownloads_co_choicebyletter.tpl
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/templates/wfdownloads_co_choicebyletter.tpl (rev 0)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/templates/wfdownloads_co_choicebyletter.tpl 2015-02-18 17:22:44 UTC (rev 12994)
@@ -0,0 +1,96 @@
+<style type="text/css">
+ .button_green {
+ -moz-box-shadow: inset 0 1px 0 0 #d9fbbe;
+ -webkit-box-shadow: inset 0 1px 0 0 #d9fbbe;
+ box-shadow: inset 0 1px 0 0 #d9fbbe;
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #d9fbbe), color-stop(1, #d9fbbe));
+ background: -moz-linear-gradient(center top, #a5cc52 5%, #d9fbbe 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d9fbbe', endColorstr='#b8e356');
+ background-color: #d9fbbe;
+ -webkit-border-radius: 2px;
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+ text-indent: 0;
+ border: 1px solid #83c41a;
+ display: inline-block;
+ color: inherit;
+ font-family: inherit;
+ font-size: 12px;
+ font-weight: bold;
+ font-style: normal;
+ height: 20px;
+ line-height: 20px;
+ width: auto;
+ min-width: 10px;
+ text-decoration: none;
+ text-align: center;
+ text-shadow: 1px 1px 0 #d9fbbe;
+ margin: 2px 0;
+ padding: 0 4px;
+ }
+
+ .button_green:hover {
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #b8e356), color-stop(1, #a5cc52));
+ background: -moz-linear-gradient(center top, #b8e356 5%, #a5cc52 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b8e356', endColorstr='#a5cc52');
+ background-color: #86ae47;
+ }
+
+ .button_green:active {
+ position: relative;
+ top: 1px;
+ }
+
+ .button_grey {
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf));
+ background: -moz-linear-gradient(center top, #ededed 5%, #dfdfdf 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
+ background-color: #ededed;
+ -webkit-border-radius: 2px;
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+ text-indent: 0;
+ border: 1px solid #dcdcdc;
+ display: inline-block;
+ color: inherit;
+ font-family: inherit;
+ font-size: 12px;
+ font-weight: bold;
+ font-style: normal;
+ height: 20px;
+ line-height: 20px;
+ width: auto;
+ min-width: 10px;
+ text-decoration: none;
+ text-align: center;
+ text-shadow: 1px 1px 0 #ffffff;
+ margin: 2px 0;
+ padding: 0 4px;
+ }
+
+ .button_grey:hover {
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed));
+ background: -moz-linear-gradient(center top, #dfdfdf 5%, #ededed 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
+ background-color: #dfdfdf;
+ }
+
+ .button_grey:active {
+ position: relative;
+ top: 1px;
+ }
+</style>
+<br/>
+<div>
+ <{assign var="alphabetcount" value=$alphabet|@count}>
+ <{foreach name=letters item=letter from=$alphabet}>
+ <{if ($letter.count > 0)}>
+ <a class='button_green' href='<{$letter.url}>' title='<{$letter.count}>'><{$letter.letter}></a>
+ <{else}>
+ <span class='button_grey'><{$letter.letter}></span>
+ <{/if}>
+ <{if ($smarty.foreach.letters.iteration == (round($alphabetcount/2))+1)}>
+</div>
+<div><{else}><{/if}>
+ <{/foreach}>
+</div>
Modified: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/xoops_version.php
===================================================================
--- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/xoops_version.php 2015-02-18 16:22:25 UTC (rev 12993)
+++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/xoops_version.php 2015-02-18 17:22:44 UTC (rev 12994)
@@ -42,8 +42,8 @@
$modversion['onUpdate'] = 'include/onupdate.php';
$modversion['onUninstall'] = 'include/onuninstall.php';
-$modversion['date'] = '2015-02-13';
-$modversion['release_date'] = '2015-02-13';
+$modversion['date'] = '2015-02-18';
+$modversion['release_date'] = '2015-02-18';
$modversion['status'] = 'RC5';
$modversion['teammembers'] = 'Bender, David, FrankBlack, Xpider, M0nty, Mithrandir, Marcan, felix[fx2024], Sudhaker, Jegelstaff';
@@ -327,9 +327,20 @@
);
// Common templates
+$modversion['templates'][] = array(
+ 'file' => $modversion['dirname'] . '_co_breadcrumb.tpl',
+ 'type' => 'class/common',
+ 'description' => ''
+);
+$modversion['templates'][] = array(
+ 'file' => $modversion['dirname'] . '_co_choicebyletter.tpl',
+ 'type' => 'class/common',
+ 'description' => ''
+);
+
// ------------------- Preferences -------------------
xoops_load('XoopsEditorHandler');
|