Plugin Directory

Changeset 1333328


Ignore:
Timestamp:
01/22/2016 01:46:09 AM (10 years ago)
Author:
imforza
Message:

1.4.6

  • Added option to disable imFORZA support popup
Location:
imforza-news/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • imforza-news/trunk/admin/dashboard.php

    r1333226 r1333328  
    202202    $current_user = wp_get_current_user();
    203203
    204     if ( $current_user->user_login !== 'imforza-dev') {
     204    if ( get_the_author_meta( 'imforza_support_popup', $current_user->ID ) == 1 ){
    205205    ?>
    206206
     
    211211
    212212    <?php
     213    } else {
     214
    213215    }
    214216}
  • imforza-news/trunk/admin/users.php

    r1303359 r1333328  
    108108        </tr>
    109109
     110
     111
     112        <tr>
     113            <th><label for="tracking">Enable Support Feature</label></th>
     114
     115            <td>
     116
     117                <select id="imforza_support_popup" name="imforza_support_popup" placeholder="Select">
     118                      <option value="0" <?php if ( get_the_author_meta( 'imforza_support_popup', $user->ID ) == 0 ){ echo 'selected="selected"'; } ?>>No</option>
     119                      <option value="1" <?php if ( get_the_author_meta( 'imforza_support_popup', $user->ID ) == 1 ){ echo 'selected="selected"'; } ?>>Yes</option>
     120                </select>
     121                <br />
     122                <p class="description">When enabled a small pop-up appears in the bottom of your WordPress Admin Control Panel. This popup provides quick access to imFORZA Knowledgebase and Support.</p>
     123            </td>
     124        </tr>
     125
     126
    110127    </table>
    111128<?php }
     
    121138        return false;
    122139
     140
    123141    update_user_meta( $user_id, 'imforza_tracking', $_POST['imforza_tracking'] );
     142    update_user_meta( $user_id, 'imforza_support_popup', $_POST['imforza_support_popup'] );
    124143}
    125144
  • imforza-news/trunk/imforza.php

    r1333226 r1333328  
    22/*
    33Plugin Name: imFORZA
    4 Version: 1.4.5
     4Version: 1.4.6
    55Plugin URI: //www.imforza.com#utm_source=wpadmin&utm_medium=plugin&utm_campaign=imforzanewsplugin
    66Description: imFORZA is a Web Design and Marketing company based out of El Segundo, CA. Get quick access to imFORZA Support and the latest marketing news.
     
    1515
    1616// Define Plugin Version
    17 define( 'IMFORZA_PLUGIN_VERSION', '1.4.5' );
     17define( 'IMFORZA_PLUGIN_VERSION', '1.4.6' );
    1818
    1919
     
    5858function imforza_activation() {
    5959
    60     update_option( 'imforza', array('version' => '1.4.5'));
     60    update_option( 'imforza', array('version' => '1.4.6'));
    6161
    6262    flush_rewrite_rules();
  • imforza-news/trunk/readme.txt

    r1333226 r1333328  
    55Requires at least: 4.0
    66Tested up to: 4.4
    7 Stable tag: 1.4.2
     7Stable tag: 1.4.6
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2121
    2222== Changelog ==
     23
     24= 1.4.6 =
     25* Added user option to disable imforza support popup
    2326
    2427= 1.4.5 =
Note: See TracChangeset for help on using the changeset viewer.