get('Version') : '' ); wp_enqueue_style( $parent_style . '_child_style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'orbisius_ctc_woohoo_child_theme_enqueue_styles', 15 ); /** framework/functions/functions-theme.php **/ /** Get the custom primary category * ----------------------------------------------------------------------------- */ if ( ! function_exists( 'woohoo_custom_primary_category' ) ) { function woohoo_custom_primary_category() { $woohoo_post_theme_settings = get_post_meta( get_the_ID(), 'meta_post_options_bd', true ); // busco la volanta $volanta = get_post_meta( get_the_ID(), 'volanta', true); if ( !empty( $woohoo_post_theme_settings['woohoo_primary_cat'] ) ) { $get_term_id = ""; $g_category = get_category_by_slug( $woohoo_post_theme_settings['woohoo_primary_cat'] ); if( !empty( $g_category ) ) $get_term_id = $g_category->term_id; $selected_category_obj = get_category( $get_term_id ); } else { $categories = get_the_category( get_the_ID() ); $selected_category_obj = $categories[0]; } if ( !empty( $selected_category_obj ) ) { //echo ''. $selected_category_obj->name .' | ' .$volanta .''."\n"; // limito el nro de caracteres $catvolantalarga = $selected_category_obj->name .' | ' .$volanta; // $catvolanta = substr($catvolantalarga,0,45); $catvolanta = substr($volanta,0,45); echo ''. $catvolanta .''."\n"; } } } /** * Icon video play * ========================================================= */ if ( ! function_exists( 'woohoo_icon_video_play' ) ) { function woohoo_icon_video_play() { $bdaia_p_video = get_post_meta( get_the_ID(),'post_video_bd', true ); $protocol = is_ssl() ? 'https' : 'http'; $video_id = $video_type = $bdaia_video_url = ''; if ( isset( $bdaia_p_video['video'] ) ) $video_id = $bdaia_p_video['video']; if ( isset( $bdaia_p_video['video_type'] ) ) $video_type = $bdaia_p_video['video_type']; if ( $video_type == "youtube" ) $bdaia_video_url = $protocol.'://www.youtube.com/embed/'.$video_id.'?autoplay=1&autohide=1&fs=1&rel=0&hd=1&wmode=opaque&enablejsapi=1'; elseif ( $video_type == "vimeo" ) $bdaia_video_url = $protocol.'://player.vimeo.com/video/'.$video_id.'?autoplay=1'; elseif ( $video_type == "daily" ) $bdaia_video_url = $protocol.'://www.dailymotion.com/embed/video/'.$video_id; ob_start(); if( $video_id ) { ?>
ID, 'autor_alt', true ); if ( $author ) $name = $author; return $name; }