summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-04 18:31:17 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-04 18:31:17 +0000
commit2709042c693ea0773b009879f690cd0ebb992c1f (patch)
tree9293bf2e49b312fed80449d44052733ec53db2c1 /modules
parent0319dcbfdd8f5a391f1cbfbdd2ca3360fff46c78 (diff)
downloadliberty-2709042c693ea0773b009879f690cd0ebb992c1f.tar.gz
liberty-2709042c693ea0773b009879f690cd0ebb992c1f.tar.bz2
liberty-2709042c693ea0773b009879f690cd0ebb992c1f.zip
remove unused module
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_last_changes.php46
-rw-r--r--modules/mod_last_changes.tpl23
2 files changed, 0 insertions, 69 deletions
diff --git a/modules/mod_last_changes.php b/modules/mod_last_changes.php
deleted file mode 100644
index 7ae80f6..0000000
--- a/modules/mod_last_changes.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-/**
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/modules/mod_last_changes.php,v 1.7 2005/11/22 07:27:18 squareing Exp $
- * @package liberty
- * @subpackage modules
- * Params:
- * - content_type_guid : if set, show only those content_type_guid's
- * - show_date : if set, show date of last modification
- */
-
-/**
- * Initialization
- */
-global $gQueryUser, $gBitUser, $module_rows, $module_params, $gLibertySystem, $module_title;
-
-
-$userId = NULL;
-if( !empty( $gQueryUser->mUserId ) ) {
- $userId = $gQueryUser->mUserId;
-}
-
-if( empty( $module_title ) ) {
- if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) {
- $title = tra( "Last Changes" ).': '.tra( $gLibertySystem->mContentTypes[$module_params['content_type_guid']]['content_description'] );
- $gBitSmarty->assign( 'contentType', $module_params['content_type_guid'] );
- } else {
- $gBitSmarty->assign( 'contentType', FALSE );
- $title = tra( "Last Changes" );
- }
- $gBitSmarty->assign( 'moduleTitle', $title );
-}
-
-if( !empty( $module_params['show_date'] ) ) {
- $gBitSmarty->assign( 'showDate' , TRUE );
-}
-
-$listHash = array(
- 'content_type_guid' => !empty( $module_params['content_type_guid'] ) ? $module_params['content_type_guid'] : NULL,
- 'offset' => 0,
- 'max_records' => $module_rows,
- 'sort_mode' => 'last_modified_desc',
- 'user_id' => $userId,
-);
-$modLastContent = $gBitUser->getContentList( $listHash );
-$gBitSmarty->assign_by_ref( 'modLastContent', $modLastContent['data'] );
-?>
diff --git a/modules/mod_last_changes.tpl b/modules/mod_last_changes.tpl
deleted file mode 100644
index 6398634..0000000
--- a/modules/mod_last_changes.tpl
+++ /dev/null
@@ -1,23 +0,0 @@
-{* $Header: /cvsroot/bitweaver/_bit_liberty/modules/mod_last_changes.tpl,v 1.3 2005/08/07 17:40:30 squareing Exp $ *}
-{strip}
-{if $modLastContent}
- {bitmodule title="$moduleTitle" name="last_changes"}
- <ol>
- {section name=ix loop=$modLastContent}
- <li>
- {if !$contentType }
- <strong>{tr}{$modLastContent[ix].content_description}{/tr}: </strong>
- {/if}
- {$modLastContent[ix].display_link}
- {if $showDate}
- <br/><span class="date">{$modLastContent[ix].last_modified|bit_long_date}</span>
- {/if}
- </li>
- {sectionelse}
- <li></li>
- {/section}
- </ol>
- <a href="{$smarty.const.LIBERTY_PKG_URL}list_content.php?user_id={$gQueryUserId}&amp;sort_mode=last_modified_desc{if $contentType}&content_type_guid={$contentType}{/if}">{tr}View more{/tr}&hellip;</a>
- {/bitmodule}
-{/if}
-{/strip}