{* $Id$ *} {if !$ts.enabled && ($cant_pages > 1 or $initial or $find)} {initials_filter_links} {/if} {if $tiki_p_remove eq 'y' or $prefs.feature_wiki_multiprint eq 'y'} {if isset($checkboxes_on) and $checkboxes_on eq 'n'} {assign var='checkboxes_on' value='n'} {else} {assign var='checkboxes_on' value='y'} {/if} {else} {assign var='checkboxes_on' value='n'} {/if} {if $find ne '' and $listpages|@count ne '0'}

{tr}Found{/tr} "{$find|escape}" {tr}in{/tr} {$listpages|@count} {tr}pages{/tr}.

{/if} {* Action attribute has to be set explicitly so that plugins could get use of it *} {if isset($checkboxes_on) and $checkboxes_on eq 'y'}
{/if} {* Conditionally display this remark*} {if $prefs.feature_stats eq 'n' AND $tiki_p_admin eq 'y'}
{tr _0='' _1='' _2='' _3=''}%0 To see page hits, please %1 activate %2 the stats feature %3{/tr}
{/if} {assign var='pagefound' value='n'}
{*the table-responsive class cuts off dropdown menus *} {if isset($checkboxes_on) and $checkboxes_on eq 'y'} {assign var='cntcol' value='1'} {else} {assign var='cntcol' value='0'} {/if} {if $prefs.wiki_list_id eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_name eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if isset($wplp_used)} {foreach from=$wplp_used key=lc item=ln} {/foreach} {/if} {if $prefs.wiki_list_hits eq 'y' AND $prefs.feature_stats eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_lastmodif eq 'y' or $prefs.wiki_list_comment eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_creator eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_user eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_lastver eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_status eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_versions eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_links eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_backlinks eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_size eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_language eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_categories eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_categories_path eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $prefs.wiki_list_rating eq 'y' AND $prefs.feature_polls eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {if $show_actions eq 'y'} {assign var='cntcol' value=$cntcol+1} {/if} {section name=changes loop=$listpages} {if isset($mapview) and $mapview} {/if} {if $find eq $listpages[changes].pageName} {assign var='pagefound' value='y'} {/if} {if $checkboxes_on eq 'y'} {/if} {if $prefs.wiki_list_id eq 'y'} {/if} {if $prefs.wiki_list_name eq 'y'} {/if} {if isset($wplp_used)} {foreach from=$wplp_used key=lc item=ln} {/foreach} {/if} {if $prefs.wiki_list_hits eq 'y' AND $prefs.feature_stats eq 'y'} {/if} {if $prefs.wiki_list_lastmodif eq 'y' or $prefs.wiki_list_comment eq 'y'} {/if} {if $prefs.wiki_list_creator eq 'y'} {/if} {if $prefs.wiki_list_user eq 'y'} {/if} {if $prefs.wiki_list_lastver eq 'y'} {/if} {if $prefs.wiki_list_status eq 'y'} {/if} {if $prefs.wiki_list_versions eq 'y'} {if $prefs.feature_history eq 'y' and $tiki_p_wiki_view_history eq 'y'} {else} {/if} {/if} {if $prefs.wiki_list_links eq 'y'} {/if} {if $prefs.wiki_list_backlinks eq 'y'} {if $prefs.feature_backlinks eq 'y'} {else} {/if} {/if} {if $prefs.wiki_list_size eq 'y'} {/if} {if $prefs.wiki_list_language eq 'y'} {/if} {if $prefs.wiki_list_categories eq 'y'} {/if} {if $prefs.wiki_list_categories_path eq 'y'} {/if} {if $prefs.wiki_list_rating eq 'y' AND $prefs.feature_polls eq 'y'} {/if} {if $show_actions eq 'y'} {/if} {sectionelse} {$find_htmlescaped = $find|escape} {$initial_htmlescaped = $initial|escape} {if $exact_match ne 'n'}{$intro = "{tr}No page:{/tr}"}{else}{$intro = "{tr}No pages found with:{/tr}"}{/if} {if $find ne '' && $aliases_were_found == 'y'} {norecords _colspan=$cntcol _text="$intro "$find_htmlescaped".
However, some page aliases fitting the query were found (see Aliases section above)."} {elseif $find ne '' && $initial ne '' && $aliases_were_found == 'y'} {norecords _colspan=$cntcol _text="$intro "$find_htmlescaped"and starting with " $initial_htmlescaped "e;.
However, some page aliases fitting the query were found (see Aliases section above)."} {elseif $find ne '' && $initial ne ''} {norecords _colspan=$cntcol _text="$intro "$find_htmlescaped" and starting with " $initial_htmlescaped "."} {elseif $find ne ''} {norecords _colspan=$cntcol _text="$intro "$find_htmlescaped"."} {else} {norecords _colspan=$cntcol _text="{tr}No pages found.{/tr}"} {/if} {/section}
{select_all checkbox_names='checked[]' tablesorter="{$ts.enabled}"} {self_link _sort_arg='sort_mode' _sort_field='page_id'}{tr}Id{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='pageName'}{tr}Page{/tr}{/self_link} {$ln|escape}{self_link _sort_arg='sort_mode' _sort_field='hits'}{tr}Hits{/tr}{/self_link} {assign var='lastmod_sortfield' value='lastModif'} {assign var='lastmod_shorttitle' value="{tr}Last modification{/tr}"} {if $prefs.wiki_list_lastmodif eq 'y' and $prefs.wiki_list_comment eq 'y'} {assign var='lastmod_title' value="{tr}Last modification{/tr} / {tr}Comment{/tr}"} {elseif $prefs.wiki_list_lastmodif eq 'y'} {assign var='lastmod_title' value="{tr}Last modification{/tr}"} {else} {assign var='lastmod_title' value="{tr}Comment{/tr}"} {assign var='lastmod_sortfield' value='comment'} {assign var='lastmod_shorttitle' value="{tr}Comment{/tr}"} {/if} {self_link _sort_arg='sort_mode' _sort_field=$lastmod_sortfield _title=$lastmod_title}{$lastmod_shorttitle}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='creator' _title="{tr}Page creator{/tr}"}{tr}Creator{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='user' _title="{tr}Last author{/tr}"}{tr}Last author{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='version' _title="{tr}Last version{/tr}"}{tr}Last version{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='flag' _icon_name='lock'}{tr}Status of the page{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='versions' _title="{tr}Versions{/tr}"}{tr}Version{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='links' _title="{tr}Links to other items in page{/tr}"}{tr}Links{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='backlinks' _title="{tr}Links to this page in other pages{/tr}"}{tr}Backl.{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='page_size' _title="{tr}Page size{/tr}"}{tr}Size{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='lang' _title="{tr}Language{/tr}"}{tr}Lang.{/tr}{/self_link} {tr}Categories{/tr}{tr}Categories{/tr} {self_link _sort_arg='sort_mode' _sort_field='rating' _title="{tr}Ratings{/tr}"}{tr}Ratings{/tr}{/self_link}
{$listpages[changes].page_id} {* The variant of the object link below adds the baseurl as received by the request to the href attribute generated. I.e. "http://192.168.1.10/tiki-listpages.php?page=MyPage" instead of "tiki-listpages.php?page=MyPage" This leads to trouble when using a reverse proxy that takes an external fqdn and maps it to a local address. Other templates do not use this object_link but an simple . See i.e tiki_lastchanges.tpl so we use it here as well. Same for the link generated for the page id (wiki_list_id) above. *} {* {object_link type=wiki id=$listpages[changes].pageName url=$listpages[changes].pageName|sefurl:'wiki':'':$all_langs title=$listpages[changes].pageName|truncate:$prefs.wiki_list_name_len:"...":true} *} {$listpages[changes].pageName|truncate:$prefs.wiki_list_name_len:"...":true|escape} {if $prefs.wiki_list_description eq 'y' && $listpages[changes].description neq ""}
{$listpages[changes].description|truncate:$prefs.wiki_list_description_len:"...":true}
{/if} {if !empty($listpages[changes].snippet)}
{$listpages[changes].snippet}
{/if}
{if $listpages[changes].translations[$lc]} {$listpages[changes].translations[$lc]|escape} {/if} {$listpages[changes].hits} {if $prefs.wiki_list_lastmodif eq 'y'}
{$listpages[changes].lastModif|tiki_short_datetime}
{/if} {if $prefs.wiki_list_comment eq 'y' && $listpages[changes].comment neq ""}
{$listpages[changes].comment|truncate:$prefs.wiki_list_comment_len:"...":true|escape}
{/if}
{$listpages[changes].creator|userlink} {$listpages[changes].user|userlink} {$listpages[changes].version} {if $listpages[changes].flag eq 'locked'} {icon name='lock' alt="{tr}Locked{/tr}"} {else} {icon name='unlock' alt="{tr}unlocked{/tr}"} {/if} {$listpages[changes].version} {$listpages[changes].version} {$listpages[changes].links} {$listpages[changes].backlinks} {$listpages[changes].backlinks}{$listpages[changes].len|kbsize} {$listpages[changes].lang} {foreach $listpages[changes].categname as $categ} {if !$categ@first}
{/if} {$categ|escape} {/foreach}
{foreach $listpages[changes].categpath as $categpath} {if !$categpath@first}
{/if} {$categpath|escape} {/foreach}
{if isset($listpages[changes].rating)}{$listpages[changes].rating}{/if} {actions} {strip} {if $listpages[changes].perms.tiki_p_edit eq 'y'} {icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {icon name='copy' _menu_text='y' _menu_icon='y' alt="{tr}Copy{/tr}"} {/if} {if $prefs.feature_history eq 'y' and $listpages[changes].perms.tiki_p_wiki_view_history eq 'y'} {icon name='history' _menu_text='y' _menu_icon='y' alt="{tr}History{/tr}"} {/if} {if $listpages[changes].perms.tiki_p_assign_perm_wiki_page eq 'y'} {permission_link mode=text type="wiki page" permType=wiki id=$listpages[changes].pageName} {/if} {if $listpages[changes].perms.tiki_p_remove eq 'y'} {icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/if} {/strip} {/actions}
{if isset($ts.enabled) } {jq} if (myfilter) { var pageNameColumn = $('#pagename').data('column'); $('input[data-column=' + pageNameColumn + ']').val(myfilter); var currentFilter = []; for(i = 0; i < $('#listpages1 th:last').data('column'); i++) { var value = i == pageNameColumn ? myfilter : ''; currentFilter.push(value); } $('#listpages1').data('lastSearch', currentFilter); } {/jq} {/if} {if !$ts.ajax} {if $checkboxes_on eq 'y' && count($listpages) > 0} {* what happens to the checked items? *}
{/if} {if $find and $tiki_p_edit eq 'y' and $pagefound eq 'n' and $alias_found eq 'n'} {capture assign='find_htmlescaped'}{$find|escape}{/capture} {capture assign='find_urlescaped'}{$find|escape:'url'}{/capture}
{button _text="{tr}Create Page:{/tr} $find_htmlescaped" href="tiki-editpage.php?page=$find_urlescaped&lang=$find_lang&templateId=$template_id&template_name=$template_name&categId=$create_page_with_categId" class="btn btn-primary" _title="{tr}Create{/tr}"}
{/if} {if $checkboxes_on eq 'y'}
{/if} {if !isset($ts.enabled) or !$ts.enabled} {if $pluginlistpages eq 'y' and $pagination eq 'y'} {pagination_links cant=$cant step=$maxRecords offset=$offset offset_arg=$offset_arg clean=$clean}{/pagination_links} {elseif $pluginlistpages eq 'y' and $pagination neq 'y'} {else} {pagination_links cant=$cant step=$maxRecords offset=$offset clean=$clean}{/pagination_links} {/if} {/if} {/if}