Changeset 1559112
- Timestamp:
- 12/21/2016 04:03:45 PM (9 years ago)
- Location:
- wp-tradingview/tags/1.3
- Files:
-
- 7 edited
- 2 copied
-
. (copied) (copied from wp-tradingview/trunk)
-
inc/admin_page.php (modified) (15 diffs)
-
inc/class_chart.php (modified) (1 diff)
-
inc/class_chat.php (modified) (6 diffs)
-
inc/class_ideastream.php (modified) (4 diffs)
-
inc/class_ideaview.php (modified) (3 diffs)
-
inc/class_profile.php (modified) (5 diffs)
-
readme.txt (copied) (copied from wp-tradingview/trunk/readme.txt) (2 diffs)
-
tradingview.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tradingview/tags/1.3/inc/admin_page.php
r1557281 r1559112 695 695 696 696 add_settings_field( 697 'tv_chat_op_5', 698 __('Autosize - Stretch 100% width and height of containing element. 699 (overrides width/height values below)', 'tv'), 700 'tv_op_checkbox_cb', 701 'tv_chat', 702 'tv-chat', 703 [ 'label_for' => 'tv_chat_op_5', 704 'class' => 'checkbox', 705 'name' => 'autosize', 706 'value' => esc_attr($chat_data['autosize']), 707 'option_name' => $chat_option_name 708 ] 709 ); 710 711 add_settings_field( 697 712 'tv_chat_op_2', 698 713 __('Width', 'tv'), … … 701 716 'tv-chat', 702 717 [ 'label_for' => 'tv_chat_op_2', 703 'class' => 'prepop',718 //'class' => 'prepop', 704 719 'name' => 'width', 705 720 'value' => esc_attr( $chat_data['width'] ), … … 708 723 ] 709 724 ); 710 add_settings_field(725 /**add_settings_field( 711 726 'tv_chat_op_2_1', 712 727 __('', 'tv'), … … 720 735 'option_name' => $chat_option_name 721 736 ] 722 ); 737 );**/ 723 738 724 739 add_settings_field( … … 729 744 'tv-chat', 730 745 [ 'label_for' => 'tv_chat_op_3', 731 'class' => 'prepop',746 //'class' => 'prepop', 732 747 'name' => 'height', 733 748 'value' => esc_attr( $chat_data['height'] ), … … 735 750 ] 736 751 ); 737 add_settings_field(752 /**add_settings_field( 738 753 'tv_chat_op_3_1', 739 754 __('', 'tv'), … … 747 762 'option_name' => $chat_option_name 748 763 ] 749 ); 750 751 752 753 764 );**/ 754 765 755 766 add_settings_field( … … 1441 1452 1442 1453 if($username != ''): 1443 if($widthpop==2) $width = $width.'%'; 1444 if($heightpop==2) $height = $height.'%'; 1445 1454 if($widthpop==2) $width = "'".$width."%'"; 1455 if($heightpop==2) $height = "'".$height."%'"; 1446 1456 ?> 1447 <p ><strong>Shortcode:</strong><br/>1457 <p style="width:70%;"><strong>Shortcode:</strong><br/> 1448 1458 <code> 1449 1459 <?php … … 1483 1493 1484 1494 1485 if($username != '' || $symbol != ''):1495 //if($username != '' || $symbol != ''): 1486 1496 if($widthpop==2) $width = $width.'%'; 1487 1497 if($heightpop==2) $height = $height.'%'; 1488 1498 1489 1499 ?> 1490 <p ><strong>Shortcode:</strong><br/>1500 <p style="width:70%;"><strong>Shortcode:</strong><br/> 1491 1501 <code> 1492 1502 <?php … … 1496 1506 </code> 1497 1507 </p> 1498 <?php endif; 1508 <?php 1509 //endif; 1499 1510 settings_fields('tv_ideastream_op_group'); 1500 1511 do_settings_sections('tv_ideastream'); … … 1511 1522 $locale = $ideaview_data['locale']; 1512 1523 1513 if($idea != ''):1514 if($widthpop==2) $width = $width.'%';1515 if($heightpop==2) $height = $height.'%';1524 //if($idea != ''): 1525 if($widthpop==2) $width = "\'".$width."%\'"; 1526 if($heightpop==2) $height = "\'".$height."%\'"; 1516 1527 1517 1528 ?> 1518 <p ><strong>Shortcode:</strong><br/>1529 <p style="width:70%;"><strong>Shortcode:</strong><br/> 1519 1530 <code> 1520 1531 <?php … … 1525 1536 </code> 1526 1537 </p> 1527 <?php endif; 1538 <?php 1539 //endif; 1528 1540 1529 1541 settings_fields('tv_ideaview_op_group'); … … 1535 1547 1536 1548 $room = $chat_data['room']; 1549 $autosize = $chat_data['autosize']; 1537 1550 $width = $chat_data['width']; 1538 1551 $widthpop = $chat_data['widthpop']; … … 1541 1554 $locale = $chat_data['locale']; 1542 1555 1543 if($room != ''):1556 //if($room != ''): 1544 1557 if($widthpop==2) $width = $width.'%'; 1545 1558 if($heightpop==2) $height = $height.'%'; 1546 1559 1547 1560 ?> 1548 <p ><strong>Shortcode:</strong><br/>1561 <p style="width:70%;"><strong>Shortcode:</strong><br/> 1549 1562 1550 1563 <code> 1551 1564 <?php 1552 printf('[tv-chat room="%1$s" width="%2$s" height="%3$s" language="%4$s"]', 1553 $room, $width, $height, $locale); 1565 $widthstr = 'width="'.$width.'" height="'.$height.'"'; 1566 if($autosize=='1') $widthstr = 'autosize="1"'; 1567 printf('[tv-chat room="%1$s" %2$s language="%3$s"]', 1568 $room, $widthstr, $locale); 1554 1569 ?> 1555 1570 … … 1557 1572 </p> 1558 1573 <?php 1559 endif;1574 //endif; 1560 1575 1561 1576 settings_fields('tv_chat_op_group'); -
wp-tradingview/tags/1.3/inc/class_chart.php
r1557952 r1559112 367 367 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){ 368 368 $data = ""; 369 369 370 370 $data .= "<script type='text/javascript'> 371 371 new TradingView.widget({"; -
wp-tradingview/tags/1.3/inc/class_chat.php
r1555578 r1559112 99 99 100 100 <p> 101 <input type="checkbox" class="checkbox" 102 id="<?php echo $this->get_field_id('autosize');?>" 103 name="<?php echo $this->get_field_name('autosize');?>" 104 value="1" <?php echo ($autosize != '') ? checked (true,$autosize,false): checked (true,$chart_data['autosize'],false); ?>/> 105 <label for="<?php echo $this->get_field_id('autosize');?>">Autosize</label> 106 </p> 107 108 <p> 101 109 <label for="<?php echo $this->get_field_id('width');?>">Width: </label> 102 110 <input … … 104 112 id="<?php echo $this->get_field_id('width');?>" 105 113 name="<?php echo $this->get_field_name('width');?>" 106 value="<?php echo !empty($width) ? $width : $chat_data['width']; ?>" /><input 107 type="radio" 108 class="widefat" 109 name="<?php echo $this->get_field_name('widthpop');?>" 110 value="1" <?php echo ($widthpop != 0) ? checked (1,$widthpop,false): checked (1,$chat_data['widthpop'],false); ?>/>px <input 111 type="radio" 112 class="widefat" 113 name="<?php echo $this->get_field_name('widthpop');?>" 114 value="2" <?php echo ($widthpop != 0) ? checked (2,$widthpop,false): checked (2,$chat_data['widthpop'],false); ?>/>% 114 value="<?php echo !empty($width) ? $width : $chat_data['width']; ?>" /> 115 115 116 116 </p> … … 121 121 id="<?php echo $this->get_field_id('height');?>" 122 122 name="<?php echo $this->get_field_name('height');?>" 123 value="<?php echo !empty($height) ? $height : $chat_data['height']; ?>" /><input 124 type="radio" 125 class="widefat" 126 name="<?php echo $this->get_field_name('heightpop');?>" 127 value="1" <?php echo ($heightpop != 0) ? checked (1,$heightpop,false): checked (1,$chat_data['heightpop'],false); ?>/>px <input 128 type="radio" 129 class="widefat" 130 name="<?php echo $this->get_field_name('heightpop');?>" 131 value="2" <?php echo ($heightpop != 0) ? checked (2,$heightpop,false): checked (2,$chat_data['heightpop'],false); ?>/>% 123 value="<?php echo !empty($height) ? $height : $chat_data['height']; ?>" /> 132 124 133 125 </p> … … 159 151 <?php 160 152 //if($room != ''): 161 if($widthpop==2) $width = $width.'%';162 if($heightpop==2) $height = $height.'%';153 //if($widthpop==2) $width = $width.'%'; 154 //if($heightpop==2) $height = $height.'%'; 163 155 164 156 ?> 165 157 <p><strong>Shortcode:</strong><br/> 166 158 <code> 167 [tv-chat chatroom="<?php echo $room; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" language="<?php echo $locale; ?>"] 159 <?php 160 $widthstr = 'width="'.$width.'" height="'.$height.'"'; 161 if($autosize=='1') $widthstr = 'autosize="1"'; 162 printf('[tv-chat room="%1$s" %2$s language="%3$s"]', 163 $room, $widthstr, $locale); 164 ?> 165 168 166 </code> 169 167 </p> … … 179 177 if(empty($title)) $title = "TradingView member Profile"; 180 178 if(empty($room )) $room = $chat_data['room']; 179 if(empty($autosize )) $autosize = $chat_data['autosize']; 181 180 if(empty($width )) $width = $chat_data['width']; 182 if(empty($widthpop)) $widthpop = $chat_data['widthpop'];181 //if(empty($widthpop)) $widthpop = $chat_data['widthpop']; 183 182 if(empty($height )) $height = $chat_data['height']; 184 if(empty($heightpop)) $heightpop = $chat_data['heightpop'];183 //if(empty($heightpop)) $heightpop = $chat_data['heightpop']; 185 184 if(empty($locale)) $locale = $chat_data['locale']; 186 $data = $this->display_TradingView($room,$ width,$widthpop,$height,$heightpop,$locale);185 $data = $this->display_TradingView($room,$autosize,$width,$height,$locale); 187 186 echo $before_widget; 188 187 echo $before_title . $title . $after_title; … … 190 189 echo $after_widget; 191 190 } 192 public static function display_TradingView($room,$ width,$widthpop,$height,$heightpop,$locale){191 public static function display_TradingView($room,$autosize,$width,$height,$locale){ 193 192 $data = ""; 194 193 $x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; 195 194 //$rand = 'id="tv-ideas-stream-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5).'"'; 196 195 $rand = 'tv-chat-widget-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5); 197 if($widthpop==2) $width = "'".$width."%'"; 198 if($heightpop==2) $height = "'".$height."%'"; 196 //if($widthpop==2) $width = "'".$width."%'"; 197 //if($heightpop==2) $height = "'".$height."%'"; 198 if(empty($room)) $room = 'general'; 199 199 $data .= "<div id=".$rand."></div> 200 <script type='text/javascript' src='https://d33t3vvu2t2yu5.cloudfront.net/tv.js'></script>201 200 <script type='text/javascript'> 202 201 new TradingView.ChatWidgetEmbed({ 203 202 'container_id': '".$rand."', 204 'username': '".$username."', 205 'width': ".$width.", 206 'height': ".$height.", 203 'room': '".$room."',"; 204 if($autosize=='1') $data .= " 205 'autosize': 'true'"; 206 else $data .= " 207 'width': '".$width."', 208 'height': '".$height."',"; 209 $data .= " 207 210 'locale': '".$locale."' 208 211 }); 209 </script> 210 211 <div id='support_author' style='font-size: 8px; font-weight: normal;><a href='http://tradepips.com/' title='Visit the website' target='_blank'>Weekly forecasts</a></div>"; 212 </script>"; 212 213 return $data; 213 214 } -
wp-tradingview/tags/1.3/inc/class_ideastream.php
r1555578 r1559112 211 211 212 212 <?php if($username != ''): 213 if($widthpop==2) $width = $width.'%';214 if($heightpop==2) $height = $height.'%';213 if($widthpop==2) $width = "'".$width."%'"; 214 if($heightpop==2) $height = "'".$height."%'"; 215 215 216 216 ?> … … 247 247 if(empty($symbol)) $symbol = $ideastream_data['symbol']; 248 248 249 250 251 $data = $this->display_TradingView($startingCount,$width,$widthpop,$height,$heightpop,$bgColor,$headerColor,$borderColor,$locale,$sort,$time,$interval,$stream,$symbol,$username); 249 if($widthpop==2) $width = "'".$width."%'"; 250 if($heightpop==2) $height = "'".$height."%'"; 251 252 $data = $this->display_TradingView($startingCount,$width,$height,$bgColor,$headerColor,$borderColor,$locale,$sort,$time,$interval,$stream,$symbol,$username); 252 253 echo $before_widget; 253 254 echo $before_title . $title . $after_title; … … 255 256 echo $after_widget; 256 257 } 257 public static function display_TradingView($startingCount,$width,$ widthpop,$height,$heightpop,$bgColor,$headerColor,$borderColor,$locale,$sort,$time,$interval,$stream,$symbol,$username){258 public static function display_TradingView($startingCount,$width,$height,$bgColor,$headerColor,$borderColor,$locale,$sort,$time,$interval,$stream,$symbol,$username){ 258 259 $data = ""; 259 260 $x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; 260 261 //$rand = 'id="tv-ideas-stream-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5).'"'; 261 262 $rand = 'tv-ideastream-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5); 262 if($widthpop==2) $width = "'".$width."%'"; 263 if($heightpop==2) $height = "'".$height."%'"; 263 264 264 $data .= "<div id=".$rand."></div> 265 <script type='text/javascript' src='https://d33t3vvu2t2yu5.cloudfront.net/tv.js'></script>266 265 <script type='text/javascript'> 267 266 new TradingView.IdeasStreamWidget({ 268 267 'container_id': '".$rand."', 269 268 'startingCount': '".$startingCount."', 270 'width': ".$width.",271 'height': ".$height.",269 'width': '".$width."', 270 'height': '".$height."', 272 271 'mode': 'integrate', 273 272 'bgColor': '".$bgColor."', … … 280 279 'stream': '".$stream."', 281 280 'symbol': '".$symbol."', 282 'username': '".$username."' ,281 'username': '".$username."' 283 282 }); 284 </script> 285 286 <div id='support_author' style='font-size: 8px; font-weight: normal;><a href='http://tradepips.com/' title='Visit the website' target='_blank'>Weekly forecasts</a></div>"; 287 283 </script>"; 284 288 285 return $data; 289 286 } -
wp-tradingview/tags/1.3/inc/class_ideaview.php
r1555578 r1559112 103 103 </p> 104 104 <?php if($idea != ''): 105 if($widthpop==2) $width = $width.'%';106 if($heightpop==2) $height = $height.'%';105 if($widthpop==2) $width = "'".$width."%'"; 106 if($heightpop==2) $height = "'".$height."%'"; 107 107 108 108 ?> … … 127 127 if(empty($heightpop)) $heightpop = $ideaview_data['heightpop']; 128 128 if(empty($locale)) $locale = $ideaview_data['locale']; 129 $data = $this->display_TradingView($idea,$width,$widthpop,$height,$heightpop,$locale); 129 if($widthpop==2) $width = "'".$width."%'"; 130 if($heightpop==2) $height = "'".$height."%'"; 131 $data = $this->display_TradingView($idea,$width,$height,$locale); 130 132 echo $before_widget; 131 133 echo $before_title . $title . $after_title; … … 133 135 echo $after_widget; 134 136 } 135 public static function display_TradingView($ username,$width,$widthpop,$height,$heightpop,$locale){137 public static function display_TradingView($idea,$width,$height,$locale){ 136 138 $data = ""; 137 139 $x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; 138 140 //$rand = 'id="tv-ideas-stream-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5).'"'; 139 141 $rand = 'tv-ideas-preview-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5); 140 if($widthpop==2) $width = "'".$width."%'"; 141 if($heightpop==2) $height = "'".$height."%'"; 142 $data .= "<div id=".$rand."></div> 143 <script type='text/javascript' src='https://d33t3vvu2t2yu5.cloudfront.net/tv.js'></script> 142 $data .= "<div id=".$rand."></div> 144 143 <script type='text/javascript'> 145 new TradingView. .IdeaWidget({144 new TradingView.IdeaWidget({ 146 145 'container_id': '".$rand."', 147 'width': ".$width.",148 'height': ".$height.",146 'width': '".$width."', 147 'height': '".$height."', 149 148 'idea': '".$idea."', 150 149 'locale': '".$locale."' 151 150 }); 152 </script> 153 154 <div id='support_author' style='font-size: 8px; font-weight: normal;><a href='http://tradepips.com/' title='Visit the website' target='_blank'>Weekly forecasts</a></div>"; 151 </script>"; 155 152 return $data; 156 153 } -
wp-tradingview/tags/1.3/inc/class_profile.php
r1555578 r1559112 112 112 </p> 113 113 <?php if($username != ''): 114 if($widthpop==2) $width = $width.'%';115 if($heightpop==2) $height = $height.'%';114 if($widthpop==2) $width = "'".$width."%'"; 115 if($heightpop==2) $height = "'".$height."%'"; 116 116 117 117 ?> … … 145 145 if(empty($locale)) $locale = $profile_data['locale']; 146 146 147 $data = $this->display_TradingView($username,$width,$widthpop,$height,$heightpop,$locale); 147 if($widthpop==2) $width = "'".$width."%'"; 148 if($heightpop==2) $height = "'".$height."%'"; 149 150 $data = $this->display_TradingView($username,$width,$height,$locale); 148 151 echo $before_widget; 149 152 echo $before_title . $title . $after_title; … … 151 154 echo $after_widget; 152 155 } 153 public static function display_TradingView($username,$width,$ widthpop,$height,$heightpop,$locale){156 public static function display_TradingView($username,$width,$height,$locale){ 154 157 155 158 $data = ""; … … 157 160 //$rand = 'id="tv-ideas-stream-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5).'"'; 158 161 $rand = 'tv-user-info-'.substr(str_shuffle(str_repeat($x, ceil(5/strlen($x)) )),1,5); 159 if($widthpop==2) $width = "'".$width."%'"; 160 if($heightpop==2) $height = "'".$height."%'"; 162 161 163 $data .= "<div id=".$rand."></div> 162 164 <script type='text/javascript'> … … 164 166 'container_id': '".$rand."', 165 167 'username': '".$username."', 166 'width': ".$width.",167 'height': ".$height.",168 'width': '".$width."', 169 'height': '".$height."', 168 170 'locale': '".$locale."' 169 171 }); 170 172 </script>"; 171 173 172 174 return $data; 173 175 } -
wp-tradingview/tags/1.3/readme.txt
r1557953 r1559112 5 5 Requires at least: 3.5 6 6 Tested up to: 4.7 7 Stable tag: 1. 27 Stable tag: 1.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 49 49 == Changelog == 50 50 51 = 1.3 = 52 * Bug fixes: 53 * Profile widget embed code width/height value errors fixed 54 * Width/height type (px or %) selection bypassed from the display function 55 * Removed an erroneous links from embed commodities 56 * Updated the tv.js url to the s3.tradingview.com/tv.js 57 51 58 = 1.2 = 52 59 * Wrong value retrieved for height parameter bug fixed. -
wp-tradingview/tags/1.3/tradingview.php
r1557952 r1559112 4 4 Plugin URI: http://tradepips.com 5 5 Description: WP Trading View - Display TradingView Profile, TradingView ideas, chat widget or forex / stock charts. 6 Version: 1. 26 Version: 1.3 7 7 Author: Trade Pips 8 8 Author URI: http://tradepips.com … … 12 12 13 13 function tv_scripts() { 14 wp_register_script('tv-common-js', 'https:// d33t3vvu2t2yu5.cloudfront.net/tv.js','','',false);14 wp_register_script('tv-common-js', 'https://s3.tradingview.com/tv.js','','',false); 15 15 wp_enqueue_script('tv-common-js'); 16 16 } … … 34 34 $atts = shortcode_atts(array( 35 35 'username' => 'fxmillions', 36 'width' => ' 300',36 'width' => '100', 37 37 'widthpop' => '', 38 38 'height' => '400', 39 39 'heightpop' => '', 40 'l anguage' => 'en'40 'locale' => 'en' 41 41 ), $atts); 42 42 extract($atts); 43 if(!empty($username)){ 44 $data = widget_TradingView_profile::display_TradingView($username,$width,$widthpop,$height,$heightpop,$locale); 45 } else{ 46 $data = "Tradingview username is required to display the profile shortcode"; 47 } 43 if(empty($username)) $username = 'fxmillions'; 44 if($widthpop==2) $width = "'".$width."%'"; 45 if($heightpop==2) $height = "'".$height."%'"; 46 $data = widget_TradingView_profile::display_TradingView($username,$width,$height,$locale); 47 //} else{ 48 // $data = "Tradingview username is required to display the profile shortcode"; 49 //} 48 50 return $data; 49 51 } … … 71 73 ), $atts); 72 74 extract($atts); 73 if(!empty($symbol)){ 74 $data = widget_TradingView_ideastream::display_TradingView($startingCount,$width,$widthpop,$height,$heightpop,$bgColor,$headerColor,$borderColor,$locale,$sort,$time,$interval,$stream,$symbol,$username); 75 } else{ 76 $data = "A symbol is required to display an idea stream"; 77 } 78 return $data; 75 if($widthpop==2) $width = "'".$width."%'"; 76 if($heightpop==2) $height = "'".$height."%'"; 77 $data = widget_TradingView_ideastream::display_TradingView($startingCount,$width,$height,$bgColor,$headerColor,$borderColor,$locale,$sort,$time,$interval,$stream,$symbol,$username); 78 79 return $data; 79 80 } 80 81 … … 84 85 'idea' => 'WDO3BAZT', 85 86 'width' => '100', 86 'widthpop' => 1,87 'widthpop' => '', 87 88 'height' => '410', 88 'heightpop'=> 1,89 'heightpop'=> '', 89 90 'locale' => 'en' 90 91 ), $atts); 91 92 extract($atts); 93 if($widthpop==2) $width = "'".$width."%'"; 94 if($heightpop==2) $height = "'".$height."%'"; 92 95 if(!empty($idea)){ 93 $data = widget_TradingView_ideaview::display_TradingView($idea,$width,$ widthpop,$height,$heightpop,$locale);96 $data = widget_TradingView_ideaview::display_TradingView($idea,$width,$height,$locale); 94 97 } else{ 95 98 $data = "Unique ID is required to display the idea preview"; … … 102 105 $atts = shortcode_atts(array( 103 106 'room' => 'general', 107 'autosize' => '', 104 108 'width' => '100', 105 'widthpop' => 2,109 //'widthpop' => 2, 106 110 'height' => '410', 107 'heightpop'=> 1,111 //'heightpop'=> 1, 108 112 'locale' => 'en' 109 113 ), $atts); 110 114 extract($atts); 111 if( !empty($room)){112 $data = widget_TradingView_chat::display_TradingView($room,$ width,$widthpop,$height,$heightpop,$locale);113 } else{114 $data = "Specify a chat room to display the chat widget";115 }115 if(empty($room)) $room = 'general'; 116 $data = widget_TradingView_chat::display_TradingView($room,$autosize,$width,$height,$locale); 117 //} else{ 118 // $data = "Specify a chat room to display the chat widget"; 119 //} 116 120 return $data; 117 121 } … … 152 156 $data = widget_TradingView_chart::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); 153 157 } else{ 154 $data = " Specify a chart";158 $data = "Please specify a symbol"; 155 159 } 156 160 return $data;
Note: See TracChangeset
for help on using the changeset viewer.