<h2 piwik-enriched-headline
    data-graph-id="{{ nameGraphEvolutionReferrers }}">{{ 'General_EvolutionOverPeriod'|translate }}</h2>
{{ graphEvolutionReferrers|raw }}

<h2 piwik-enriched-headline>{{ 'Referrers_Type'|translate }}</h2>

<div id='leftcolumn'>
    <div class="sparkline" style="padding-left: 12px;">{{ sparkline(urlSparklineDirectEntry) }}
        {{ 'Referrers_TypeDirectEntries'|translate("<strong>"~visitorsFromDirectEntry~"</strong>")|raw }}
        {% if visitorsFromDirectEntryPercent|default is not empty %},
            {{ 'Referrers_XPercentOfVisits'|translate("<strong>"~visitorsFromDirectEntryPercent~"</strong>")|raw }}
        {% endif %}
        {% if visitorsFromDirectEntryEvolution|default is not empty %}
            {{ visitorsFromDirectEntryEvolution|raw }}
        {% endif %}
    </div>
    <div class="sparkline" style="padding-left: 12px;">{{ sparkline(urlSparklineSearchEngines) }}
        {{ 'Referrers_TypeSearchEngines'|translate("<strong>"~visitorsFromSearchEngines~"</strong>")|raw }}
        {% if visitorsFromSearchEnginesPercent|default is not empty %},
            {{ 'Referrers_XPercentOfVisits'|translate("<strong>"~visitorsFromSearchEnginesPercent~"</strong>")|raw }}
        {% endif %}
        {% if visitorsFromSearchEnginesEvolution|default is not empty %}
            {{ visitorsFromSearchEnginesEvolution|raw }}
        {% endif %}
    </div>
</div>
<div id='rightcolumn'>
    <div class="sparkline">{{ sparkline(urlSparklineWebsites) }}
        {{ 'Referrers_TypeWebsites'|translate("<strong>"~visitorsFromWebsites~"</strong>")|raw }}
        {% if visitorsFromWebsitesPercent|default is not empty %},
            {{ 'Referrers_XPercentOfVisits'|translate("<strong>"~visitorsFromWebsitesPercent~"</strong>")|raw }}
        {% endif %}
        {% if visitorsFromWebsitesEvolution|default is not empty %}
            {{ visitorsFromWebsitesEvolution|raw }}
        {% endif %}
    </div>
    <div class="sparkline">{{ sparkline(urlSparklineCampaigns) }}
        {{ 'Referrers_TypeCampaigns'|translate("<strong>"~visitorsFromCampaigns~"</strong>")|raw }}
        {% if visitorsFromCampaignsPercent|default is not empty %},
            {{ 'Referrers_XPercentOfVisits'|translate("<strong>"~visitorsFromCampaignsPercent~"</strong>")|raw }}
        {% endif %}
        {% if visitorsFromCampaignsEvolution|default is not empty %}
            {{ visitorsFromCampaignsEvolution|raw }}
        {% endif %}
    </div>
</div>

<div style="clear:both;"/>

<div id="distinctReferrersByType">
    <div id='leftcolumn'>
        <div class="sparkline" style="padding-left: 12px;">{{ sparkline(urlSparklineDistinctSearchEngines) }}
            <strong>{{ numberDistinctSearchEngines }}</strong> {{ 'Referrers_DistinctSearchEngines'|translate }}
            {% if numberDistinctSearchEnginesEvolution|default is not empty %}
                {{ numberDistinctSearchEnginesEvolution|raw }}
            {% endif %}
        </div>
        <div class="sparkline" style="padding-left: 12px;">{{ sparkline(urlSparklineDistinctKeywords) }}
            <strong>{{ numberDistinctKeywords }}</strong> {{ 'Referrers_DistinctKeywords'|translate }}
            {% if numberDistinctKeywordsEvolution|default is not empty %}
                {{ numberDistinctKeywordsEvolution|raw }}
            {% endif %}
        </div>
    </div>
    <div id='rightcolumn'>
        <div class="sparkline">{{ sparkline(urlSparklineDistinctWebsites) }}
            <strong>{{ numberDistinctWebsites }}</strong> {{ 'Referrers_DistinctWebsites'|translate }}
            {{ 'Referrers_UsingNDistinctUrls'|translate("<strong>"~numberDistinctWebsitesUrls~"</strong>")|raw }}
            {% if numberDistinctWebsitesEvolution|default is not empty %}
                {{ numberDistinctWebsitesEvolution|raw }}
            {% endif %}
        </div>
        <div class="sparkline">{{ sparkline(urlSparklineDistinctCampaigns) }}
            <strong>{{ numberDistinctCampaigns }}</strong> {{ 'Referrers_DistinctCampaigns'|translate }}
            {% if numberDistinctCampaignsEvolution|default is not empty %}
                {{ numberDistinctCampaignsEvolution|raw }}
            {% endif %}
        </div>
    </div>
    <br/>
</div>

<p style="clear:both;"/>

<div style="float:left;" class="relatedReferrerReports">{{ 'General_View'|translate }}
    <a href="javascript:broadcast.propagateAjax('module=Referrers&action=getSearchEnginesAndKeywords')">{{ 'Referrers_SubmenuSearchEngines'|translate }}</a>,
    <a href="javascript:broadcast.propagateAjax('module=Referrers&action=indexWebsites')">{{ 'Referrers_SubmenuWebsites'|translate }}</a>,
    <a href="javascript:broadcast.propagateAjax('module=Referrers&action=indexCampaigns')">{{ 'Referrers_Campaigns'|translate }}</a>.
</div>

{% include "_sparklineFooter.twig" %}
