• File: fusion-recent-posts-preview.php
  • Full Path: /home/docteuh/www/_inc/inc/templates/previews/fusion-recent-posts-preview.php
  • Date Modified: 11/20/2023 6:12 PM
  • File size: 1.12 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * Underscore.js template.
 *
 * @package fusion-builder
 */

?>
<script type="text/template" id="fusion-builder-block-module-recent-posts-preview-template">
	<h4 class="fusion_module_title"><span class="fusion-module-icon {{ fusionAllElements[element_type].icon }}"></span>{{ fusionAllElements[element_type].name }}</h4>
	<?php /* translators: The layout. */ ?>
	<?php printf( esc_html__( 'layout = %s', 'fusion-builder' ), '{{ params.layout }}' ); ?>
	<br />
	<?php /* translators: The columns. */ ?>
	<?php printf( esc_html__( 'columns = %s', 'fusion-builder' ), '{{ params.columns }}' ); ?>
	<br />
	<#
	var categories = ( null === params.cat_slug || '' === params.cat_slug ) ? 'All' : params.cat_slug;
	var tags = ( null === params.tag_slug || '' === params.tag_slug ) ? 'All' : params.tag_slug;
	#>
	<# if ( 'tag' === params.pull_by ) { #>
		<?php /* translators: The tags. */ ?>
		<?php printf( esc_html__( 'tags = %s', 'fusion-builder' ), '{{ tags }}' ); ?>
	<# } else { #>
		<?php /* translators: The categories. */ ?>
		<?php printf( esc_html__( 'categories = %s', 'fusion-builder' ), '{{ categories }}' ); ?>
	<# } #>

</script>