echo smarty_function_postEvent(array('name' => 'template_leftColumnUserCountry'), $this);
?>


    <h2><?php 
echo is_array($_tmp = 'UserCountry_Continent') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h2>
    <?php 
echo $this->_tpl_vars['dataTableContinent'];
?>


    <div class="sparkline">
        <?php 
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineCountries']), $this);
?>

        <?php 
echo is_array($_tmp = 'UserCountry_DistinctCountries') ? $this->_run_mod_handler('translate', true, $_tmp, "<strong>" . $this->_tpl_vars['numberDistinctCountries'] . "</strong>") : smarty_modifier_translate($_tmp, "<strong>" . $this->_tpl_vars['numberDistinctCountries'] . "</strong>");
?>

    </div>

    <?php 
echo smarty_function_postEvent(array('name' => 'template_footerUserCountry'), $this);
?>


</div>
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineActionsPerVisitReturning']), $this);
?>

 <?php 
echo is_array($_tmp = 'VisitFrequency_ReturnAvgActions') ? $this->_run_mod_handler('translate', true, $_tmp, "<strong>" . $this->_tpl_vars['nbActionsPerVisitReturning'] . "</strong>") : smarty_modifier_translate($_tmp, "<strong>" . $this->_tpl_vars['nbActionsPerVisitReturning'] . "</strong>");
?>
</div>
<div class="sparkline"><?php 
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineAvgVisitDurationReturning']), $this);
?>

 <?php 
$this->assign('avgVisitDurationReturning', is_array($_tmp = $this->_tpl_vars['avgVisitDurationReturning']) ? $this->_run_mod_handler('sumtime', true, $_tmp) : smarty_modifier_sumtime($_tmp));
?>
 <?php 
echo is_array($_tmp = 'VisitFrequency_ReturnAverageVisitDuration') ? $this->_run_mod_handler('translate', true, $_tmp, "<strong>" . $this->_tpl_vars['avgVisitDurationReturning'] . "</strong>") : smarty_modifier_translate($_tmp, "<strong>" . $this->_tpl_vars['avgVisitDurationReturning'] . "</strong>");
?>
</div>
<div class="sparkline"><?php 
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineBounceRateReturning']), $this);
?>

 <?php 
echo is_array($_tmp = 'VisitFrequency_ReturnBounceRate') ? $this->_run_mod_handler('translate', true, $_tmp, "<strong>" . $this->_tpl_vars['bounceRateReturning'] . "%</strong>") : smarty_modifier_translate($_tmp, "<strong>" . $this->_tpl_vars['bounceRateReturning'] . "%</strong>");
?>
 </div>
<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CoreHome/templates/sparkline_footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
    echo is_array($_tmp = 'Live_GoalRevenue') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('revenueText', ob_get_contents());
    ob_end_clean();
    ?>
	<strong><?php 
    echo $this->_tpl_vars['revenue'];
    ?>
</strong> <?php 
    echo is_array($_tmp = 'Goals_LeftInCart') ? $this->_run_mod_handler('translate', true, $_tmp, $this->_tpl_vars['revenueText']) : smarty_modifier_translate($_tmp, $this->_tpl_vars['revenueText']);
    ?>

	</div>
	
	<div class="sparkline"><?php 
    echo smarty_function_sparkline(array('src' => $this->_tpl_vars['cart_urlSparklineConversionRate']), $this);
    ?>

	<strong><?php 
    echo $this->_tpl_vars['cart_conversion_rate'];
    ?>
</strong> <?php 
    echo is_array($_tmp = 'General_VisitsWith') ? $this->_run_mod_handler('translate', true, $_tmp, $this->_tpl_vars['ecommerceAbandonedCartsText']) : smarty_modifier_translate($_tmp, $this->_tpl_vars['ecommerceAbandonedCartsText']);
    ?>

	</div>
</div>
<?php 
}
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CoreHome/templates/sparkline_footer.tpl", 'smarty_include_vars' => array()));
Example #4
0
 function sparklines()
 {
     require_once PIWIK_INCLUDE_PATH . '/core/SmartyPlugins/function.sparkline.php';
     $srcSparkline1 = Piwik_Url::getCurrentQueryStringWithParametersModified(array('action' => 'generateSparkline', 'server' => 'server1', 'rand' => rand()));
     $htmlSparkline1 = smarty_function_sparkline(array('src' => $srcSparkline1));
     echo "<div class='sparkline'>{$htmlSparkline1} Evolution of temperature for server piwik.org</div>";
     $srcSparkline2 = Piwik_Url::getCurrentQueryStringWithParametersModified(array('action' => 'generateSparkline', 'server' => 'server2', 'rand' => rand()));
     $htmlSparkline2 = smarty_function_sparkline(array('src' => $srcSparkline2));
     echo "<div class='sparkline'>{$htmlSparkline2} Evolution of temperature for server dev.piwik.org</div>";
 }
	<div class="sparkline"><?php 
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineDistinctWebsites']), $this);
?>

	<strong><?php 
echo $this->_tpl_vars['numberDistinctWebsites'];
?>
</strong> <?php 
echo is_array($_tmp = 'Referers_DistinctWebsites') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
 <?php 
echo is_array($_tmp = 'Referers_UsingNDistinctUrls') ? $this->_run_mod_handler('translate', true, $_tmp, "<strong>" . $this->_tpl_vars['numberDistinctWebsitesUrls'] . "</strong>") : smarty_modifier_translate($_tmp, "<strong>" . $this->_tpl_vars['numberDistinctWebsitesUrls'] . "</strong>");
?>
</div>
	<div class="sparkline"><?php 
echo smarty_function_sparkline(array('src' => $this->_tpl_vars['urlSparklineDistinctCampaigns']), $this);
?>
 
	<strong><?php 
echo $this->_tpl_vars['numberDistinctCampaigns'];
?>
</strong> <?php 
echo is_array($_tmp = 'Referers_DistinctCampaigns') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</div>
</td></tr>
</table>

<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CoreHome/templates/sparkline_footer.tpl", 'smarty_include_vars' => array()));