Loading htdocs/json/tagsearch.php +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ $tag = param_variable('tag', null); $limit = param_integer('limit', 10); $offset = param_integer('offset', 0); $sort = param_alpha('sort', 'name'); $type = param_alpha('type', null); $type = param_alpha('type', 'all'); $owner = (object) array('type' => 'user', 'id' => $USER->get('id')); $data = get_portfolio_items_by_tag($tag, $owner, $limit, $offset, $sort, $type); Loading htdocs/tags.php +2 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,7 @@ jQuery(function($) { $(this).addClass('selected'); } }); $('#results_filter a').each(function () {rewriteTagLink(this, ['tag', 'sort'], ['type'])}); params.sort = data.data.sort; } Loading @@ -167,6 +168,7 @@ jQuery(function($) { $(this).addClass('selected'); } }); $('#results_sort a').each(function () {rewriteTagLink(this, ['tag', 'type'], [ 'sort'])}); params.type = data.data.type; } Loading htdocs/theme/raw/templates/tags.tpl +2 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ <div id="results_sort" class="pull-right"> <strong>{str tag=sortresultsby}</strong> {foreach from=$results->sortcols item=sortfield name=sortcols} <a href="{$results->baseurl}{$results->queryprefix}type={$results->filter}&sort={$sortfield}"{if $results->sort == $sortfield} class="selected"{/if}>{str tag=$sortfield}</a>{if !$.foreach.sortcols.last} <span class="sep">|</span>{/if} <a href="{$results->baseurl}{$results->queryprefix}sort={$sortfield}"{if $results->sort == $sortfield} class="selected"{/if}>{str tag=$sortfield}</a>{if !$.foreach.sortcols.last} <span class="sep">|</span>{/if} {/foreach} </div> <div class="btn-group"> Loading @@ -41,7 +41,7 @@ <ul class="dropdown-menu" id="results_filter"> {foreach from=$results->filtercols key=filtername item=filterdisplay name=filtercols} <li> <a href="{$results->baseurl}{$results->queryprefix}sort={$results->sort}&type={$filtername}"{if $results->filter == $filtername} class="selected"{/if}>{$filterdisplay}</a> <a href="{$results->baseurl}{$results->queryprefix}type={$filtername}"{if $results->filter == $filtername} class="selected"{/if}>{$filterdisplay}</a> </li> {/foreach} </ul> Loading Loading
htdocs/json/tagsearch.php +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ $tag = param_variable('tag', null); $limit = param_integer('limit', 10); $offset = param_integer('offset', 0); $sort = param_alpha('sort', 'name'); $type = param_alpha('type', null); $type = param_alpha('type', 'all'); $owner = (object) array('type' => 'user', 'id' => $USER->get('id')); $data = get_portfolio_items_by_tag($tag, $owner, $limit, $offset, $sort, $type); Loading
htdocs/tags.php +2 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,7 @@ jQuery(function($) { $(this).addClass('selected'); } }); $('#results_filter a').each(function () {rewriteTagLink(this, ['tag', 'sort'], ['type'])}); params.sort = data.data.sort; } Loading @@ -167,6 +168,7 @@ jQuery(function($) { $(this).addClass('selected'); } }); $('#results_sort a').each(function () {rewriteTagLink(this, ['tag', 'type'], [ 'sort'])}); params.type = data.data.type; } Loading
htdocs/theme/raw/templates/tags.tpl +2 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ <div id="results_sort" class="pull-right"> <strong>{str tag=sortresultsby}</strong> {foreach from=$results->sortcols item=sortfield name=sortcols} <a href="{$results->baseurl}{$results->queryprefix}type={$results->filter}&sort={$sortfield}"{if $results->sort == $sortfield} class="selected"{/if}>{str tag=$sortfield}</a>{if !$.foreach.sortcols.last} <span class="sep">|</span>{/if} <a href="{$results->baseurl}{$results->queryprefix}sort={$sortfield}"{if $results->sort == $sortfield} class="selected"{/if}>{str tag=$sortfield}</a>{if !$.foreach.sortcols.last} <span class="sep">|</span>{/if} {/foreach} </div> <div class="btn-group"> Loading @@ -41,7 +41,7 @@ <ul class="dropdown-menu" id="results_filter"> {foreach from=$results->filtercols key=filtername item=filterdisplay name=filtercols} <li> <a href="{$results->baseurl}{$results->queryprefix}sort={$results->sort}&type={$filtername}"{if $results->filter == $filtername} class="selected"{/if}>{$filterdisplay}</a> <a href="{$results->baseurl}{$results->queryprefix}type={$filtername}"{if $results->filter == $filtername} class="selected"{/if}>{$filterdisplay}</a> </li> {/foreach} </ul> Loading