WordPress.org

Plugin Directory

Changeset 615225


Ignore:
Timestamp:
10/21/12 12:59:51 (18 months ago)
Author:
M66B
Message:

1.167 dev subscribe button settings

Location:
add-link-to-facebook
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • add-link-to-facebook/tags/1.166/readme.txt

    r615192 r615225  
    784784 
    785785= Development version = 
    786 * New feature: shortcode/template tag/widget for Facebook subscribe button 
     786* New feature: widget/shortcode/template tag for Facebook subscribe button 
    787787 
    788788Follow these steps to install the development version: 
  • add-link-to-facebook/trunk/add-link-to-facebook-admin.php

    r611811 r615225  
    9494    $like_color_light = ($like_color == 'light' ? ' checked' : ''); 
    9595    $like_color_dark = ($like_color == 'dark' ? ' checked' : ''); 
     96 
     97    // Subscribe button 
     98    $subscribe_layout = get_user_meta($user_ID, c_al2fb_meta_subscribe_layout, true); 
    9699 
    97100    // Comment link option 
     
    335338        <li><a href="#al2fb_tab_like_button"><?php _e('Like button', c_al2fb_text_domain); ?></a></li> 
    336339        <li><a href="#al2fb_tab_like_box"><?php _e('Like box', c_al2fb_text_domain); ?></a></li> 
     340        <li><a href="#al2fb_tab_subscribe_button"><?php _e('Subscribe button', c_al2fb_text_domain); ?></a></li> 
    337341        <li><a href="#al2fb_tab_comments_plugin"><?php _e('Comments plugin', c_al2fb_text_domain); ?></a></li> 
    338342        <li><a href="#al2fb_tab_face_pile"><?php _e('Face pile', c_al2fb_text_domain); ?></a></li> 
     
    871875    </div> 
    872876 
     877    <div id="al2fb_tab_subscribe_button" class="al2fb_tab_content"> 
     878    <h4><?php _e('Subscribe button', c_al2fb_text_domain); ?></h4> 
     879    <table class="form-table al2fb_border"> 
     880 
     881    <tr valign="top"><th scope="row"> 
     882        <label for="al2fb_subscribe_layout"><?php _e('Layout:', c_al2fb_text_domain); ?></label> 
     883    </th><td> 
     884        <select class="al2fb_select" id="al2fb_subscribe_layout" name="<?php echo c_al2fb_meta_subscribe_layout; ?>"> 
     885        <option value="standard" <?php echo $subscribe_layout == 'standard' ? 'selected' : ''; ?>><?php _e('Standard', c_al2fb_text_domain); ?></option> 
     886        <option value="button_count" <?php echo $subscribe_layout == 'button_count' ? 'selected' : ''; ?>><?php _e('Button with count', c_al2fb_text_domain); ?></option> 
     887        <option value="box_count" <?php echo $subscribe_layout == 'box_count' ? 'selected' : ''; ?>><?php _e('Box with count', c_al2fb_text_domain); ?></option> 
     888        </select> 
     889    </td></tr> 
     890 
     891    <tr valign="top"><th scope="row"> 
     892        <label for="al2fb_subscribe_width"><?php _e('Width:', c_al2fb_text_domain); ?></label> 
     893    </th><td> 
     894        <input class="al2fb_numeric" id="al2fb_subscribe_width" name="<?php echo c_al2fb_meta_subscribe_width; ?>" type="text" value="<?php echo get_user_meta($user_ID, c_al2fb_meta_subscribe_width, true); ?>" /> 
     895        <span><?php _e('Pixels', c_al2fb_text_domain); ?></span> 
     896    </td></tr> 
     897 
     898    </table> 
     899    <p class="submit"> 
     900    <input type="submit" class="button-primary" value="<?php _e('Save', c_al2fb_text_domain) ?>" /> 
     901    </p> 
     902    </div> 
     903 
    873904    <div id="al2fb_tab_comments_plugin" class="al2fb_tab_content"> 
    874905    <h4><?php _e('Facebook comments plugin', c_al2fb_text_domain); ?></h4> 
  • add-link-to-facebook/trunk/add-link-to-facebook-class.php

    r615192 r615225  
    507507            update_user_meta($user_ID, c_al2fb_meta_like_box_noheader, $_POST[c_al2fb_meta_like_box_noheader]); 
    508508            update_user_meta($user_ID, c_al2fb_meta_like_box_nostream, $_POST[c_al2fb_meta_like_box_nostream]); 
     509            update_user_meta($user_ID, c_al2fb_meta_subscribe_layout, $_POST[c_al2fb_meta_subscribe_layout]); 
     510            update_user_meta($user_ID, c_al2fb_meta_subscribe_width, $_POST[c_al2fb_meta_subscribe_width]); 
    509511            update_user_meta($user_ID, c_al2fb_meta_comments_posts, $_POST[c_al2fb_meta_comments_posts]); 
    510512            update_user_meta($user_ID, c_al2fb_meta_comments_width, $_POST[c_al2fb_meta_comments_width]); 
  • add-link-to-facebook/trunk/add-link-to-facebook-const.php

    r611811 r615225  
    116116define('c_al2fb_meta_like_box_noheader', 'al2fb_box_noheader'); 
    117117define('c_al2fb_meta_like_box_nostream', 'al2fb_box_nostream'); 
     118define('c_al2fb_meta_subscribe_layout', 'al2fb_subscribe_layout'); 
     119define('c_al2fb_meta_subscribe_width', 'al2fb_subscribe_width'); 
    118120define('c_al2fb_meta_comments_posts', 'al2fb_comments_posts'); 
    119121define('c_al2fb_meta_comments_width', 'al2fb_comments_width'); 
  • add-link-to-facebook/trunk/add-link-to-facebook-int.php

    r615192 r615225  
    12761276                $colorscheme = get_user_meta($user_ID, c_al2fb_meta_like_colorscheme, true); 
    12771277                $faces = get_user_meta($user_ID, c_al2fb_meta_like_faces, true); 
    1278                 $layout = ''; 
    1279                 $width = ''; 
     1278                $layout = get_user_meta($user_ID, c_al2fb_meta_subscribe_layout, true); 
     1279                $width = get_user_meta($user_ID, c_al2fb_meta_subscribe_width, true); 
    12801280 
    12811281                // Get link 
  • add-link-to-facebook/trunk/language/add-link-to-facebook-nl_BE.po

    r615192 r615225  
    99"Content-Type: text/plain; charset=UTF-8\n" 
    1010"Content-Transfer-Encoding: 8bit\n" 
    11 "PO-Revision-Date: 2012-10-21 12:41+0100\n" 
     11"PO-Revision-Date: 2012-10-21 14:53+0100\n" 
    1212"Last-Translator: Marcel Bokhorst\n" 
    1313"Language-Team: Marcel Bokhorst\n" 
     
    10441044msgstr "Toon Facebook abonneren knop" 
    10451045 
     1046msgid "Subscribe button" 
     1047msgstr "Abonneren knop" 
     1048 
  • add-link-to-facebook/trunk/language/add-link-to-facebook-nl_NL.po

    r615192 r615225  
    99"Content-Type: text/plain; charset=UTF-8\n" 
    1010"Content-Transfer-Encoding: 8bit\n" 
    11 "PO-Revision-Date: 2012-10-21 12:41+0100\n" 
     11"PO-Revision-Date: 2012-10-21 14:53+0100\n" 
    1212"Last-Translator: Marcel Bokhorst\n" 
    1313"Language-Team: Marcel Bokhorst\n" 
     
    10441044msgstr "Toon Facebook abonneren knop" 
    10451045 
     1046msgid "Subscribe button" 
     1047msgstr "Abonneren knop" 
     1048 
  • add-link-to-facebook/trunk/readme.txt

    r615192 r615225  
    784784 
    785785= Development version = 
    786 * New feature: shortcode/template tag/widget for Facebook subscribe button 
     786* New feature: widget/shortcode/template tag for Facebook subscribe button 
    787787 
    788788Follow these steps to install the development version: 
Note: See TracChangeset for help on using the changeset viewer.