Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getRank.twig « templates « SEO « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08fd69e310d073744136ac0fb698d1dd7e821f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<div id='SeoRanks'>
    <script type="text/javascript" src="plugins/SEO/javascripts/rank.js"></script>

    <form method="post" style="padding: 8px;">
        <div align="left" class="row">
            <div class="col s8 input-field">
                <label for="seoUrl" class="active">{{ 'Installation_SetupWebSiteURL'|translate|capitalize }}</label>
                <input type="text" id="seoUrl" size="15" value="{{ urlToRank }}" class="textbox "/>
            </div>
            <div class="col s4">
                <input type="submit" class="btn btn-small" style='margin-top: 2em' id="rankbutton" value="{{ 'SEO_Rank'|translate }}"/>
            </div>
        </div>

        {% import "ajaxMacros.twig" as ajax %}
        {{ ajax.LoadingDiv('ajaxLoadingSEO') }}

        <div id="rankStats" align="left" style="margin-top:10px;margin-left: 5px;font-size:14px;">
            {% if ranks is empty %}
                {{ 'General_Error'|translate }}
            {% else %}
                {% set cleanUrl %}
                    <a href="http://{{ urlToRank }}" rel="noreferrer"  target="_blank">{{ urlToRank }}</a>
                {% endset %}
                {{ 'SEO_SEORankingsFor'|translate(cleanUrl)|raw }}
                <table cellspacing="2" style="margin:auto;line-height:3.5em !important;margin-top:20px;">

                    {% for rank in ranks %}
                        <tr>
                            {% set seoLink %}{% if rank.logo_link is not empty %}<a class="linkContent" href="?module=Proxy&action=redirect&url={{ rank.logo_link|url_encode }}"
                                                                                    target="_blank"
                                                                                    {% if rank.logo_tooltip is not empty %}title="{{ rank.logo_tooltip }}"{% endif %}>{% endif %}{% endset %}
                                <td>{% if rank.logo_link is not empty %}{{ seoLink|raw }}{% endif %}<img width="24px" height="24px"
                                                                                                         style='vertical-align:middle;margin-right:6px;' src='{{ rank.logo }}' border='0'
                                                                                                         alt="{{ rank.label }}">{% if rank.logo_link is not empty %}</a>{% endif %} {{ rank.label|raw }}
                            </td>
                            <td>
                                <div style="margin-left:15px;">
                                    {% if rank.logo_link is not empty %}{{ seoLink|raw }}{% endif %}
                                    {% if rank.rank %}{{ rank.rank|raw }}{% else %}-{% endif %}
                                    {{ rank.rank_suffix }}
                                    {% if rank.logo_link is not empty %}</a>{% endif %}
                                </div>
                            </td>
                        </tr>
                    {% endfor %}

                </table>
            {% endif %}
        </div>
    </form>
</div>