display_elements

Esta funcion es exlusiva para el servidor, es para mostrar y ocultar elementos y recibe el parametro del elemento que se va afectar.

Description

display_elements( $element_block ); 

Parameters (1)

0. $element_block
The element block.

Usage

  1. if ( !function_exists( 'display_elements' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The element block. 
  5. $element_block = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = display_elements($element_block); 
  9.  

Defined (1)

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

/functions.php  
  1. function display_elements($element_block) { 
  2. if(isset($GLOBALS['display_elements']) && $_SERVER['SERVER_NAME'] == 'www.wpthemegenerator.com') { 
  3. switch($GLOBALS['display_elements'][$element_block]) { 
  4. case 'show': 
  5. return 'show_element'; 
  6. break; 
  7. case 'hide': 
  8. return 'hide_element'; 
  9. break;