| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* View of Keyword Statistics |
| 5 |
*/ |
| 6 |
|
| 7 |
function pa_include_keywords( $current, $keyword_stats) { |
| 8 |
?> |
| 9 |
|
| 10 |
<div class="data_boxes"> |
| 11 |
<div class="data_boxes_title"><?php echo _e( 'How people are finding you (keywords)', 'wp-analytify'); ?><div class="arrow_btn"></div></div> |
| 12 |
<div class="data_container"> |
| 13 |
<?php |
| 14 |
if (!empty($keyword_stats["rows"])): |
| 15 |
?> |
| 16 |
<div class="names_grids"> |
| 17 |
<div id="tagcloud"> |
| 18 |
<?php foreach ($keyword_stats["rows"] as $k_stats): |
| 19 |
$keywords=$k_stats[1]; |
| 20 |
if ($keywords < 20): |
| 21 |
$class = 'smallest'; |
| 22 |
elseif ($keywords >= 20 && $keywords < 40): |
| 23 |
$class = 'small'; |
| 24 |
elseif ($keywords >= 40 && $keywords < 60): |
| 25 |
$class = 'medium'; |
| 26 |
elseif ($keywords >= 60 && $keywords < 80): |
| 27 |
$class = 'large'; |
| 28 |
else: |
| 29 |
$class = 'largest'; |
| 30 |
endif; |
| 31 |
?> |
| 32 |
<div class="<?php echo $class; ?> keywordscont"> |
| 33 |
<span class="visits_by_keyword"><?php echo $current->wpa_number_format( $k_stats[1] ); ?></span> Visits <br /> |
| 34 |
<i><?php echo $k_stats[0]; ?></i> |
| 35 |
</div> |
| 36 |
<?php endforeach; ?> |
| 37 |
</div> |
| 38 |
|
| 39 |
</div> |
| 40 |
<?php endif; ?> |
| 41 |
</div> |
| 42 |
<div class="data_boxes_footer"> |
| 43 |
<span class="blk"> |
| 44 |
<span class="dot"></span> |
| 45 |
<span class="line"></span> |
| 46 |
</span> |
| 47 |
<span class="information-txt"><?php echo _e('See which keywords are matching what users search.', 'wp-analytify')?></span></div> |
| 48 |
</div> |
| 49 |
<?php } ?> |