Changeset 2019461
- Timestamp:
- 01/26/2019 07:24:35 AM (7 years ago)
- Location:
- livetwitch/trunk
- Files:
-
- 2 edited
-
includes/class-twitch.php (modified) (5 diffs)
-
live-twitch.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
livetwitch/trunk/includes/class-twitch.php
r2015816 r2019461 220 220 return $this->version; 221 221 } 222 222 223 223 /** 224 224 * Create shortcode that takes 2 variables (count and singular). … … 237 237 'orderby' => 'viewers', 238 238 'order' => 'DESC', 239 'singletext' => '', 239 240 ), 240 241 $atts, … … 242 243 ); 243 244 244 245 // return 245 246 if(!empty($atts['singular']) || strlen($atts['singular']) > 0 ){ 247 248 $singletext = false; 249 250 if(!empty($atts['singletext'])){ 251 $singletext = true; 252 } 246 253 247 254 $viewers = $game = $link = $image = $stream_title = ""; … … 294 301 295 302 } 303 }elseif ($singletext) { 304 echo '<span class="livetwitch is-live">Live</span>'; 296 305 }else { 297 306 $stream = array_map(array('LiveTwitchWidget','LiveTwitch_DisplayString'), $stream); … … 305 314 } 306 315 316 /** 317 * Add filter for Twitch game name. 318 * 319 * @since 0.0.3 320 * @access public 321 * @var string $game Game name. 322 */ 323 public static function display_singlelive($game) { 324 livetwitch_get_template('single-live.php'); 325 } 307 326 308 327 /** -
livetwitch/trunk/live-twitch.php
r2015816 r2019461 25 25 } 26 26 27 define( 'LiveTwitch', '0.0. 3' );27 define( 'LiveTwitch', '0.0.4' ); 28 28 /** 29 29 * The core plugin class that is used to define internationalization,
Note: See TracChangeset
for help on using the changeset viewer.