Открыть главное меню

SportWiki энциклопедия β

Widget:Trend — различия между версиями

 
(не показано 36 промежуточных версий этого же участника)
Строка 1: Строка 1:
function wps_trend($atts){
 
        extract( shortcode_atts( array(
 
                'w' => '500',          // width
 
                'h' => '330',          // height
 
                'q' => '',              // query
 
        ), $atts ) );
 
        //format input
 
        $h=(int)$h;
 
        $w=(int)$w;
 
        $q=esc_attr($q);
 
        $geo=esc_attr($geo);
 
        ob_start();
 
?>
 
 
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/909_RC04/embed_loader.js"></script>  
 
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/909_RC04/embed_loader.js"></script>  
<script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"pureprotein","geo":"RU","time":"today 5-y"}],"category":0,"property":""}, {"exploreQuery":"geo=RU&q=pureprotein"}); </script>
+
<div style="width:50%"><script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"<!--{$key|escape:'html'}-->","geo":"<!--{if isset($geo)}--><!--{$geo|escape:'html'}--><!--{/if}-->","time":"today 5-y"}<!--{if isset($key2)}-->,{"keyword":"<!--{$key2|escape:'html'}-->","geo":"<!--{if isset($geo)}--><!--{$geo|escape:'html'}--><!--{/if}-->","time":"today 5-y"}<!--{/if}--><!--{if isset($key3)}-->,{"keyword":"<!--{$key3|escape:'html'}-->","geo":"<!--{if isset($geo)}--><!--{$geo|escape:'html'}--><!--{/if}-->","time":"today 5-y"}<!--{/if}--><!--{if isset($key4)}-->,{"keyword":"<!--{$key4|escape:'html'}-->","geo":"<!--{if isset($geo)}--><!--{$geo|escape:'html'}--><!--{/if}-->","time":"today 5-y"}<!--{/if}--><!--{if isset($key5)}-->,{"keyword":"<!--{$key5|escape:'html'}-->","geo":"<!--{if isset($geo)}--><!--{$geo|escape:'html'}--><!--{/if}-->","time":"today 5-y"}<!--{/if}-->],"category":0,"property":""}, {"exploreQuery":"<!--{if isset($geo)}-->geo=<!--{$geo|escape:'html'}-->&<!--{/if}-->q=<!--{$key|escape:'html'}--><!--{if isset($key2)}-->,<!--{$key2|escape:'html'}--><!--{/if}--><!--{if isset($key3)}-->,<!--{$key3|escape:'html'}--><!--{/if}--><!--{if isset($key4)}-->,<!--{$key4|escape:'html'}--><!--{/if}--><!--{if isset($key5)}-->,<!--{$key5|escape:'html'}--><!--{/if}-->"}); </script> </div>

Текущая версия на 16:04, 2 февраля 2017

<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/909_RC04/embed_loader.js"></script>

<script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"","geo":"","time":"today 5-y"},{"keyword":"","geo":"","time":"today 5-y"},{"keyword":"","geo":"","time":"today 5-y"},{"keyword":"","geo":"","time":"today 5-y"},{"keyword":"","geo":"","time":"today 5-y"}],"category":0,"property":""}, {"exploreQuery":"geo=&q=,,,,"}); </script>

SportWiki энциклопедия

Партнёр магазин спортивного питания Спортфуд, где представлена сертифицированная продукция