41 lines
973 B
PHP
41 lines
973 B
PHP
<?php
|
|
/**
|
|
* Underscore.js template
|
|
*
|
|
* @package fusion-builder
|
|
* @since 3.2
|
|
*/
|
|
|
|
?>
|
|
<script type="text/html" id="tmpl-fusion_tb_woo_upsells-shortcode">
|
|
<section {{{ _.fusionGetAttributes( attr ) }}}>
|
|
{{{ titleElement }}}
|
|
|
|
<#
|
|
// If Query Data is set, use it and continue. If not, echo HTML.
|
|
if ( 'undefined' !== typeof query_data && 'undefined' !== typeof query_data.fusion_tb_woo_upsells && query_data.fusion_tb_woo_upsells ) {
|
|
if ( 0 === query_data.product_counts ) { #>
|
|
{{{ output }}}
|
|
<#
|
|
} else if ( 'carousel' === layout ) {
|
|
#>
|
|
<div {{{ _.fusionGetAttributes( carouselAttrs ) }}}>
|
|
<div {{{ _.fusionGetAttributes( productsAttrs ) }}}>
|
|
{{{ output }}}
|
|
</div>
|
|
|
|
{{{ carouselNav }}}
|
|
</div>
|
|
<# } else { #>
|
|
<ul {{{ _.fusionGetAttributes( productsAttrs ) }}}>
|
|
{{{ output }}}
|
|
</ul>
|
|
<# }
|
|
|
|
} else if ( 'undefined' !== typeof query_data && 'undefined' !== typeof query_data.placeholder ) {
|
|
#>
|
|
{{{ query_data.placeholder }}}
|
|
<# } #>
|
|
</section>
|
|
</script>
|