Changeset 1331548
- Timestamp:
- 01/19/2016 07:40:44 PM (10 years ago)
- Location:
- typed/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
typed.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
typed/trunk/readme.txt
r1300897 r1331548 43 43 * Adding Blinking Effect to Cursor. 44 44 * Make the text wrape when it is too long. 45 46 = 1.1.0 = 47 * Adding option to select font family. -
typed/trunk/typed.php
r1300897 r1331548 3 3 Plugin Name: Typed 4 4 Description: Typed Plugin created based on "typed.js" a jQuery plugin that types. Enter in any string, and watch it type at the speed you've set, backspace what it's typed, and begin a new sentence for however many strings you've set. 5 Version: 1. 0.35 Version: 1.1.0 6 6 Author: zonnix 7 7 Author URI: http://zonnix.net … … 87 87 $strings = trim($strings, ','); 88 88 $font_size = get_post_meta($post_id, 'font_size', true); 89 $font_type = get_post_meta($post_id, 'font_type', true); 89 90 $color = get_post_meta($post_id, 'font_color', true); 90 91 $font_weight = get_post_meta($post_id, 'font_weight', true); … … 120 121 <?php if ($font_size): ?>font-size: <?php 121 122 echo $font_size . 'px;'; 123 endif; 124 ?> 125 <?php if ($font_type): ?>font-family: <?php 126 echo $font_type . ';'; 122 127 endif; 123 128 ?> … … 257 262 </tr> 258 263 <tr> 264 <td style="width: 15%;">Font Family</td> 265 <td> 266 <input type="text" placeholder='Helvetica,Arial,sans-serif' value="<?php echo get_post_meta($post_id, 'font_type', true); ?>" name="font_type"/> 267 </td> 268 </tr> 269 <tr> 259 270 <td style="width: 15%;">Font Weight</td> 260 271 <td> … … 309 320 if (isset($_POST['font_size'])) 310 321 update_post_meta($post_id, 'font_size', $_POST['font_size']); 322 323 if (isset($_POST['font_type'])) 324 update_post_meta($post_id, 'font_type', $_POST['font_type']); 311 325 312 326 if (isset($_POST['font_color'])) … … 376 390 if ($typed) : 377 391 $font_size = get_post_meta($post_id, 'font_size', true); 392 $font_type = get_post_meta($post_id, 'font_type', true); 378 393 $color = get_post_meta($post_id, 'font_color', true); 379 394 $font_weight = get_post_meta($post_id, 'font_weight', true); … … 394 409 <?php if ($font_size): ?>font-size: <?php 395 410 echo $font_size . 'px;'; 411 endif; 412 ?> 413 <?php if ($font_type): ?>font-family: <?php 414 echo $font_type . ';'; 396 415 endif; 397 416 ?>
Note: See TracChangeset
for help on using the changeset viewer.