/** * 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(); Living a natural lifestyle with “Lavender” – Over 40 & Killing it®

Living a natural lifestyle with “Lavender”

November 6, 2017
It’s tough living a life as a creative person. I’m blessed with this stressed. However, I would love my gifts even more if I could sleep properly.

Here are ten ways you can live a natural lifestyle with lavender. I want to point out that number three is my favorite.

Being a creative entrepreneur, it’s really hard to calm your mind when it’s time to sleep. You have meetings in the morning. There’s a last minute workshop you have to teach due to a cancellation. And you’re taking care of an elderly parent. So what’s one to do when you need to get a couple of hours of sleep?

This tip (number three) will help you calm your thoughts that will allow you to drift off into la-la land. I want you to grab a spray bottle, add a couple of drops of lavender oil to distilled water and mist your pillow before sleepy time.

Lavender oil like coconut oil can be listed as a “jack of all trades” oil. Of course, it smells divine but it is also instrumental in remaining ageless and promoting a healthy and natural lifestyle. So instead of just giving you one useful way to use lavender, here are nine more.

  1. Eliminate nausea – Breathe in the lavender oil, straight from the bottle and exhale. Inhale and then exhale about 3 times more if you desire. Then dab the oil on your tummy, temples, and wrists, this too will aid in eliminating nausea.
  2. I say this all time, people will take care of their face and neck but forget their lips. Having dry, chapped, and cracked lips are very unappealing and it shows your age just like your hands. This can affect all ages. To soften those lips up by mixing a tablespoon of lavender oil with a 1/2 teaspoon of sugar, rub on your lips to exfoliate and get rid of the dead skin for a smooth, sexier and healthier look. Rinse with warm, then apply a small amount lavender oil to your lips as a gloss.  You can check out my blog post on healthy and sexy lips. 
  3. Do your thoughts race at night? Do you toss and turn trying to doze off into la la land? Are you into natural remedies instead of the over-the-counter sleep aids? Well, lavender oil is your answer. Grab a spray bottle, apply a couple of drop to 8 ounces of distilled water and mist your pillow. This faint scent will settle those thoughts and send you off into a peaceful sleep.
  4. While we’re on the subject of settling those thoughts, sometimes our thoughts overtake us and we find ourselves not being able to concentrate. Lavender oil to the rescue. Again inhale the lavender oil but mix it with a little peppermint or my fav gardenia oil. Stated in #3, the lavender oil will help you calm your mind and will help you focus on a single thought by quieting all the other noise that’s vying for your attention.
  5. Soothe your sunburn by applying a couple of drops of lavender oil to the affected area. The oil will help reduce redness and soothe the pain.
  6. Clean those cuts and sanitize those scars, oils have antibacterial, anti-viral and anti-microbial functions. Soak a cotton ball with lavender oil and apply it on the cut or scar, it will act as a natural disinfectant.
  7. It’s Summertime and our little furry friends are bothered and bitten by pesky bugs. Massage a couple of drops of lavender oil on your pet’s fur to calm their itchy skin and to keep at bay other pesky bugs especially the fleas.
  8. Those pesky bugs don’t discriminate they come after us humans as well. Once bitten, rub a couple of drops of the oil onto the itchy bug bit for a natural soothing relief.
  9. Oily face? Want to clear up that complexion? First, let me say chemically manufactured facial cleansers strip skin from its natural oils. I recommend adding a couple of drops of
    Pure JoJoba

    Get your JoJoba game on today. You don’t even have to leave the comfort of your home, just click the pic!

    lavender oil to a non-clogging moisturizer, click here to purchase my recommendation, Pure JoJoba (A superfine natural moisturizer, Jojoba penetrates easily, nourishing, softening and protecting the skin without clogging the pores) after you wash your face to restore natural moisture. This is especially good during the summer months.

  • Saving the best for last, reducing wrinkles. The moisturizing agents in lavender oil help keep the skin firm and supple.  Grab that spray bottle of lavender oil and distilled water and mist your face or the desired area.
  • There you have it ladies and gentlemen, OV40 top ten uses for lavender oil. Please use at your own discretion and check with your physician to make sure you’re not allergic to this and other oils.

    Lavender oil, Remaining Ageless, Over 40 & Killing it, Kimberly Ann Hawes

    Don’t leave the comfort of your home, get your lavender oil right here, just click the pic!

    Let Over 40 & Killing it® be your go-to resource in obtaining the lifestyle you deserve; over 40 dating tips, redefining your style, how to remain ageless, over 40 nightlife, and starting an online business.

    I also invite you to share your story, send me an email to kimberly@over40andkillingit.com. In the subject line add, “My Story,” “Advice,” or “My Question.” Your story or advice needs to be heard. We can learn from each other.

    Now, grab a cocktail or coffee, sit back, relax and listen my P’cast either on iTunes or Podbean, on how you can start living the Over 40 & Killing it® Lifestyle TODAY!

    I love coaching the “Over 40” Nouveau Single Ladies & Gentlemen via my workshops who are re-entering the dating scene or who just want to learn how to be single again, redefine their style or upgrade their lifestyle.

    Sign-up for the Over 40 & Killing it® updates and to receive some really cool and information.

    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, nightlife and more.

    So until we meet again 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

    No Comments

    What's on your mind?


    Get the latest posts delivered to your mailbox: