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-auth-links / global / index.php

<?php
/**
 * Auth Links Template
 */

$settings = $this->get_settings_for_display();

$order = isset( $settings['order'] ) ? esc_attr( $settings['order'] ) : 'login_register';

switch ( $order ) {
	case 'register_login':
		$templates_order = array( 'register', 'registered', 'login', 'logout' );
		break;

	default:
		$templates_order = array( 'login', 'logout', 'register', 'registered' );
		break;
}

?>
<div class="jet-auth-links"><?php
	foreach ( $templates_order as $template ) {
		include $this->__get_global_template( $template );
	}
?></div>