Plugin Directory

Changeset 1331548


Ignore:
Timestamp:
01/19/2016 07:40:44 PM (10 years ago)
Author:
zonnix
Message:

push version 1.1.0

Location:
typed/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • typed/trunk/readme.txt

    r1300897 r1331548  
    4343* Adding Blinking Effect to Cursor.
    4444* 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  
    33  Plugin Name: Typed
    44  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.3
     5  Version: 1.1.0
    66  Author: zonnix
    77  Author URI: http://zonnix.net
     
    8787            $strings = trim($strings, ',');
    8888            $font_size = get_post_meta($post_id, 'font_size', true);
     89            $font_type = get_post_meta($post_id, 'font_type', true);
    8990            $color = get_post_meta($post_id, 'font_color', true);
    9091            $font_weight = get_post_meta($post_id, 'font_weight', true);
     
    120121                    <?php if ($font_size): ?>font-size: <?php
    121122                        echo $font_size . 'px;';
     123                    endif;
     124                    ?>
     125                     <?php if ($font_type): ?>font-family: <?php
     126                        echo $font_type . ';';
    122127                    endif;
    123128                    ?>
     
    257262                    </tr>
    258263                    <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>
    259270                        <td style="width: 15%;">Font Weight</td>
    260271                        <td>
     
    309320                if (isset($_POST['font_size']))
    310321                    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']);
    311325
    312326                if (isset($_POST['font_color']))
     
    376390                if ($typed) :
    377391                    $font_size = get_post_meta($post_id, 'font_size', true);
     392                    $font_type = get_post_meta($post_id, 'font_type', true);
    378393                    $color = get_post_meta($post_id, 'font_color', true);
    379394                    $font_weight = get_post_meta($post_id, 'font_weight', true);
     
    394409                            <?php if ($font_size): ?>font-size: <?php
    395410                                echo $font_size . 'px;';
     411                            endif;
     412                            ?>
     413                            <?php if ($font_type): ?>font-family: <?php
     414                                echo $font_type . ';';
    396415                            endif;
    397416                            ?>
Note: See TracChangeset for help on using the changeset viewer.