@@ -36,11 +36,11 @@ function serendipity_isActiveFile($file) {
|
|||||||
* @access public
|
* @access public
|
||||||
* @param int The offset to start fetching media files
|
* @param int The offset to start fetching media files
|
||||||
* @param int How many items to fetch
|
* @param int How many items to fetch
|
||||||
* @param int The number (referenced varaible) of fetched items
|
* @param int The number (referenced variable) of fetched items
|
||||||
* @param string The "ORDER BY" sql part when fetching items
|
* @param string The "ORDER BY" sql part when fetching items
|
||||||
* @param string Order by DESC or ASC
|
* @param string Order by DESC or ASC
|
||||||
* @param string Only fetch files from a specific directory
|
* @param string Only fetch files from a specific directory
|
||||||
* @param string Only fetch specific filenames
|
* @param string Only fetch specific filenames (including check for realname match)
|
||||||
* @param string Only fetch media with specific keyword
|
* @param string Only fetch media with specific keyword
|
||||||
* @param array An array of restricting filter sets
|
* @param array An array of restricting filter sets
|
||||||
* @param boolean Apply strict directory checks, or include subdirectories?
|
* @param boolean Apply strict directory checks, or include subdirectories?
|
||||||
@@ -2019,7 +2019,8 @@ function serendipity_getimagesize($file, $ft_mime = '', $suf = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the available fields of the media database
|
* Get the available fields of the media database, except name,
|
||||||
|
* since this is handled extra and hardcoded as 'only_filename'
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return array Array with available, sortable fields
|
* @return array Array with available, sortable fields
|
||||||
@@ -2031,10 +2032,10 @@ function serendipity_getImageFields() {
|
|||||||
$x = array(
|
$x = array(
|
||||||
'i.date' => array('desc' => SORT_ORDER_DATE,
|
'i.date' => array('desc' => SORT_ORDER_DATE,
|
||||||
'type' => 'date'
|
'type' => 'date'
|
||||||
),
|
)/*,
|
||||||
|
|
||||||
'i.name' => array('desc' => SORT_ORDER_NAME
|
'i.name' => array('desc' => SORT_ORDER_NAME
|
||||||
),
|
),*/
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -2042,10 +2043,10 @@ function serendipity_getImageFields() {
|
|||||||
$x = array(
|
$x = array(
|
||||||
'i.date' => array('desc' => SORT_ORDER_DATE,
|
'i.date' => array('desc' => SORT_ORDER_DATE,
|
||||||
'type' => 'date'
|
'type' => 'date'
|
||||||
),
|
),/*,
|
||||||
|
|
||||||
'i.name' => array('desc' => SORT_ORDER_NAME
|
'i.name' => array('desc' => SORT_ORDER_NAME
|
||||||
),
|
),*/
|
||||||
|
|
||||||
'i.authorid' => array('desc' => AUTHOR,
|
'i.authorid' => array('desc' => AUTHOR,
|
||||||
'type' => 'authors'
|
'type' => 'authors'
|
||||||
@@ -2937,6 +2938,7 @@ function serendipity_showMedia(&$file, &$paths, $url = '', $manage = false, $lin
|
|||||||
'keywords_selected' => $serendipity['GET']['keywords'],
|
'keywords_selected' => $serendipity['GET']['keywords'],
|
||||||
'filter' => $serendipity['GET']['filter'],
|
'filter' => $serendipity['GET']['filter'],
|
||||||
'sort_order' => serendipity_getImageFields(),
|
'sort_order' => serendipity_getImageFields(),
|
||||||
|
'simpleFilters' => $serendipity['simpleFilters'],
|
||||||
'toggle_dir' => empty($serendipity['GET']['toggle_dir']) ? 'no' : $serendipity['GET']['toggle_dir'],
|
'toggle_dir' => empty($serendipity['GET']['toggle_dir']) ? 'no' : $serendipity['GET']['toggle_dir'],
|
||||||
'authors' => serendipity_fetchUsers(),
|
'authors' => serendipity_fetchUsers(),
|
||||||
'sort_row_interval' => array(8, 16, 50, 100),
|
'sort_row_interval' => array(8, 16, 50, 100),
|
||||||
|
|||||||
@@ -106,17 +106,17 @@
|
|||||||
</div>{* media filter end *}
|
</div>{* media filter end *}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
||||||
<div id="media_filter_file" class="form_field left">
|
<div id="media_filter_file" class="form_field {if $media.simpleFilters}center{else}left{/if}">
|
||||||
<label for="serendipity_only_filename">{$CONST.SORT_ORDER_NAME}</label>
|
<label for="serendipity_only_filename">{$CONST.SORT_ORDER_NAME}</label>
|
||||||
<input id="serendipity_only_filename" name="serendipity[only_filename]" type="text" value="{$media.only_filename|escape}">
|
<input id="serendipity_only_filename" name="serendipity[only_filename]" type="text" value="{$media.only_filename|escape}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="media_filter_keywords" class="form_field center">
|
<div id="media_filter_keywords" class="form_field {if $media.simpleFilters}right{else}center{/if}">
|
||||||
<label for="keyword_input">{$CONST.MEDIA_KEYWORDS}</label>
|
<label for="keyword_input">{$CONST.MEDIA_KEYWORDS}</label>
|
||||||
<input id="keyword_input" name="serendipity[keywords]" type="text" value="{$media.keywords_selected|escape}">
|
<input id="keyword_input" name="serendipity[keywords]" type="text" value="{$media.keywords_selected|escape}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="keyword_list" class="clearfix right">
|
<div id="keyword_list" class="clearfix {if $media.simpleFilters}keywords {/if}right">
|
||||||
{foreach $media.keywords AS $keyword}
|
{foreach $media.keywords AS $keyword}
|
||||||
|
|
||||||
<a class="add_keyword" href="#keyword-input" data-keyword="{$keyword|escape}" title="{$keyword|escape}">{$keyword|escape|truncate:20:"…"}</a>
|
<a class="add_keyword" href="#keyword-input" data-keyword="{$keyword|escape}" title="{$keyword|escape}">{$keyword|escape|truncate:20:"…"}</a>
|
||||||
|
|||||||
@@ -980,6 +980,10 @@ input[type=checkbox],
|
|||||||
margin-bottom: .75em;
|
margin-bottom: .75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#media_filter > .keywords {
|
||||||
|
margin-bottom: 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
#media_filter_path .form_select {
|
#media_filter_path .form_select {
|
||||||
margin: 0 0 0 .125em;
|
margin: 0 0 0 .125em;
|
||||||
}
|
}
|
||||||
@@ -3035,6 +3039,11 @@ img.mfp-img {
|
|||||||
width: 20%;
|
width: 20%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#media_filter > .left,
|
||||||
|
#media_filter > .center {/*mediafilter*/
|
||||||
|
margin-right: .2em;
|
||||||
|
}
|
||||||
|
|
||||||
.user_level {
|
.user_level {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
@@ -3367,6 +3376,12 @@ img.mfp-img {
|
|||||||
width: 33% ;
|
width: 33% ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#media_filter > div.keywords {/*simple filter*/
|
||||||
|
float: right;
|
||||||
|
margin-top: -2.5em;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#filter_entries .form_select,
|
#filter_entries .form_select,
|
||||||
#filter_entries .form_field {
|
#filter_entries .form_field {
|
||||||
float: left;
|
float: left;
|
||||||
@@ -3383,8 +3398,6 @@ img.mfp-img {
|
|||||||
clear: left;
|
clear: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#media_filter_file,
|
|
||||||
#media_pane_sort .left,
|
|
||||||
#serendipity_comment .form_area {
|
#serendipity_comment .form_area {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
@@ -3550,7 +3563,6 @@ img.mfp-img {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* LARGER SCREENS */
|
/* LARGER SCREENS */
|
||||||
@media only screen and (min-width: 1280px) {
|
@media only screen and (min-width: 1280px) {
|
||||||
.js .configuration_group .media_choose input {
|
.js .configuration_group .media_choose input {
|
||||||
|
|||||||
Reference in New Issue
Block a user