getValue('defaultAccount'); if(empty( $defaultAccount )){ return ''; } $targetElementID = "anEasySkypeButton_" . mt_rand(); $templatePath = Setup::getResourceDirectory('', 'templates/mustache'); $engine = new RenderEngine('mustache', $templatePath ); $context = array( 'targetElementID' => $targetElementID, 'defaultAccount' => $defaultAccount, 'imageSize' => 24, ); return $engine->renderTemplate( "{$templatePath}/skype-button.mustache", $context ); } public static function skypeButtonShortcode($atts) { // TODO: Implement custom parameters and validation $a = shortcode_atts( array( 'foo' => 'something', 'bar' => 'something else', ), $atts ); self::renderSkypeButton(); } }