golden hour
/home/doctorbruno/public_html/kumaniko.com/wp-content/plugins/jetpack/modules/shortcodes
⬆️ Go Up
Upload
File/Folder
Size
Actions
archiveorg-book.php
3.31 KB
Del
OK
archiveorg.php
3.92 KB
Del
OK
archives.php
2.38 KB
Del
OK
bandcamp.php
7.7 KB
Del
OK
brightcove.php
8.77 KB
Del
OK
cartodb.php
803 B
Del
OK
class.filter-embedded-html-objects.php
13.05 KB
Del
OK
codepen.php
265 B
Del
OK
crowdsignal.php
21.85 KB
Del
OK
css
-
Del
OK
dailymotion.php
15.14 KB
Del
OK
facebook.php
4.4 KB
Del
OK
flatio.php
383 B
Del
OK
flickr.php
9.21 KB
Del
OK
getty.php
7.49 KB
Del
OK
gist.php
8.29 KB
Del
OK
googleapps.php
9.7 KB
Del
OK
googlemaps.php
7.97 KB
Del
OK
googleplus.php
1.03 KB
Del
OK
gravatar.php
4.7 KB
Del
OK
houzz.php
920 B
Del
OK
images
-
Del
OK
img
-
Del
OK
inline-pdfs.php
1.14 KB
Del
OK
instagram.php
14.47 KB
Del
OK
js
-
Del
OK
kickstarter.php
2.35 KB
Del
OK
mailchimp.php
6.91 KB
Del
OK
medium.php
3.23 KB
Del
OK
mixcloud.php
3.62 KB
Del
OK
others.php
1.07 KB
Del
OK
pinterest.php
1.79 KB
Del
OK
presentations.php
14.61 KB
Del
OK
quiz.php
9.16 KB
Del
OK
recipe.php
18.9 KB
Del
OK
scribd.php
2.45 KB
Del
OK
sitemap.php
562 B
Del
OK
slideshare.php
3.81 KB
Del
OK
slideshow.php
9.78 KB
Del
OK
smartframe.php
3.63 KB
Del
OK
soundcloud.php
8.57 KB
Del
OK
spotify.php
3.21 KB
Del
OK
ted.php
3.35 KB
Del
OK
tweet.php
8.51 KB
Del
OK
twitchtv.php
2.63 KB
Del
OK
twitter-timeline.php
1.93 KB
Del
OK
unavailable.php
2.97 KB
Del
OK
untappd-menu.php
2.41 KB
Del
OK
upcoming-events.php
1.16 KB
Del
OK
ustream.php
3.13 KB
Del
OK
videopress.php
503 B
Del
OK
vimeo.php
11.09 KB
Del
OK
vine.php
2.61 KB
Del
OK
vr.php
4.89 KB
Del
OK
wordads.php
1.81 KB
Del
OK
wufoo.php
3.38 KB
Del
OK
youtube.php
20.43 KB
Del
OK
Edit: kickstarter.php
<?php /** * Kickstarter shortcode * * Usage: * [kickstarter url="https://www.kickstarter.com/projects/peaktoplateau/yak-wool-baselayers-from-tibet-to-the-world" width="480" height=""] * * @package automattic/jetpack */ add_shortcode( 'kickstarter', 'jetpack_kickstarter_shortcode' ); add_filter( 'pre_kses', 'jetpack_kickstarter_embed_to_shortcode' ); /** * Parse shortcode arguments and render its output. * * @since 4.5.0 * * @param array $atts Shortcode parameters. * * @return string */ function jetpack_kickstarter_shortcode( $atts ) { if ( empty( $atts['url'] ) ) { return ''; } $url = esc_url_raw( $atts['url'] ); if ( ! preg_match( '#^(www\.)?kickstarter\.com$#i', wp_parse_url( $url, PHP_URL_HOST ) ) ) { return '<!-- Invalid Kickstarter URL -->'; } global $wp_embed; return $wp_embed->shortcode( $atts, $url ); } /** * Converts Kickstarter iframe embeds to a shortcode. * * EG: <iframe width="480" height="360" src="http://www.kickstarter.com/projects/deweymac/dewey-mac-kid-detective-book-make-diy-and-stem-spy/widget/video.html" frameborder="0" scrolling="no"> </iframe> * * @since 4.5.0 * * @param string $content Entry content that possibly includes a Kickstarter embed. * * @return string */ function jetpack_kickstarter_embed_to_shortcode( $content ) { if ( ! is_string( $content ) || false === stripos( $content, 'www.kickstarter.com/projects' ) ) { return $content; } $regexp = '!<iframe((?:\s+\w+=[\'"][^\'"]*[\'"])*)\s+src=[\'"](http://www\.kickstarter\.com/projects/[^/]+/[^/]+)/[^\'"]+[\'"]((?:\s+\w+=[\'"][^\'"]*[\'"])*)>[\s]*</iframe>!i'; $regexp_ent = str_replace( '&#0*58;', '&#0*58;|�*58;', htmlspecialchars( $regexp, ENT_NOQUOTES ) ); // phpcs:ignore foreach ( array( 'regexp', 'regexp_ent' ) as $reg ) { if ( ! preg_match_all( $$reg, $content, $matches, PREG_SET_ORDER ) ) { continue; } foreach ( $matches as $match ) { $url = esc_url( $match[2] ); $params = $match[1] . $match[3]; if ( 'regexp_ent' === $reg ) { $params = html_entity_decode( $params ); } $params = wp_kses_hair( $params, array( 'http' ) ); $width = isset( $params['width'] ) ? (int) $params['width']['value'] : 0; $shortcode = '[kickstarter url=' . $url . ( ( ! empty( $width ) ) ? " width=$width" : '' ) . ']'; $content = str_replace( $match[0], $shortcode, $content ); } } return $content; }
Save