Plugin Directory

Changeset 1557951


Ignore:
Timestamp:
12/20/2016 03:37:04 AM (9 years ago)
Author:
tradepips
Message:

Bug fix: chart widget height value parameter is wrong.

Location:
wp-tradingview/tags/1.2
Files:
1 edited
6 copied

Legend:

Unmodified
Added
Removed
  • wp-tradingview/tags/1.2/inc/class_chart.php

    r1557940 r1557951  
    367367    public static function display_TradingView($symbol,$interval,$timezone,$autosize,$width,$height,$theme,$style,$locale,$toolbar_bg,$enable_publishing,$allow_symbol_change,$hide_top_toolbar,$withdateranges,$hide_side_toolbar,$save_image,$details,$stocktwits,$headlines,$hotlist,$calendar,$hideideas,$hideideasbutton,$referral_id){
    368368        $data = "";
    369         //$x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    370         //$rand = 'id="tv-ideas-stream-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5).'"';
    371         //$rand = 'tv-chart-widget-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5);
    372     //if($widthpop==2) $width = "'".$width."%'";
    373     //if($heightpop==2) $height = "'".$height."%'";
    374         //$data .= "<div id=".$rand."></div>
     369       
    375370    $data .= "<script type='text/javascript'>
    376371    new TradingView.widget({";
    377372    if($autosize=='1') $data .= "
    378     'autosize': true,
    379     'height': ".$height.",";
     373    'autosize': true,";
    380374    else{
    381375    $data .= "
  • wp-tradingview/tags/1.2/readme.txt

    r1557943 r1557951  
    4949== Changelog ==
    5050
    51 *1.1 Updated autosize to enable 100% width/height and override pixel width and height.
    52 *1.0 Stable initial release
     51= 1.2 =
     52* Wrong value retrieved for height parameter bug fixed.
     53
     54= 1.1 =
     55* Updated autosize to enable 100% width/height and override pixel width and height.
     56
     57= 1.0 =
     58* Stable initial release
  • wp-tradingview/tags/1.2/tradingview.php

    r1557943 r1557951  
    44Plugin URI: http://tradepips.com
    55Description: WP Trading View - Display TradingView Profile, TradingView ideas, chat widget or forex / stock charts.
    6 Version: 1.1
     6Version: 1.2
    77Author: Trade Pips
    88Author URI: http://tradepips.com
Note: See TracChangeset for help on using the changeset viewer.