summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-05 10:06:00 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-05 10:06:00 +0000
commit237ab9c2e88ae77a8d5f5b949280ebbcbf3fe474 (patch)
treee6ef3314097dc80e1290fc813208b2b71fb5a3b1 /modules
parent79538db2066bc3f1ad11b6f4ce0044c96a90ff9b (diff)
downloadpigeonholes-237ab9c2e88ae77a8d5f5b949280ebbcbf3fe474.tar.gz
pigeonholes-237ab9c2e88ae77a8d5f5b949280ebbcbf3fe474.tar.bz2
pigeonholes-237ab9c2e88ae77a8d5f5b949280ebbcbf3fe474.zip
not sure what these are doing in here
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_last_changes.php50
-rw-r--r--modules/mod_last_changes.tpl22
2 files changed, 0 insertions, 72 deletions
diff --git a/modules/mod_last_changes.php b/modules/mod_last_changes.php
deleted file mode 100644
index ba2dce5..0000000
--- a/modules/mod_last_changes.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/**
- * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/modules/Attic/mod_last_changes.php,v 1.4 2006/01/14 19:55:19 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 $gBitUser, $module_rows, $module_params, $gLibertySystem, $module_title;
-
-if( $gBitUser->hasPermission( 'bit_p_view_pigeonholes' ) ) {
- require_once( PIGEONHOLES_PKG_PATH.'Pigeonholes.php' );
- $pigeonholes = new Pigeonholes();
-
- $listHash = array(
- 'title' => !empty( $module_params['category'] ) ? $module_params['category'] : NULL,
- 'content_id' => !empty( $module_params['category_id'] ) ? $module_params['category_id'] : NULL,
- 'content_type_guid' => !empty( $module_params['content_type_guid'] ) ? $module_params['content_type_guid'] : NULL,
- 'max_records' => $module_rows,
- 'sort_mode' => 'last_modified_desc',
- );
- $pigeonLastMod = $pigeonholes->getMemberList( $listHash );
- $gBitSmarty->assign( 'pigeonLastMod', !empty( $pigeonLastMod ) ? $pigeonLastMod : FALSE );
-}
-
-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 {
- if( !empty( $module_params['hide_content_type'] ) ) {
- $gBitSmarty->assign( 'contentType', TRUE );
- } else {
- $gBitSmarty->assign( 'contentType', FALSE );
- }
-
- $title = tra( "Last Changes" );
- }
- $gBitSmarty->assign( 'moduleTitle', $title );
-}
-
-if( !empty( $module_params['show_date'] ) ) {
- $gBitSmarty->assign( 'showDate' , TRUE );
-}
-?>
diff --git a/modules/mod_last_changes.tpl b/modules/mod_last_changes.tpl
deleted file mode 100644
index a5388c1..0000000
--- a/modules/mod_last_changes.tpl
+++ /dev/null
@@ -1,22 +0,0 @@
-{* $Header: /cvsroot/bitweaver/_bit_pigeonholes/modules/Attic/mod_last_changes.tpl,v 1.1 2005/10/26 17:46:45 squareing Exp $ *}
-{strip}
-{if $pigeonLastMod}
- {bitmodule title="$moduleTitle" name="last_changes"}
- <ol>
- {foreach from=$pigeonLastMod item=item}
- <li>
- {if !$contentType }
- <strong>{tr}{$item.content_description}{/tr}: </strong>
- {/if}
- {$item.display_link}
- {if $showDate}
- <br/><span class="date">{$item.last_modified|bit_short_date}</span>
- {/if}
- </li>
- {foreachelse}
- <li></li>
- {/foreach}
- </ol>
- {/bitmodule}
-{/if}
-{/strip}