';
$_options = array(
'keyword' => yourls__( 'Short URL' ),
'url' => yourls__( 'URL' ),
'title' => yourls__( 'Title' ),
'ip' => yourls__( 'IP' ),
);
$_select = yourls_html_select( 'search_in', $_options, $search_in );
/* //translators: "Search for
in
" */
yourls_se( 'Search for %1$s in %2$s', $_input , $_select );
echo "–\n";
// Second search control: order by
$_options = array(
'keyword' => yourls__( 'Short URL' ),
'url' => yourls__( 'URL' ),
'timestamp' => yourls__( 'Date' ),
'ip' => yourls__( 'IP' ),
'clicks' => yourls__( 'Clicks' ),
);
$_select = yourls_html_select( 'sort_by', $_options, $sort_by );
$sort_order = isset( $sort_order ) ? $sort_order : 'desc' ;
$_options = array(
'asc' => yourls__( 'Ascending' ),
'desc' => yourls__( 'Descending' ),
);
$_select2 = yourls_html_select( 'sort_order', $_options, $sort_order );
/* //translators: "Order by in " */
yourls_se( 'Order by %1$s %2$s', $_select , $_select2 );
echo "–\n";
// Third search control: Show XX rows
/* //translators: "Show rows" */
yourls_se( 'Show %s rows', ' ' );
echo " \n";
// Fourth search control: Show links with more than XX clicks
$_options = array(
'more' => yourls__( 'more' ),
'less' => yourls__( 'less' ),
);
$_select = yourls_html_select( 'click_filter', $_options, $click_filter );
$_input = ' ';
/* //translators: "Show links with than clicks" */
yourls_se( 'Show links with %1$s than %2$s clicks', $_select, $_input );
echo " \n";
// Fifth search control: Show links created before/after/between ...
$_options = array(
'before' => yourls__('before'),
'after' => yourls__('after'),
'between' => yourls__('between'),
);
$_select = yourls_html_select( 'date_filter', $_options, $date_filter );
$_input = ' ';
$_and = ' & ';
$_input2 = ' ';
/* //translators: "Show links created <"and" if applicable> " */
yourls_se( 'Show links created %1$s %2$s %3$s %4$s', $_select, $_input, $_and, $_input2 );
?>