('description', blocksy_get_author_id())))) { $description = '
' . wp_kses_post(blocksy_get_the_author_meta('description', blocksy_get_author_id())) . '
'; } } } else { $title = blocksy_safe_sprintf( // translators: 1: span opening 2: span closing 3: the number of results __( '%1$sSearch Results for%2$s %3$s', 'blocksy' ), '', '', get_search_query() ); if (! have_posts()) { // translators: %s are the opening and closing of the html tags $description = blocksy_safe_sprintf( __('%sSorry, but nothing matched your search terms. Please try again with some different keywords.%s', 'blocksy'), '
', '
' ); } } } if (is_home() && is_front_page()) { if (! empty(blocksy_akg( 'description', $single_hero_element, '' ))) { $description = '
' . blocksy_translate_dynamic(blocksy_akg( 'description', $single_hero_element, ( function_exists('is_shop') && is_shop() ) ? __('This is where you can add new products to your store.', 'blocksy') : '' ), $prefix . '_hero_custom_description') . '
'; } } /** * Fires before the hero description is printed. * * @since 1.8.21 */ do_action('blocksy:hero:description:before'); echo $description; /** * Fires after the hero description is printed. * * @since 1.8.21 */ do_action('blocksy:hero:description:after'); } if ($single_hero_element['id'] === 'author_social_channels') { if (is_author()) { blocksy_author_social_channels([ 'new_tab' => blocksy_akg( 'link_target', $single_hero_element, 'no' ) === 'yes', 'nofollow' => blocksy_akg( 'link_nofollow', $single_hero_element, 'no' ) === 'yes' ]); } } if ($single_hero_element['id'] === 'custom_meta') { $author_page_meta_elements = blocksy_akg( 'page_meta_elements', $single_hero_element, [ 'joined' => true, 'articles_count' => true, 'comments' => true ] ); $meta_type = blocksy_akg( 'meta_type', $single_hero_element, 'simple' ); $meta_divider = blocksy_akg( 'meta_divider', $single_hero_element, 'slash' ); $force_icons = false; $attr = []; if ( $meta_indexes['first'] !== null && $meta_indexes['second'] !== null ) { if ($index === $meta_indexes['first']) { /** * Fires before the first hero meta element group is rendered. * * The dynamic portion of the hook name, `$single_hero_element['id']`, * refers to the hero element id. * * @since 1.8.62 */ do_action('blocksy:hero:' . $single_hero_element['id'] . ':first:before'); } if ($index === $meta_indexes['second']) { /** * Fires before the second hero meta element group is rendered. * * The dynamic portion of the hook name, `$single_hero_element['id']`, * refers to the hero element id. * * @since 1.8.62 */ do_action('blocksy:hero:' . $single_hero_element['id'] . ':second:before'); } } if ( $meta_indexes['first'] !== null && $meta_indexes['second'] !== null ) { if ($index === $meta_indexes['first']) { // $attr['data-id'] = 'first'; } if ($index === $meta_indexes['second']) { $attr['data-id'] = 'second'; } } if (is_author()) { blocksy_author_meta_elements([ 'value' => $author_page_meta_elements, 'attr' => $attr ]); } $has_meta_label = blocksy_akg( 'has_meta_label', $single_hero_element, 'no' ) === 'yes'; $single_meta_elements = null; if (is_singular() || $is_page) { $single_meta_elements = blocksy_akg( 'meta_elements', $single_hero_element, blocksy_post_meta_defaults([ [ 'id' => 'author', 'has_author_avatar' => 'yes', 'enabled' => true ], [ 'id' => 'post_date', 'enabled' => true ], [ 'id' => 'comments', 'enabled' => true ], [ 'id' => 'categories', 'enabled' => true ], ]) ); $has_term_accent_color = 'yes'; foreach ($single_meta_elements as $single_meta_element) { if ($single_meta_element['id'] === 'categories') { $has_term_accent_color = blocksy_akg( 'has_term_accent_color', $single_meta_element, 'yes' ); } } /** * Filters the HTML attributes of the hero meta container. * * @since 1.9.7 * * @param array $attr The hero meta container HTML attributes. */ $attr = apply_filters( 'blocksy:hero:meta:container-attr', $attr ); $meta_input = [ 'attr' => $attr, 'meta_type' => $meta_type, 'meta_divider' => $meta_divider, 'force_icons' => $force_icons, 'prefix' => $prefix . '_hero_meta' ]; if ($has_term_accent_color === 'no') { $meta_input['has_term_class'] = false; } /** * Note to code reviewers: This line doesn't need to be escaped. * Function blocksy_post_meta() used here escapes the value properly. * Mainly because the function outputs SVG. */ echo blocksy_post_meta($single_meta_elements, $meta_input); } if ( $meta_indexes['first'] !== null && $meta_indexes['second'] !== null ) { if ($index === $meta_indexes['first']) { /** * Fires after the first hero meta element group is rendered. * * The dynamic portion of the hook name, `$single_hero_element['id']`, * refers to the hero element id. * * @since 1.8.62 */ do_action('blocksy:hero:' . $single_hero_element['id'] . ':first:after'); } if ($index === $meta_indexes['second']) { /** * Fires after the second hero meta element group is rendered. * * The dynamic portion of the hook name, `$single_hero_element['id']`, * refers to the hero element id. * * @since 1.8.62 */ do_action('blocksy:hero:' . $single_hero_element['id'] . ':second:after'); } } } /** * Fires after a single hero element is rendered. * * The dynamic portion of the hook name, `$single_hero_element['id']`, refers * to the hero element id. * * @since 1.7.10 */ do_action('blocksy:hero:' . $single_hero_element['id'] . ':after'); }

FileSize: 1.06 GB

DOWNLOAD FROM RG*

Leave a Reply

Your email address will not be published. Required fields are marked *