/** * VideoPress Shortcode Handler * * This file may or may not be included from the Jetpack VideoPress module. */ class VideoPress_Shortcode { /** @var VideoPress_Shortcode */ protected static $instance; protected function __construct() { // By explicitly declaring the provider here, we can speed things up by not relying on oEmbed discovery. wp_oembed_add_provider( '#^https?://videopress.com/v/.*#', 'http://public-api.wordpress.com/oembed/1.0/', true ); add_shortcode( 'videopress', array( $this, 'shortcode_callback' ) ); add_shortcode( 'wpvideo', array( $this, 'shortcode_callback' ) ); add_filter('wp_video_shortcode_override', array( $this, 'video_shortcode_override' ), 10, 4); add_filter( 'oembed_fetch_url', array( $this, 'add_oembed_for_parameter' ) ); $this->add_video_embed_hander(); } /** * @return VideoPress_Shortcode */ public static function initialize() { if ( ! isset ( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Translate a 'videopress' or 'wpvideo' shortcode and arguments into a video player display. * * Expected input formats: * * [videopress OcobLTqC] * [wpvideo OcobLTqC] * * @link http://codex.wordpress.org/Shortcode_API Shortcode API * @param array $attr shortcode attributes * @return string HTML markup or blank string on fail */ public function shortcode_callback( $attr ) { global $content_width; /** * We only accept GUIDs as a first unnamed argument. */ $guid = isset( $attr[0] ) ? $attr[0] : null; if ( isset( $attr['postid'] ) ) { $guid = get_post_meta( $attr['postid'], 'videopress_guid', true ); } /** * Make sure the GUID passed in matches how actual GUIDs are formatted. */ if ( ! videopress_is_valid_guid( $guid ) ) { return ''; } /** * Set the defaults */ $defaults = array( 'w' => 0, // Width of the video player, in pixels 'at' => 0, // How many seconds in to initially seek to 'hd' => true, // Whether to display a high definition version 'loop' => false, // Whether to loop the video repeatedly 'freedom' => false, // Whether to use only free/libre codecs 'autoplay' => false, // Whether to autoplay the video on load 'permalink' => true, // Whether to display the permalink to the video 'flashonly' => false, // Whether to support the Flash player exclusively 'defaultlangcode' => false, // Default language code ); $attr = shortcode_atts( $defaults, $attr, 'videopress' ); /** * Cast the attributes, post-input. */ $attr['width'] = absint( $attr['w'] ); $attr['hd'] = (bool) $attr['hd']; $attr['freedom'] = (bool) $attr['freedom']; /** * If the provided width is less than the minimum allowed * width, or greater than `$content_width` ignore. */ if ( $attr['width'] < VIDEOPRESS_MIN_WIDTH ) { $attr['width'] = 0; } elseif ( isset( $content_width ) && $content_width > VIDEOPRESS_MIN_WIDTH && $attr['width'] > $content_width ) { $attr['width'] = 0; } /** * If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`. */ if ( 0 === $attr['width'] && isset( $content_width ) && $content_width >= VIDEOPRESS_MIN_WIDTH ) { $attr['width'] = $content_width; } /** * If the width isn't an even number, reduce it by one (making it even). */ if ( 1 === ( $attr['width'] % 2 ) ) { $attr['width'] --; } /** * Filter the default VideoPress shortcode options. * * @module videopress * * @since 2.5.0 * * @param array $args Array of VideoPress shortcode options. */ $options = apply_filters( 'videopress_shortcode_options', array( 'at' => (int) $attr['at'], 'hd' => $attr['hd'], 'loop' => $attr['loop'], 'freedom' => $attr['freedom'], 'autoplay' => $attr['autoplay'], 'permalink' => $attr['permalink'], 'force_flash' => (bool) $attr['flashonly'], 'defaultlangcode' => $attr['defaultlangcode'], 'forcestatic' => false, // This used to be a displayed option, but now is only // accessible via the `videopress_shortcode_options` filter. ) ); // Register VideoPress scripts wp_register_script( 'videopress', 'https://v0.wordpress.com/js/videopress.js', array( 'jquery', 'swfobject' ), '1.09' ); require_once( dirname( __FILE__ ) . '/class.videopress-video.php' ); require_once( dirname( __FILE__ ) . '/class.videopress-player.php' ); $player = new VideoPress_Player( $guid, $attr['width'], $options ); if ( is_feed() ) { return $player->asXML(); } else { return $player->asHTML(); } } /** * Override the standard video short tag to also process videopress files as well. * * This will, parse the src given, and if it is a videopress file, it will parse as the * VideoPress shortcode instead. * * @param string $html Empty variable to be replaced with shortcode markup. * @param array $attr Attributes of the video shortcode. * @param string $content Video shortcode content. * @param int $instance Unique numeric ID of this video shortcode instance. * * @return string */ public function video_shortcode_override($html, $attr, $content, $instance) { $videopress_guid = null; if ( isset( $attr['videopress_guid'] ) ) { $videopress_guid = $attr['videopress_guid']; } else { // Handle the different possible url attributes $url_keys = array( 'src', 'mp4' ); foreach ( $url_keys as $key ) { if ( isset ( $attr[ $key ] ) ) { $url = $attr[ $key ]; if ( preg_match( '@videos.(videopress\.com|files\.wordpress\.com)/([a-z0-9]{8})/@i', $url, $matches ) ) { $videopress_guid = $matches[2]; } // Also test for videopress oembed url, which is used by the Video Media Widget. if ( ! $videopress_guid && preg_match( '@https://videopress.com/v/([a-z0-9]{8})@i', $url, $matches ) ) { $videopress_guid = $matches[1]; } break; } } } if ( $videopress_guid ) { $videopress_attr = array( $videopress_guid ); if ( isset( $attr['width'] ) ) { $videopress_attr['w'] = (int) $attr['width']; } if ( isset( $attr['autoplay'] ) ) { $videopress_attr['autoplay'] = $attr['autoplay']; } if ( isset( $attr['loop'] ) ) { $videopress_attr['loop'] = $attr['loop']; } // Then display the VideoPress version of the stored GUID! return $this->shortcode_callback( $videopress_attr ); } return ''; } /** * Adds a `for` query parameter to the oembed provider request URL. * * @param String $oembed_provider * @return String $ehnanced_oembed_provider */ public function add_oembed_for_parameter( $oembed_provider ) { if ( false === stripos( $oembed_provider, 'videopress.com' ) ) { return $oembed_provider; } return add_query_arg( 'for', parse_url( home_url(), PHP_URL_HOST ), $oembed_provider ); } /** * Register a VideoPress handler for direct links to .mov files (and potential other non-handled types later). */ public function add_video_embed_hander() { // These are the video extensions that VideoPress can transcode and considers video as well (even if core does not). $extensions = array( 'mov' ); $override_extensions = implode( '|', $extensions ); $regex = "#^https?://videos.(videopress.com|files.wordpress.com)/.+?.($override_extensions)$#i"; /** This filter is already documented in core/wp-includes/embed.php */ $filter = apply_filters( 'wp_video_embed_handler', 'wp_embed_handler_video' ); wp_embed_register_handler( 'video', $regex, $filter, 10 ); } } VideoPress_Shortcode::initialize(); Starting that journey out of Singlesville – Over 40 & Killing it®

Starting that journey out of Singlesville

August 27, 2017
We are single and satisfied right now. We’re getting to know ourselves. In the near or distant future, we’re going to begin that journey out of Ssinglesville. Do we know what we want? Have you thought about the type of person you want to end with? That person who will become your sidekick, your partner in crime.

They will enhance your already fantastic life.

When we look for a new job, we write down what type of job(s) we want to apply for, right? In starting a business, we write down what type of business we want to start. We weigh our pros and con’s on what business to start based on our passion, skills, and interests, right?

So why is it when it comes to love we don’t prepare for it. Now finding love should be in the moment, not checking your dating paper which is discussed in the P’cast but leading with your gut first, your brain second and then the heart.

Having the Build a Brotha or Sew a Sista together is a great starting point to figuring out what you want in a man or woman.

I have another post/podcast on how to spot red flags. This particular activity will get you thinking and generate questions to ask prior to the first date or on the first date. My personal opinion I prefer the in-person/first date so you can watch their body language and physically see what they’re saying.

The eyes never lie and they are the gateway to the soul.  Now moving forward…

There’s Build A Bear for the kiddies…. So why not have a Build a Brotha or Sew a Sista for us fabulous Ladies and Gentlemen.

Here’s a sample of my Brotha….

  1. Sense of humor mix of Eddie Murphy, Kevin Hart, Rickey Gervais and Bernie Mac (RIP) all mixed into one
  2. Beautiful smile and teeth
  3. Sports lover
  4. Animal Lover
  5. The person that ends with me you will experience being with 3 different women. You never know who you’ll get each day. I’m a cool ass person but I have different sides to me; business Kimberly “workaholic”, sexy Kimberly, spontaneous Kimberly “hey I saw this sandwich on tv in Detroit, so let’s go. The practical joke playing Kimberly.
  6. British Accent, one of those daydreaming qualities
  7. Beard (a must) or a 5:00 o’clock shadow
  8. Biker/Cowboy/Construction worker gear
  9. He loves rocking sunglasses
  10. His cologne game is on point.
  11. Grown kids, call me selfish but at this age, I’m not the looking to become a stepmom. I’ve been there, done that and I didn’t like it.
  12. This one kills me, being legally separated get that shit taken care of
  14. I don’t do long distance relationships click here to check out that P’cast.

Last but one of the MOST important things NO SNORING! I don’t snore sometimes my kids would put their finger under my nose to see if I was breathing.

I can’t sleep we can’t sleep in the same bed because he sounds like a chainsaw while inhaling the whole freaking room. Then riddle me this Batman, how will I get my beauty sleep or get my groove on?

Alright, Ladies and Gentlemen, I’m done. I’m gonna go build my brotha for future dating. We’ve Grown Folks know exactly what we like, what we’ll tolerate and what’s unacceptable. Once you get out of the mindset of settling, raising your self-worth and believing you deserve the best. You’ll be surprised what comes your way, not the crap you threw away.

Let us know what your top fives are. Inquiring minds want to know. 🙂 Go ahead a comment below.

Now, grab a cocktail or coffee, sit back, relax and on how you can start living the Over 40 & Killing it® Lifestyle TODAY!

Sign-up for Over 40 & Killing it® Gazette and to receive some really cool information on what’s happening in the over 40 community.

Ready to have some fun? Join my Facebook group. Then connect with me on Instagram, and  Twitter then, you will be hooked up to the hottest Over 40 Community; food, fashion, fun, how to leave Singlesville, trendy hotspots and more.

So until next time my Dear Friends, Stay Cool, Classy and Keep on Killing It. And remember NEVER, give up! NEVER be denied! You’re NEVER too old! NEVER look back! Peace!


Everything is better, “Over Cocktails or Coffee!” ~~kah

Facebook Comments

You Might Also Like

1 Comment

  • Reply Cooking with Kimma – Chicken & Dumplings – Over 40 & Killing it® February 19, 2018 at 2:36 pm

    […] lovely to have my dream guy next to me but at the current moment, I’m rolling solo. You can click here to find out the type of guy I wish to end up with. You can also check out the podcast as well. […]

  • What's on your mind?


    Get the latest posts delivered to your mailbox: