is_attachment_audio() ) { $attributes['itemtype'] = 'http://schema.org/AudioObject'; } elseif ( liquid_helper()->is_attachment_video() ) { $attributes['itemtype'] = 'http://schema.org/VideoObject'; } } else { $attributes['itemtype'] = 'http://schema.org/CreativeWork'; } } else { $attributes['id'] = 'post-0'; $attributes['class'] = join( ' ', get_post_class() ); } return $attributes; } add_filter( 'liquid_attr_entry-title', 'liquid_attributes_entry_title', 5 ); /** * [liquid_attributes_entry_title description] * @method liquid_attributes_entry_title * @param [type] $attributes [description] * @return [type] [description] */ function liquid_attributes_entry_title( $attributes ) { if( !class_exists( 'Liquid_Addons' ) ) { $attributes['class'] = isset( $attributes['class'] ) ? $attributes['class'] . ' lqd-lp-title mt-56 mb-16 h5 lh-125' : ''; } else { $attributes['class'] = isset( $attributes['class'] ) ? $attributes['class'] : ''; } return $attributes; } add_filter( 'liquid_attr_entry-content', 'liquid_attributes_entry_content', 5 ); /** * [liquid_attributes_entry_content description] * @method liquid_attributes_entry_content * @param [type] $attributes [description] * @return [type] [description] */ function liquid_attributes_entry_content( $attributes ) { $attributes['class'] = 'entry-content'; return $attributes; } add_filter( 'liquid_attr_entry-author', 'liquid_attributes_entry_author', 5 ); /** * [liquid_attributes_entry_author description] * @method liquid_attributes_entry_author * @param [type] $attributes [description] * @return [type] [description] */ function liquid_attributes_entry_author( $attributes ) { $attributes['class'] = 'entry-author'; $attributes['itemscope'] = 'itemscope'; $attributes['itemtype'] = 'http://schema.org/Person'; return $attributes; } add_filter( 'liquid_attr_entry-published', 'liquid_attributes_entry_published', 5 ); /** * [liquid_attributes_entry_published description] * @method liquid_attributes_entry_published * @param [type] $attributes [description] * @return [type] [description] */ function liquid_attributes_entry_published( $attributes ) { $attributes['class'] = 'entry-published updated'; $attributes['datetime'] = get_the_time( 'Y-m-d\TH:i:sP' ); // Translators: Post date/time "title" attribute. $attributes['title'] = get_the_time( esc_html_x( 'l, F j, Y, g:i a', 'post time format', 'aihub' ) ); return $attributes; } add_filter( 'liquid_attr_entry-summary', 'liquid_attributes_entry_summary', 5 ); /** * [liquid_attributes_entry_summary description] * @method liquid_attributes_entry_summary * @param [type] $attributes [description] * @return [type] [description] */ function liquid_attributes_entry_summary( $attributes ) { if( !class_exists( 'Liquid_Addons' ) ) { $attributes['class'] = 'entry-summary lqd-lp-excerpt mt-16 mb-16'; } else { $attributes['class'] = 'entry-summary'; } return $attributes; } add_filter( 'liquid_attr_entry-terms', 'liquid_attributes_entry_terms', 5 ); /** * [liquid_attributes_entry_terms description] * @method liquid_attributes_entry_terms * @param [type] $attributes [description] * @param [type] $context [description] * @return [type] [description] */ function liquid_attributes_entry_terms( $attributes ) { $context = $attributes['taxonomy']; unset( $attributes['taxonomy'] ); if ( !empty( $context ) ) { $attributes['class'] = 'entry-terms ' . sanitize_html_class( $context ); if ( 'category' === $context ) { } else if ( 'post_tag' === $context ) { } } return $attributes; } // 2. Functions ------------------------------------------------------ // // 3. Template Tags -------------------------------------------------- // /** * [liquid_post_thumbnail description] * @method liquid_post_thumbnail * @return [type] [description] */ function liquid_post_thumbnail() { if( post_password_required() || is_attachment() || ! has_post_thumbnail() || is_singular() ) { return; } echo '