Last active
October 15, 2015 14:03
-
-
Save Dinamiko/02a4448dc0d109674c35 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/** | |
* [encuesta] | |
* Imprime la aplicación encuesta | |
*/ | |
function encuesta_shortcode( $atts, $content = null ) { | |
global $encuesta_atts; | |
$encuesta_atts = shortcode_atts( array(), $atts ); | |
$template = new Encuesta_Template_Loader; | |
ob_start(); | |
$template->get_template_part( 'encuesta' ); | |
return ob_get_clean(); | |
} | |
add_shortcode( 'encuesta', 'encuesta_shortcode' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment