X7ROOT File Manager
Current Path:
/home/notabjze/starbudzca.com/wp-content/plugins/jetpack/modules/shortcodes
home
/
notabjze
/
starbudzca.com
/
wp-content
/
plugins
/
jetpack
/
modules
/
shortcodes
/
ðŸ“
..
📄
archiveorg-book.php
(3.31 KB)
📄
archiveorg.php
(3.92 KB)
📄
archives.php
(2.38 KB)
📄
bandcamp.php
(7.75 KB)
📄
brightcove.php
(8.77 KB)
📄
cartodb.php
(803 B)
📄
class.filter-embedded-html-objects.php
(13.01 KB)
📄
codepen.php
(265 B)
📄
crowdsignal.php
(21.6 KB)
ðŸ“
css
📄
dailymotion.php
(15.27 KB)
📄
descript.php
(3 KB)
📄
facebook.php
(4.41 KB)
📄
flatio.php
(383 B)
📄
flickr.php
(9.29 KB)
📄
getty.php
(7.54 KB)
📄
gist.php
(8.31 KB)
📄
googleapps.php
(9.84 KB)
📄
googlemaps.php
(7.97 KB)
📄
googleplus.php
(1.03 KB)
📄
gravatar.php
(6.13 KB)
📄
houzz.php
(920 B)
ðŸ“
images
ðŸ“
img
📄
inline-pdfs.php
(1.14 KB)
📄
instagram.php
(14.5 KB)
ðŸ“
js
📄
kickstarter.php
(2.39 KB)
📄
mailchimp.php
(7.03 KB)
📄
medium.php
(3.22 KB)
📄
mixcloud.php
(3.62 KB)
📄
others.php
(2.06 KB)
📄
pinterest.php
(1.79 KB)
📄
presentations.php
(14.53 KB)
📄
quiz.php
(9.16 KB)
📄
recipe.php
(18.95 KB)
📄
scribd.php
(2.45 KB)
📄
sitemap.php
(562 B)
📄
slideshare.php
(3.81 KB)
📄
slideshow.php
(8.93 KB)
📄
smartframe.php
(3.64 KB)
📄
soundcloud.php
(8.68 KB)
📄
spotify.php
(3.26 KB)
📄
ted.php
(3.35 KB)
📄
tweet.php
(5.03 KB)
📄
twitchtv.php
(2.63 KB)
📄
twitter-timeline.php
(1.93 KB)
📄
unavailable.php
(3.24 KB)
📄
untappd-menu.php
(2.41 KB)
📄
upcoming-events.php
(1.68 KB)
📄
ustream.php
(3.13 KB)
📄
videopress.php
(423 B)
📄
vimeo.php
(11.13 KB)
📄
vine.php
(2.61 KB)
📄
vr.php
(4.92 KB)
📄
wordads.php
(1.81 KB)
📄
wufoo.php
(3.38 KB)
📄
youtube.php
(20.73 KB)
Editing: wufoo.php
<?php /** * Plugin Name: Wufoo Shortcode * Based on https://wordpress.org/plugins/wufoo-shortcode/ * * Examples: * [wufoo username="jeherve" formhash="z1x13ltw1m8jtrw" autoresize="true" height="338" header="show"] * * @package automattic/jetpack */ /** * Display the Wufoo shortcode. * * @param array $atts Shortcode attributes. */ function wufoo_shortcode( $atts ) { $attr = shortcode_atts( array( 'username' => '', 'formhash' => '', 'autoresize' => true, 'height' => '500', 'header' => 'show', ), $atts ); // Check username and formhash to ensure they only have alphanumeric characters or underscores, and aren't empty. if ( ! preg_match( '/^[a-zA-Z0-9_]+$/', $attr['username'] ) || ! preg_match( '/^[a-zA-Z0-9_]+$/', $attr['formhash'] ) ) { /* * Return an error to the users with instructions if one of these params is invalid * They don't have default values because they are user/form-specific */ if ( current_user_can( 'edit_posts' ) ) { return sprintf( wp_kses( /* translators: URL to Wufoo support page. */ __( 'Something is wrong with your Wufoo shortcode. Try following the instructions <a href="%s" target="_blank" rel="noopener noreferrer">here</a> to embed a form on your site.', 'jetpack' ), array( 'a' => array( 'href' => array(), 'target' => array(), 'rel' => array(), ), ) ), 'https://help.wufoo.com/articles/en_US/kb/Embed' ); } return; } /** * Placeholder which will tell Wufoo where to render the form. */ $js_embed_placeholder = sprintf( '<div id="wufoo-%s"></div>', esc_attr( $attr['formhash'] ) ); /** * Required parameters are present. * An error will be returned inside the form if they are invalid. */ $js_embed = sprintf( '(function(){try{var wufoo_%1$s = new WufooForm();wufoo_%1$s.initialize({"userName":"%2$s","formHash":"%1$s","autoResize":%3$s,"height":"%4$d","header":"%5$s","ssl":true,"async":true});wufoo_%1$s.display();}catch(e){}})();', esc_attr( $attr['formhash'] ), esc_attr( $attr['username'] ), 'true' == $attr['autoresize'] ? 'true' : 'false', // phpcs:ignore Universal.Operators.StrictComparisons.LooseEqual absint( $attr['height'] ), 'show' === $attr['header'] ? 'show' : 'hide' ); // Embed URL. $embed_url = sprintf( 'https://%1$s.wufoo.com/embed/%2$s/', $attr['username'], $attr['formhash'] ); // Form URL. $form_url = sprintf( 'https://%1$s.wufoo.com/forms/%2$s/', $attr['username'], $attr['formhash'] ); /* * iframe embed, loaded inside <noscript> tags. */ $iframe_embed = sprintf( '<iframe height="%1$d" src="%2$s" allowTransparency="true" frameborder="0" scrolling="no" style="width:100%%;border:none;"> <a href="%3$s" target="_blank" rel="noopener noreferrer">%4$s</a> </iframe>', absint( $attr['height'] ), esc_url( $embed_url ), esc_url( $form_url ), esc_html__( 'Fill out my Wufoo form!', 'jetpack' ) ); wp_enqueue_script( 'wufoo-form', 'https://www.wufoo.com/scripts/embed/form.js', array(), JETPACK__VERSION, true ); wp_add_inline_script( 'wufoo-form', $js_embed ); /** This action is already documented in modules/widgets/gravatar-profile.php */ do_action( 'jetpack_stats_extra', 'embeds', 'wufoo' ); /** * Return embed in JS and iframe. */ return "$js_embed_placeholder<noscript>$iframe_embed</noscript>"; } add_shortcode( 'wufoo', 'wufoo_shortcode' );
Upload File
Create Folder