Skip to content

Instantly share code, notes, and snippets.

@rikardhassel
Created July 25, 2013 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rikardhassel/6078992 to your computer and use it in GitHub Desktop.
Save rikardhassel/6078992 to your computer and use it in GitHub Desktop.
PHP: First Test
/**
*
* Everyday hours shortcode handler.
* See https://github.com/MZAWeb/business-hours-plugin/wiki/Shortcodes
*
* @param $atts
*
* @return mixed|null
*/
public function shortcode_table( $atts ) {
extract( shortcode_atts( array( 'collapsible' => 'false', ), $atts ) );
$collapsible = ( strtolower( $collapsible ) === "true" ) ? true : false;
if ( $collapsible )
$this->enqueue_resources();
return $this->get_table( $collapsible );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment