Changeset 2402353
- Timestamp:
- 10/19/2020 07:06:18 AM (5 years ago)
- Location:
- floating-related-posts/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (1 diff)
-
floating-related-posts-pro.php (modified) (6 diffs)
-
resources/css/floating-related-posts-pro-admin.css (modified) (1 diff)
-
resources/css/floating-related-posts-pro.css (modified) (4 diffs)
-
resources/js/floating-related-posts-pro.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
floating-related-posts/trunk/README.txt
r2400795 r2402353 3 3 Requires at least: 3.3.1 4 4 Tested up to: 5.5.1 5 Stable tag: 1.0. 45 Stable tag: 1.0.5 6 6 License: GPLv2 or later 7 7 -
floating-related-posts/trunk/floating-related-posts-pro.php
r2400795 r2402353 4 4 * Plugin URI: 5 5 * Description: Shows a floating banner with a list of related posts 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Author: Fransoft 8 8 * Text Domain: floating-related-posts-pro … … 14 14 15 15 16 define ('FRPOSTPRO_VERSION', '1.0. 4');16 define ('FRPOSTPRO_VERSION', '1.0.5'); 17 17 define ('FRPOSTPRO_DEF_PLUGIN_NAME', 'Floating Related Posts'); 18 18 define ('FRPOSTPRO_DEF_PLUGIN', 'floating-related-posts-pro'); … … 143 143 $settings['frpostpro-border-color'] = '#eae8e8'; 144 144 $settings['frpostpro-text-color'] = '#000000'; 145 $settings['frpostpro-font-size'] = 1 3;145 $settings['frpostpro-font-size'] = 14; 146 146 $settings['frpostpro-z-index'] = '9999'; 147 147 $settings['frpostpro-smartphone-position'] = 'bottom'; … … 281 281 wp_localize_script('frpostpro-front-script', 'frpostpro_js', $posts); 282 282 283 283 $readmore_visible = empty($settings['frpostpro-read-more']) ? 'none' : 'block'; 284 $readmore_size = max($settings['frpostpro-font-size'] - 2, 2); 284 285 $border_smartphone = $settings['frpostpro-smartphone-position'] == 'bottom' ? "border-top" : "border-bottom"; 285 286 … … 331 332 332 333 334 335 $line_height = $settings['frpostpro-font-size'] + 1; 336 $max_height = ($line_height * 3) + 1; 337 338 $content .= " .frpostpro-title { line-height: ".$line_height."px; max-height: ".$max_height."px;} \n"; 333 339 334 340 $content .= " .frpostpro-wrap { background-color: ".$settings['frpostpro-background-color']."; z-index: ".$settings['frpostpro-z-index']."; color: ".$settings['frpostpro-text-color']."; font-size: ".max($settings['frpostpro-font-size'], 5)."px; border: none; ".$border_smartphone.": solid 1px ".$settings['frpostpro-border-color']." } \n"; … … 337 343 338 344 $content .= " .frpostpro-text { background-color: ".$settings['frpostpro-background-color']."} \n"; 339 $content .= " .frpostpro-readmore { font-size: ".(max($settings['frpostpro-font-size'] - 2, 2))."px} \n";345 $content .= " .frpostpro-readmore { display:".$readmore_visible.";margin-top:2px; font-size: ".$readmore_size."px; line-height: ".$readmore_size."px} \n"; 340 346 $content .= "</style>"; 341 347 -
floating-related-posts/trunk/resources/css/floating-related-posts-pro-admin.css
r2398614 r2402353 40 40 top:2px; 41 41 right:4px; 42 opacity: 0.5; 42 43 } 43 44 -
floating-related-posts/trunk/resources/css/floating-related-posts-pro.css
r2400072 r2402353 27 27 left:145px; 28 28 height: 100%; 29 top:15px; 29 top:0px; 30 } 31 32 .frpostpro-text-center{ 33 position: absolute; 34 top:0px; 35 right: 0px; 36 width: 100%; 30 37 } 31 38 … … 39 46 .frpostpro-title { 40 47 font-weight: bold; 41 max-height: 3em;42 line-height: 1em;43 48 overflow: hidden; 44 49 } … … 49 54 right:4px; 50 55 cursor: pointer; 56 opacity: 0.5; 51 57 } 52 58 … … 84 90 85 91 to { 86 top: 15px;92 top: 0px; 87 93 } 88 94 } -
floating-related-posts/trunk/resources/js/floating-related-posts-pro.js
r2398614 r2402353 19 19 20 20 function showSlide() { 21 22 21 23 var img = $("<div class='frpostpro-img slidein-image'></div>"); 22 var text = $("<div class='frpostpro-text slidein-text'><div class='frpostpro-t itle'>"+frpostpro_js[counter].frpostpro_title+"</div><div class='frpostpro-readmore'>"+readMore+"</div></div>");24 var text = $("<div class='frpostpro-text slidein-text'><div class='frpostpro-text-center' id='frpostpro-slide-"+counter+"'><div class='frpostpro-title'>"+frpostpro_js[counter].frpostpro_title+"</div><div class='frpostpro-readmore'>"+readMore+"</div></div></div>"); 23 25 24 26 … … 27 29 } 28 30 29 img.css('background-size', 'cover');31 img.css('background-size', 'cover'); 30 32 text.css({'top':'160px'}); 31 33 … … 33 35 $('#frpostpro-click').append(img); 34 36 35 37 var slide = $('#frpostpro-slide-'+counter); 38 slide.css({'top':((80 - slide.height()) / 2) + 'px'}); 36 39 37 40 animationTimeout = setTimeout(function() {
Note: See TracChangeset
for help on using the changeset viewer.