[Tweet] Only show distance if gridsquare is provided
这个提交包含在:
		
							父节点
							
								
									f7f940d0eb
								
							
						
					
					
						当前提交
						2907640628
					
				
					共有  1 个文件被更改,包括 5 次插入 和 3 次删除
				
			
		|  | @ -309,9 +309,11 @@ | ||||||
|                             $twitter_band_sat = $row->COL_BAND; |                             $twitter_band_sat = $row->COL_BAND; | ||||||
|                             $hashtags = "#hamr #cloudlog"; |                             $hashtags = "#hamr #cloudlog"; | ||||||
|                         } |                         } | ||||||
|                         if (!isset($distance)) |                         if (!isset($distance)) { | ||||||
|                             $distance = ""; |                             $twitter_string = urlencode("Just worked ".$row->COL_CALL." in ".ucwords(strtolower(($row->COL_COUNTRY)))." on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags); | ||||||
|  |                         } else { | ||||||
|                             $twitter_string = urlencode("Just worked ".$row->COL_CALL." in ".ucwords(strtolower(($row->COL_COUNTRY)))." (Gridsquare: ".$row->COL_GRIDSQUARE." / distance: ".$distance.") on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags); |                             $twitter_string = urlencode("Just worked ".$row->COL_CALL." in ".ucwords(strtolower(($row->COL_COUNTRY)))." (Gridsquare: ".$row->COL_GRIDSQUARE." / distance: ".$distance.") on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags); | ||||||
|  |                         } | ||||||
|                     ?>
 |                     ?>
 | ||||||
| 
 | 
 | ||||||
|                     <div class="text-right"><a class="btn btn-sm btn-primary twitter-share-button" target="_blank" href="https://twitter.com/intent/tweet?text=<?php echo $twitter_string; ?>"><i class="fab fa-twitter"></i> Tweet</a></div> |                     <div class="text-right"><a class="btn btn-sm btn-primary twitter-share-button" target="_blank" href="https://twitter.com/intent/tweet?text=<?php echo $twitter_string; ?>"><i class="fab fa-twitter"></i> Tweet</a></div> | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用