Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {exp:low_search:results
- query="{segment_3}"
- status="not closed"
- disable="member_data|category_fields"
- channel="library_content"
- limit="10"
- paginate="bottom"
- shortcut="{segment_3}"
- }
- {if count == 1}
- <p>
- <br />Total results: <strong>{absolute_results}</strong>.
- </p>
- <div class="table-responsive">
- <table id="library-search-results-table" class="table table-striped">
- <thead>
- <tr>
- <th><span class="glyphicon glyphicon-star-empty"></span></th>
- <th>File</th>
- <th>
- {if low_search_orderby == 'title'}
- {if low_search_sort == 'desc'}
- <a href='{low_search:url result_page="library/search" orderby_sort="title|asc" encode="no"}'> Title <span class="glyphicon glyphicon-arrow-up"></span></a>
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="title|desc" encode="no"}'> Title <span class="glyphicon glyphicon-arrow-down"></span></a>
- {/if}
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="title|asc" encode="no"}'> Title</a>
- {/if}
- </th>
- <th>
- {if low_search_orderby == 'library_date_published'}
- {if low_search_sort == 'desc'}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_date_published|asc" encode="no"}'> Pub. Date <span class="glyphicon glyphicon-arrow-up"></span></a>
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_date_published|desc" encode="no"}'> Pub. Date <span class="glyphicon glyphicon-arrow-down"></span></a>
- {/if}
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_date_published|asc" encode="no"}'> Pub. Date</a>
- {/if}
- </th>
- <th>
- {if low_search_orderby == 'comment_total'}
- {if low_search_sort == 'desc'}
- <a href='{low_search:url result_page="library/search" orderby_sort="comment_total|asc" encode="no"}'>Comments <span class="glyphicon glyphicon-arrow-up"></span></a>
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="comment_total|desc" encode="no"}'>Comments <span class="glyphicon glyphicon-arrow-down"></span></a>
- {/if}
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="comment_total|asc" encode="no"}'>Comments</a>
- {/if}
- </th>
- <th>
- {if low_search_orderby == 'library_state_territory'}
- {if low_search_sort == 'desc'}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_state_territory|asc" encode="no"}'> State <span class="glyphicon glyphicon-arrow-up"></span></a>
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_state_territory|desc" encode="no"}'> State <span class="glyphicon glyphicon-arrow-down"></span></a>
- {/if}
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_state_territory|asc" encode="no"}'> State</a>
- {/if}
- </th>
- {!--<th>Description</th>--}
- <th>Type</th>
- <th>Topic</th>
- <th>
- {if low_search_orderby == 'library_jurisdiction'}
- {if low_search_sort == 'desc'}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_jurisdiction|asc" encode="no"}'> Juris. <span class="glyphicon glyphicon-arrow-up"></span></a>
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_jurisdiction|desc" encode="no"}'> Juris. <span class="glyphicon glyphicon-arrow-down"></span></a>
- {/if}
- {if:else}
- <a href='{low_search:url result_page="library/search" orderby_sort="library_jurisdiction|asc" encode="no"}'> Juris.</a>
- {/if}
- </th>
- <th>Pop. Group</th>
- </tr>
- </thead>
- <tbody>
- {/if}
- <tr>
- <td>
- <a href="#" class="bookmark-button" data-file-id="{entry_id}" data-toggle='tooltip' data-placement='left' title="Bookmark">
- <span class="glyphicon glyphicon-star-empty"></span>
- </a>
- </td>
- {exp:channel_files:files entry_id="{entry_id}"}
- <td>
- <a href="{file:locked_url}" title="{file:title}" class="file-download-link" data-file-extension="{file:extension}" data-file-name="{title}">
- {exp:switchee variable="{file:extension}" parse="inward"}
- {case value="pdf"}
- <img src="/_assets/icon-pdf-50x50.png" alt="download pdf" />
- {/case}
- {case value="ppt"}
- <img src="/_assets/icon-ppt-50x50.png" alt="download powerpoint" />
- {/case}
- {case default="yes"}
- <img src="/_assets/icon-file-50x50.png" alt="download file" />
- {/case}
- {/exp:switchee}
- </a>
- <small class="file-size">{file:filesize}</small>
- </td>
- {if file:no_files}<td>--</td>{/if}
- {/exp:channel_files:files}
- <td>
- <a href="/library/view/{url_title}/">{title}</a>
- {if library_sub_title}<br /><em>{library_sub_title}</em>{/if}
- {if library_description}<br /><small>{library_description}</small>{/if}
- </td>
- <td>{library_date_published format="%M %Y"}</td>
- <td>{comment_total}</td>
- <td>{library_state_territory}</td>
- {!--<td>{library_description}</td>--}
- <td>{library_type}</td>
- <td>{library_topic}</td>
- <td>{library_jurisdiction}</td>
- <td>{if library_population_group}{library_population_group}{if:else}--{/if}</td>
- </tr>
- {if count == total_results}
- </tbody>
- </table>
- </div>
- {/if}
- {if low_search_no_results}
- <h3>
- Sorry, your query did not return any results.<br>
- Check your spelling or try a different search term.
- </h3>
- {/if}
- {paginate}
- {pagination_links page_padding="4" always_show_first_last="yes"}
- <ul class="pagination pagination-sm">
- {!--
- {first_page}
- <li><a href="{pagination_url}" class="page-first">First Page</a></li>
- {/first_page}
- {last_page}
- <li><a href="{pagination_url}" class="page-last">Last Page</a></li>
- {/last_page}
- --}
- {previous_page}
- <li><a href="{pagination_url}" class="page-previous">«</a></li>
- {/previous_page}
- {page}
- <li{if current_page} class="active"{/if}>
- <a href="{pagination_url}" class="page-{pagination_page_number}">
- {pagination_page_number}
- </a>
- </li>
- {/page}
- {next_page}
- <li><a href="{pagination_url}" class="page-next">»</a></li>
- {/next_page}
- </ul>
- {/pagination_links}
- {/paginate}
- {/exp:low_search:results}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement