Exemplo n.º 1
0
				</ul>
			</div>
		<% } %>
	</div>
</script>

<script type="text/template" id="pmp-search-results-pagination-tmpl">
	<div id="pmp-search-results-pagination">
		<a href="#" class="disabled prev button button-primary">Previous</a>
		<a href="#" class="disabled next button button-primary">Next</a>
		<span class="spinner"></span>
		<p class="pmp-page-count">Page <span class="pmp-page"></span> of <span class="pmp-total-pages"></span></p>
	</div>
</script>

<?php 
if (!empty($PMP['search'])) {
    pmp_save_search_query_template($PMP['search']);
} else {
    pmp_save_search_query_template();
}
pmp_modal_underscore_template();
?>

<script type="text/javascript">
	var PMP = <?php 
echo json_encode($PMP);
?>
;
</script>
Exemplo n.º 2
0
 function test_pmp_save_search_query_template()
 {
     // TODO: this isn't a very good test.
     $this->expectOutputRegex('/id="pmp-save-query-tmpl"/');
     pmp_save_search_query_template();
 }