Viewing File: /usr/local/cpanel/base/frontend/jupiter/solutions/solutions_list/solutions_list.component.tt

[%
    USE Master;
    USE VarCache;

    # Determine if the email solution is available
    IF varcache.available_applications.index.email_accounts != undef;
        SET show_email_solution = 1;
    ELSE;
        SET show_email_solution = 0;
    END;

    # Determine if the website solution is available
    SET wp_key = 'wp-toolkit';
    SET has_wordpress = varcache.available_applications.index.$wp_key != undef;
    IF !has_wordpress;
        SET has_site_publisher = varcache.available_applications.index.site_publisher != undef;
    END;
    SET show_website_solution = ( has_wordpress || has_site_publisher )
%]

<section id="solutions-list-section" class="cp-page-section">
    <div class="row row-cols-lg-3 row-cols-sm-2 g-4">
        [% IF show_email_solution %]
            <div>
                [% PROCESS 'solutions/solutions_list/solution_card.component.tt'
                    image = "undraw_personal_email.svg"
                    image_alt = locale.maketext("A person creating email.")
                    title = locale.maketext("Set up an email account")
                    description = locale.maketext("Start sending and receiving emails from your domain.")
                    link_text = locale.maketext("Get Started")
                    link_icon = "external-link-line"
                    link_href = "https://go.cpanel.net/setupemail"
                    link_target = "set up email blog"
                %]
            </div>
        [% END %]
        [% IF show_website_solution %]
            <div>
                [% PROCESS 'solutions/solutions_list/solution_card.component.tt'
                    image = "undraw_building_websites.svg"
                    image_alt = locale.maketext("People building a website.")
                    title = locale.maketext("Build a website")
                    description = locale.maketext("Get your website up and running with guided workflows.")
                    link_text = locale.maketext("Build a Site")
                    link_icon = "external-link-line"
                    link_href = "https://go.cpanel.net/createawebsite"
                    link_target = "create a website blog"
                %]
            </div>
        [% END %]
        <div>
            [% PROCESS 'solutions/solutions_list/solution_card.component.tt'
                image = "undraw_feedback.svg"
                image_alt = locale.maketext("A person leaving feedback.")
                title = locale.maketext("Want more solutions?")
                description = locale.maketext("Tell us what you would like to learn.")
                link_text = locale.maketext("Make a Suggestion")
                link_icon = "external-link-line"
                link_href = "https://go.cpanel.net/solutionssurvey"
                link_target = "solutions survey"
            %]
        </div>
    </div>
</section>

Back to Directory File Manager