diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 06:12:45 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 06:12:45 +0000 |
| commit | 850713ed26ff34d8fe37feed30bb94de4adc957c (patch) | |
| tree | 7ceb5eaad8a84eb8796fd2d53ed62f17052acc35 /modules | |
| download | wiki-850713ed26ff34d8fe37feed30bb94de4adc957c.tar.gz wiki-850713ed26ff34d8fe37feed30bb94de4adc957c.tar.bz2 wiki-850713ed26ff34d8fe37feed30bb94de4adc957c.zip | |
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/index.php | 4 | ||||
| -rw-r--r-- | modules/mod_breadcrumb.php | 11 | ||||
| -rw-r--r-- | modules/mod_breadcrumb.tpl | 22 | ||||
| -rw-r--r-- | modules/mod_comm_received_objects.php | 6 | ||||
| -rw-r--r-- | modules/mod_comm_received_objects.tpl | 9 | ||||
| -rw-r--r-- | modules/mod_last_modif_pages.php | 9 | ||||
| -rw-r--r-- | modules/mod_last_modif_pages.tpl | 27 | ||||
| -rw-r--r-- | modules/mod_quick_edit.tpl | 15 | ||||
| -rw-r--r-- | modules/mod_random_pages.php | 5 | ||||
| -rw-r--r-- | modules/mod_random_pages.tpl | 14 | ||||
| -rw-r--r-- | modules/mod_search_wiki_page.tpl | 13 | ||||
| -rw-r--r-- | modules/mod_top_pages.php | 7 | ||||
| -rw-r--r-- | modules/mod_top_pages.tpl | 19 | ||||
| -rw-r--r-- | modules/mod_wiki_last_comments.php | 12 | ||||
| -rw-r--r-- | modules/mod_wiki_last_comments.tpl | 23 |
15 files changed, 196 insertions, 0 deletions
diff --git a/modules/index.php b/modules/index.php new file mode 100644 index 0000000..80f6d40 --- /dev/null +++ b/modules/index.php @@ -0,0 +1,4 @@ +<?php + // This is not a package. + header ("location: ../index.php"); +?>
\ No newline at end of file diff --git a/modules/mod_breadcrumb.php b/modules/mod_breadcrumb.php new file mode 100644 index 0000000..20f24a4 --- /dev/null +++ b/modules/mod_breadcrumb.php @@ -0,0 +1,11 @@ +<?php +/** $Header: /cvsroot/bitweaver/_bit_wiki/modules/Attic/mod_breadcrumb.php,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ + * \param maxlen = max number of displayed characters for the page name + */ +if (!isset($_SESSION["breadCrumb"])) { + $_SESSION["breadCrumb"] = array(); +} +$bbreadCrumb = array_reverse($_SESSION["breadCrumb"]); +$smarty->assign('breadCrumb', $bbreadCrumb); +$smarty->assign('maxlen', isset($module_params["maxlen"]) ? $module_params["maxlen"] : 0); +?>
\ No newline at end of file diff --git a/modules/mod_breadcrumb.tpl b/modules/mod_breadcrumb.tpl new file mode 100644 index 0000000..5309326 --- /dev/null +++ b/modules/mod_breadcrumb.tpl @@ -0,0 +1,22 @@ +{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/Attic/mod_breadcrumb.tpl,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ *} +{strip} +{if $gBitSystemPrefs.feature_featuredLinks eq 'y'} + {bitmodule title="$moduleTitle" name="breadcrumb"} + <ol class="wiki"> + {section name=ix loop=$breadCrumb} + <li> + <a href="{$gBitLoc.WIKI_PKG_URL}index.php?page={$breadCrumb[ix]}"> + {if $maxlen > 0} + {$breadCrumb[ix]|truncate:$maxlen:"...":true} + {else} + {$breadCrumb[ix]} + {/if} + </a> + </li> + {sectionelse} + <li></li> + {/section} + </ul> + {/bitmodule} +{/if} +{/strip} diff --git a/modules/mod_comm_received_objects.php b/modules/mod_comm_received_objects.php new file mode 100644 index 0000000..28bde13 --- /dev/null +++ b/modules/mod_comm_received_objects.php @@ -0,0 +1,6 @@ +<?php +require_once( WIKI_PKG_PATH.'BitPage.php' ); +global $wikilib; +$ranking = $wikilib->list_received_pages(0, -1, $sort_mode = 'title_asc', ''); +$smarty->assign('modReceivedPages', $ranking["cant"]); +?> diff --git a/modules/mod_comm_received_objects.tpl b/modules/mod_comm_received_objects.tpl new file mode 100644 index 0000000..ee4431f --- /dev/null +++ b/modules/mod_comm_received_objects.tpl @@ -0,0 +1,9 @@ +{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_comm_received_objects.tpl,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ *} +{if $gBitSystemPrefs.feature_comm eq 'y'} +{bitmodule title="$moduleTitle" name="comm_received_objects"} + <table class="module box"><tr> + <td valign="top">{tr}Pages:{/tr}</td> + <td> {$modReceivedPages}</td> + </tr></table> +{/bitmodule} +{/if}
\ No newline at end of file diff --git a/modules/mod_last_modif_pages.php b/modules/mod_last_modif_pages.php new file mode 100644 index 0000000..2d92e5d --- /dev/null +++ b/modules/mod_last_modif_pages.php @@ -0,0 +1,9 @@ +<?php +global $gQueryUserId, $module_rows, $module_params, $wikilib; + +require_once( WIKI_PKG_PATH.'BitPage.php' ); +$ranking = $wikilib->getList(0, $module_rows, 'last_modified_desc', NULL, $gQueryUserId ); + +$smarty->assign('modLastModif', $ranking["data"]); +$smarty->assign('maxlen', isset($module_params["maxlen"]) ? $module_params["maxlen"] : 0); +?> diff --git a/modules/mod_last_modif_pages.tpl b/modules/mod_last_modif_pages.tpl new file mode 100644 index 0000000..5e81aea --- /dev/null +++ b/modules/mod_last_modif_pages.tpl @@ -0,0 +1,27 @@ +{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_last_modif_pages.tpl,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ *} +{strip} +{if $gBitSystemPrefs.package_wiki eq 'y'} + {if $nonums eq 'y'} + {eval var="{tr}Last `$module_rows` changes{/tr}" assign="tpl_module_title"} + {else} + {eval var="{tr}Last changes{/tr}" assign="tpl_module_title"} + {/if} + {bitmodule title="$moduleTitle" name="last_modif_pages"} + <ol> + {section name=ix loop=$modLastModif} + <li> + <a href="{$modLastModif[ix].display_url}" title="{$modLastModif[ix].title} - {$modLastModif[ix].last_modified|bit_short_datetime}, by {displayname user=$modLastModif[ix].modifier_user real_name=$modLastModif[ix].modifier_real_name nolink=1}{if (strlen($modLastModif[ix].title) > $maxlen) AND ($maxlen > 0)}, {$modLastModif[ix].title}{/if}"> + {if $maxlen gt 0} + {$modLastModif[ix].title|truncate:$maxlen:"...":true} + {else} + {$modLastModif[ix].title} + {/if} + </a> + </li> + {sectionelse} + <li></li> + {/section} + </ol> + {/bitmodule} +{/if} +{/strip} diff --git a/modules/mod_quick_edit.tpl b/modules/mod_quick_edit.tpl new file mode 100644 index 0000000..70c2871 --- /dev/null +++ b/modules/mod_quick_edit.tpl @@ -0,0 +1,15 @@ +{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_quick_edit.tpl,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ *} +{strip} +{if $gBitUser->hasPermission( 'bit_p_edit' )} + {bitmodule title="$moduleTitle" name="quick_edit"} + {form method="get" ipackage=wiki ifile="edit.php"} + <div class="row"> + <input type="text" size="15" name="page" /> + </div> + <div class="row submit"> + <input type="submit" name="quickedit" value="{tr}edit{/tr}" /> + </div> + {/form} + {/bitmodule} +{/if} +{/strip} diff --git a/modules/mod_random_pages.php b/modules/mod_random_pages.php new file mode 100644 index 0000000..9122420 --- /dev/null +++ b/modules/mod_random_pages.php @@ -0,0 +1,5 @@ +<?php +global $wikilib; +$ranking = $wikilib->get_random_pages($module_rows); +$smarty->assign('modRandomPages', $ranking); +?>
\ No newline at end of file diff --git a/modules/mod_random_pages.tpl b/modules/mod_random_pages.tpl new file mode 100644 index 0000000..0bb846e --- /dev/null +++ b/modules/mod_random_pages.tpl @@ -0,0 +1,14 @@ +{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_random_pages.tpl,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ *} +{strip} +{if $gBitSystemPrefs.package_wiki eq 'y'} + {bitmodule title="$moduleTitle" name="random_pages"} + <ol class="wiki"> + {section name=ix loop=$modRandomPages} + <li><a href="{$gBitLoc.WIKI_PKG_URL}index.php?page={$modRandomPages[ix]}">{$modRandomPages[ix]}</a></li> + {sectionelse} + <li></li> + {/section} + </ol> + {/bitmodule} +{/if} +{/strip}
\ No newline at end of file diff --git a/modules/mod_search_wiki_page.tpl b/modules/mod_search_wiki_page.tpl new file mode 100644 index 0000000..a559075 --- /dev/null +++ b/modules/mod_search_wiki_page.tpl @@ -0,0 +1,13 @@ +{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_search_wiki_page.tpl,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ *} +{strip} +{bitmodule title="$moduleTitle" name="search_box"} + {form ipackage=wiki ifile="list_pages.php"} + <div class="row"> + <input name="find" size="14" type="text" accesskey="s" value="{$find}" /> + </div> + <div class="row submit"> + <input type="submit" class="wikiaction" name="search" value="{tr}go{/tr}" /> + </div> + {/form} +{/bitmodule} +{/strip} diff --git a/modules/mod_top_pages.php b/modules/mod_top_pages.php new file mode 100644 index 0000000..09258dd --- /dev/null +++ b/modules/mod_top_pages.php @@ -0,0 +1,7 @@ +<?php +require_once( WIKI_PKG_PATH.'BitPage.php' ); +global $wikilib; + +//$ranking = $wikilib->get_top_pages($module_rows); +//$smarty->assign('modTopPages', $ranking); +?> diff --git a/modules/mod_top_pages.tpl b/modules/mod_top_pages.tpl new file mode 100644 index 0000000..c958722 --- /dev/null +++ b/modules/mod_top_pages.tpl @@ -0,0 +1,19 @@ +{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_top_pages.tpl,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ *} +{strip} +{if $gBitSystemPrefs.package_wiki eq 'y'} + {if $nonums eq 'y'} + {eval var="{tr}Top `$module_rows` Pages{/tr}" assign="tpl_module_title"} + {else} + {eval var="{tr}Top Pages{/tr}" assign="tpl_module_title"} + {/if} + {bitmodule title="$moduleTitle" name="top_pages"} + <ol class="wiki"> + {section name=ix loop=$modTopPages} + <li><a href="{$gBitLoc.WIKI_PKG_URL}index.php?page={$modTopPages[ix].page_name}">{$modTopPages[ix].page_name}</a></li> + {sectionelse} + <li></li> + {/section} + <ol> + {/bitmodule} +{/if} +{/strip}
\ No newline at end of file diff --git a/modules/mod_wiki_last_comments.php b/modules/mod_wiki_last_comments.php new file mode 100644 index 0000000..4b08932 --- /dev/null +++ b/modules/mod_wiki_last_comments.php @@ -0,0 +1,12 @@ +<?php +// +// $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_wiki_last_comments.php,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ +// \brief Show last comments on wiki pages +// +global $gQueryUserId; +require_once( LIBERTY_PKG_PATH.'LibertyComment.php' ); +$cmt = new LibertyComment(); +$lastComments = $cmt->getList( array( 'max_records' => $module_rows, 'user_id' => $gQueryUserId, 'content_type_guid' => BITPAGE_CONTENT_TYPE_GUID ) ); +$smarty->assign('lastComments', $lastComments); +$smarty->assign('moretooltips', isset($module_params["moretooltips"]) ? $module_params["moretooltips"] : 'n'); +?> diff --git a/modules/mod_wiki_last_comments.tpl b/modules/mod_wiki_last_comments.tpl new file mode 100644 index 0000000..a263430 --- /dev/null +++ b/modules/mod_wiki_last_comments.tpl @@ -0,0 +1,23 @@ +{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_wiki_last_comments.tpl,v 1.1 2005/06/19 06:12:45 bitweaver Exp $ *} +{if $lastComments} + {if $nonums eq 'y'} + {eval var="{tr}Last `$module_rows` wiki comments{/tr}" assign="tpl_module_title"} + {else} + {eval var="{tr}Last wiki comments{/tr}" assign="tpl_module_title"} + {/if} + {bitmodule title="$moduleTitle" name="wiki_last_comments"} + <ul class="wiki"> + {section name=ix loop=$lastComments} + <li class="{cycle values="odd,even"}"> + <a href="{$gBitLoc.WIKI_PKG_URL}index.php?content_id={$lastComments[ix].content_id}" title="{$lastComments[ix].comment_date|bit_short_datetime}, by {displayname hash=$lastComments[ix] nolink=1}{if $moretooltips eq 'y'} on page {$lastComments[ix].page}{/if}"> + {if $moretooltips ne 'y'} + <b>{$lastComments[ix].content_title}</b>: + {/if} {$lastComments[ix].title} + </a> + </li> + {sectionelse} + <li></li> + {/section} + </ul> + {/bitmodule} +{/if} |
