Created
July 25, 2013 11:56
-
-
Save rikardhassel/6078992 to your computer and use it in GitHub Desktop.
PHP: First Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* 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