';
20 | echo '';
21 |
22 | if ($settings['show_icon']) {
23 | $cat_icon_id = get_term_meta($term->term_id, 'doc_category_image-id', true);
24 |
25 | if ($cat_icon_id) {
26 | $cat_icon = wp_get_attachment_image($cat_icon_id, 'thumbnail', true, ['alt' => esc_attr(get_post_meta($cat_icon_id, '_wp_attachment_image_alt', true))]);
27 | } else {
28 | $cat_icon = '

';
29 | }
30 |
31 | echo '
' . wp_kses( $cat_icon, Helper::eael_allowed_icon_tags() ) . '
';
32 | }
33 |
34 | if ($settings['show_title']) {
35 | $title_tag = Helper::eael_validate_html_tag( $settings['title_tag'] );
36 | $title = '<' . $title_tag . ' class="eael-bd-cb-cat-title__layout-2">
' . $term->name . '' . $title_tag . '>';
37 | echo wp_kses( $title, Helper::eael_allowed_tags() );
38 | }
39 |
40 | if ($settings['show_count']) {
41 | echo '
' . esc_html( Helper::get_doc_post_count($term->count, $term->term_id) ) . '
';
42 | }
43 |
44 | echo '
';
45 | echo '';
46 |
--------------------------------------------------------------------------------
/includes/Template/Betterdocs-Category-Box/Layout_Default.php:
--------------------------------------------------------------------------------
1 | slug, 'doc_category'));
12 | }else{
13 | $button_link = str_replace('%knowledge_base%', 'non-knowledgebase', get_term_link($term->slug, 'doc_category'));
14 | }
15 | } else {
16 | $button_link = get_term_link($term->slug, 'doc_category');
17 | }
18 |
19 | echo '
20 | ';
21 |
22 | if ($settings['show_icon']) {
23 | $cat_icon_id = get_term_meta($term->term_id, 'doc_category_image-id', true);
24 |
25 | if ($cat_icon_id) {
26 | $cat_icon = wp_get_attachment_image($cat_icon_id, 'thumbnail', ['alt' => esc_attr(get_post_meta($cat_icon_id, '_wp_attachment_image_alt', true))]);
27 | } else {
28 | $cat_icon = '

';
29 | }
30 |
31 | echo '
' . wp_kses( $cat_icon, Helper::eael_allowed_icon_tags() ) . '
';
32 | }
33 |
34 | if ($settings['show_title']) {
35 | $title_tag = Helper::eael_validate_html_tag( $settings['title_tag'] );
36 | $title = '<' . $title_tag . ' class="eael-bd-cb-cat-title">' . $term->name . '' . $title_tag . '>';
37 | echo wp_kses( $title, Helper::eael_allowed_tags() );
38 | }
39 |
40 | if ($settings['show_count']) {
41 | $show_count_html = '
' . $settings['count_prefix'] . '' . Helper::get_doc_post_count($term->count, $term->term_id) . '' . $settings['count_suffix'] . '
';
42 | echo wp_kses( $show_count_html, Helper::eael_allowed_tags() );
43 | }
44 |
45 | echo '
46 | ';
47 |
--------------------------------------------------------------------------------
/includes/Template/Content-Ticker/default.php:
--------------------------------------------------------------------------------
1 |
14 |
35 | ';
36 | } else {
37 | echo '
22 | {Object.keys(items).map((item, index) => {
23 | // Conditional logic to skip certain items
24 |
25 | if ('pluginspromo' === item && (!hasPluginPromo || !shouldShowPluginsPromo)) {
26 | return null;
27 | }
28 |
29 | if ( 'go_pro' === item && ea_pro_local_plugin_data ) {
30 | return null;
31 | }
32 |
33 | itemClass = item.trim().toLowerCase().replace(/ /g, "-");
34 |
35 | return (
36 |
42 | {++i}
43 | {items[item]}
44 |
45 | );
46 | })}
47 |
48 | >
49 | );
50 | }
51 |
52 | export default MenuItems;
53 |
--------------------------------------------------------------------------------
/includes/templates/admin/quick-setup/src/components/ModalContent.jsx:
--------------------------------------------------------------------------------
1 | import { __ } from "@wordpress/i18n";
2 |
3 | function ModalContent({ closeModal }) {
4 | let eaelQuickSetup = localize?.eael_quick_setup_data;
5 | let modal_content = eaelQuickSetup?.modal_content;
6 | let success_2_src = modal_content?.success_2_src;
7 |
8 | return (
9 | <>
10 |