Changeset 606129
- Timestamp:
- 09/30/2012 01:55:17 PM (14 years ago)
- Location:
- post-tiles/trunk
- Files:
-
- 2 edited
-
post-tiles.css (modified) (2 diffs)
-
post-tiles.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-tiles/trunk/post-tiles.css
r606103 r606129 1 /* @override 2 http://www.posttiles.com/wp-content/plugins/post-tiles/post-tiles.css?ver=3.4.2 */ 3 1 4 /* Admin CSS */ 2 5 #color-picker-example { … … 246 249 247 250 /* Responsive Code */ 248 ul#post-tiles.responsive li a {251 ul#post-tiles.responsive li a, ul#post-tiles.responsive-mobile li a { 249 252 width: 90%; 250 253 height: 90%; -
post-tiles/trunk/post-tiles.php
r606103 r606129 292 292 293 293 294 294 295 /* ***************************** */ 295 296 // Start Frontend Code … … 312 313 313 314 // Get and set the excerpt length 314 $excerpt_length = get_option('excerpt-length'); 315 if(empty($excerpt_length)){ 316 $excerpt_length = "12"; 315 $excerpt_shortcode = $atts['excerpt']; 316 if (isset($excerpt_shortcode)) { 317 $excerpt_length = $excerpt_shortcode; 318 } else { 319 $excerpt_length = get_option('excerpt-length'); 320 if(empty($excerpt_length)){ 321 $excerpt_length = "12"; 322 } 317 323 } 318 324 319 325 // Configure Categories For Query 320 326 $cat_num = $atts['categories']; … … 368 374 } 369 375 $posttiles_li_height = $posttiles_height+20; 376 ?> 377 <style media="screen" type="text/css"> 378 ul#post-tiles li { 379 width: <?php echo $posttiles_li_width; ?>px; 380 height: <?php echo $posttiles_li_height; ?>px; 381 } 382 ul#post-tiles li a { 383 width: <?php echo $posttiles_width; ?>px; 384 height: <?php echo $posttiles_height; ?>px; 385 } 386 </style><?php 370 387 371 388 // If jquery is on(true) then output the following … … 381 398 ul#post-tiles li, #category-key { 382 399 opacity: 0; 383 }384 ul#post-tiles li {385 width: <?php echo $posttiles_li_width; ?>px;386 height: <?php echo $posttiles_li_height; ?>px;387 }388 ul#post-tiles li a {389 width: <?php echo $posttiles_width; ?>px;390 height: <?php echo $posttiles_height; ?>px;391 400 } 392 401 </style><?php … … 467 476 wp_reset_query(); 468 477 478 // If responsive it true add responsive class 479 if ($responsive_key == "true") { 480 $responsive = "class='responsive'"; 481 } 469 482 470 483 // Display Key … … 472 485 $show_key_jquery = get_option('category-key-jquery'); 473 486 $featured_images_key= get_option('featured-images'); 474 475 476 // If responsive it true add responsive class477 if ($responsive_key == "true") {478 $responsive = "class='responsive'";479 }480 487 481 488 // If it's empty then the default value is false (default)
Note: See TracChangeset
for help on using the changeset viewer.