Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-blocks   php

Repository URL to install this package:

Version: 1.2.8 

/ jet-search / global / popup.php

<?php
/**
 * Popup template
 */
$settings = $this->get_settings();

$this->add_render_attribute( 'jet-search-popup', 'class', 'jet-search__popup' );

if ( isset( $settings['full_screen_popup'] ) && 'true' === $settings['full_screen_popup'] ) {
	$this->add_render_attribute( 'jet-search-popup', 'class', 'jet-search__popup--full-screen' );
}

if ( isset( $settings['popup_show_effect'] ) ) {
	$this->add_render_attribute( 'jet-search-popup', 'class', sprintf( 'jet-search__popup--%s-effect', $settings['popup_show_effect'] ) );
}
?>
<div <?php $this->print_render_attribute_string( 'jet-search-popup' ); ?>>
	<div class="jet-search__popup-content"><?php
		include $this->__get_global_template( 'form' );
		include $this->__get_global_template( 'popup-close' );
	?></div>
</div>
<?php include $this->__get_global_template( 'popup-trigger' ); ?>