-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_item_list.inc.php
More file actions
64 lines (60 loc) · 2.28 KB
/
_item_list.inc.php
File metadata and controls
64 lines (60 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* This is the template that displays the item block in list
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the main.page.php template (or other templates)
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
* @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}
*
* @package evoskins
* @subpackage bootstrap_manual
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
// Default params:
$params = array_merge( array(
'post_navigation' => 'same_category', // Always navigate through category in this skin
'before_title' => '<h3>',
'after_title' => '</h3>',
'Item' => NULL
), $params );
global $Item;
if( ! empty( $params['Item'] ) )
{ // Get Item from params:
$Item = $params['Item'];
}
?>
<li><?php
$item_action_links = $Item->get_edit_link( array(
'before' => '',
'after' => '',
'class' => button_class( 'text' ),
) );
$item_action_links .= $Item->get_copy_link( array(
'before' => '',
'after' => '',
'class' => button_class(),
'text' => '#icon#',
) );
if( ! empty( $item_action_links ) )
{ // Group all action icons:
$item_action_links = '<div class="'.button_class( 'group' ).'">'.$item_action_links.'</div>';
}
$Item->title( array(
'before' => $params['before_title'],
'after' => $params['after_title'].$item_action_links.'<div class="clear"></div>',
'before_title' => get_icon( 'file_message' ),
//'after' => ' <span class="red">'.( $Item->get('order') > 0 ? $Item->get('order') : 'NULL').'</span>'.$params['after_title'].$item_edit_link.'<div class="clear"></div>',
'post_navigation' => $params['post_navigation'],
'link_class' => 'link',
) );
// this will create a <section>
// ---------------------- POST CONTENT INCLUDED HERE ----------------------
skin_include( '_item_content.inc.php', $params );
// Note: You can customize the default item content by copying the generic
// /skins/_item_content.inc.php file into the current skin folder.
// -------------------------- END OF POST CONTENT -------------------------
// this will end a </section>
?></li>