gl_field_sl_layout

The Google Locker for WordPress gl field sl layout function.

Description

gl_field_sl_layout(); 

Usage

  1. if ( !function_exists( 'gl_field_sl_layout' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-locker-for-wordpress/admin/pages.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gl_field_sl_layout(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/admin/pages.php  
  1. function gl_field_sl_layout() { 
  2. $social_lock_settings = gl_get_social_lock_setting_values(); 
  3. ?> 
  4. <select name="<?php echo gl_get_social_lock_settings_key(); ?>[sl_layout]" id="<?php echo esc_attr( $social_lock_settings[ 'sl_layout' ] ); ?>"> 
  5. <option value="count" <?php if ( $social_lock_settings[ 'sl_layout' ] == 'count' ) { echo 'selected="selected"'; } ?>>Count</option> 
  6. <option value="box" <?php if ( $social_lock_settings[ 'sl_layout' ] == 'box' ) { echo 'selected="selected"'; } ?>>Box</option> 
  7. </select> 
  8. <?php