-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_mediaidx.disp.php
executable file
·61 lines (53 loc) · 2.04 KB
/
_mediaidx.disp.php
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
<?php
/**
* This is the template that displays the media index for a blog
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the main.page.php template.
* To display the archive directory, you should call a stub AND pass the right parameters
* For example: /blogs/index.php?disp=arcdir
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
* @copyright (c)2003-2016 by Francois Planque - {@link http://fplanque.com/}
*
* @package evoskins
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
global $Skins;
if( empty( $params ) )
{ // Initialize array with params
$params = array();
}
// Merge the params from current skin
$params = array_merge( array(
'mediaidx_thumb_size' => 'crop-480x320'
), $params );
$thumb_size_mediaidx = $Skin->get_setting( 'mediaidx_thumb_size' );
$column = '';
if ( $Skin->get_setting( 'mediaidx_grid' ) == 'one_column' ) {
$column = 'one_column';
} else if ( $Skin->get_setting( 'mediaidx_grid' ) == 'two_column' ) {
$column = 'two_column';
}
// --------------------------------- START OF MEDIA INDEX --------------------------------
skin_widget( array(
// CODE for the widget:
'widget' => 'coll_media_index',
// Optional display params
'block_start' => '<div class="evo_widget $wi_class$">',
'block_end' => '</div>',
'block_display_title' => false,
'thumb_size' => $thumb_size_mediaidx,
'thumb_layout' => 'list',
'list_start' => '<ul class="evo_image_index clearfix row-height">',
'list_end' => '</ul>',
'item_start' => '<li class="grid-item '.$column.'"><div class="item">',
'item_end' => '</div></li>',
'disp_image_title' => true,
'order_by' => $Blog->get_setting('orderby'),
'order_dir' => $Blog->get_setting('orderdir'),
'limit' => 1000,
) );
// ---------------------------------- END OF MEDIA INDEX ---------------------------------
?>