function tinybuddha_get_custom_css_file_path() { return get_stylesheet_directory() . '/css/custom-theme-options.css'; } function tinybuddha_sync_custom_css_file() { $css = (string) get_option( 'dm_custom_css', '' ); $css = trim( $css ); $file_path = tinybuddha_get_custom_css_file_path(); $dir_path = dirname( $file_path ); if ( ! is_dir( $dir_path ) ) { $created = wp_mkdir_p( $dir_path ); if ( ! $created ) { update_option( 'tinybuddha_custom_css_file_error', 1, false ); return false; } } $written = file_put_contents( $file_path, "/* Tiny Buddha custom theme options CSS */ " . $css . " " ); if ( false === $written ) { update_option( 'tinybuddha_custom_css_file_error', 1, false ); return false; } delete_option( 'tinybuddha_custom_css_file_error' ); return true; } function tinybuddha_maybe_sync_custom_css_file() { if ( is_admin() ) { tinybuddha_sync_custom_css_file(); } } add_action( 'init', 'tinybuddha_maybe_sync_custom_css_file', 20 ); function tinybuddha_custom_css_file_admin_notice() { if ( ! current_user_can( 'manage_options' ) ) { return; } if ( ! isset( $_GET['page'] ) || 'theme-options.php' !== $_GET['page'] ) { return; } $file_path = tinybuddha_get_custom_css_file_path(); if ( ! get_option( 'tinybuddha_custom_css_file_error' ) && file_exists( $file_path ) && is_writable( $file_path ) ) { return; } echo '

'; echo esc_html__( 'Tiny Buddha could not write custom CSS to wp-content/themes/tinybuddha/css/custom-theme-options.css. Styles will be loaded inline as a fallback.', 'tinybuddha' ); echo '

'; } add_action( 'admin_notices', 'tinybuddha_custom_css_file_admin_notice' ); Brooke Hampton Archives - Tiny Buddha
Menu

Quotes by ""

Some people are empowered by travel and some are inspired by the warmth of home. Some thrive in the spotlight and some feel called to support those who are on stage. Some people are comfortable half-dressed and cussing like sailors and others prefer modesty and gentleness. The thing is: we are all empowered and inspired in different ways, and it’s not our job to decide what that looks like for anyone else.

Don’t let this silly world trick you into starving your soul for material things. Cause someday you’re gonna be sitting out under the sun and realize how little you actually need to be truly happy.

Be the reason someone still believes in magic, truth, authenticity, compassion, intelligent conversation, loyalty, courage, and love that doesn’t have an agenda.

You’re right, I’m more than a little weird and a bit awkward. No, I don’t fit in and most people don’t understand me. But at least I’m being real and I think the world needs more people who are brave enough to be real.

Relax wild one. It’s not your job to be everything everyone needs, and you don’t have to be impressive to be loved. Stop trying so hard. Just show up and be real with the world. That is enough.