WordPress.org

Plugin Directory

Changeset 731478


Ignore:
Timestamp:
06/25/13 12:13:57 (10 months ago)
Author:
donncha
Message:

Added "linked to account" message on "add poll" popup if user is an admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • polldaddy/trunk/polldaddy.php

    r730840 r731478  
    12681268                    printf( __( 'Polldaddy Polls <a href="%s" class="add-new-h2">Add New</a>', 'polldaddy' ), esc_url( add_query_arg( array( 'action' => 'create-poll', 'poll' => false, 'message' => false ) ) ) ); 
    12691269                else 
    1270                     _e( 'Polldaddy Polls ', 'polldaddy' ); ?></h2> 
    1271  
    1272                 <?php 
     1270                    _e( 'Polldaddy Polls ', 'polldaddy' ); 
     1271        ?></h2><?php 
     1272                $polldaddy = $this->get_client( WP_POLLDADDY__PARTNERGUID, $this->user_code ); 
     1273                $account = $polldaddy->get_account(); 
     1274                if ( !empty( $account ) ) 
     1275                    $account_email = esc_attr( $account->email ); 
     1276                if ( isset( $account_email ) && current_user_can( 'manage_options' ) ) { 
     1277                    echo "<p>" . sprintf( __( 'Linked to Polldaddy Account: <strong>%s</strong> (<a target="_blank" href="options-general.php?page=polls&action=options">Settings</a> / <a target="_blank" href="http://polldaddy.com/dashboard/">Polldaddy.com</a>)', 'polldaddy' ), $account_email ) . "</p>"; 
     1278                } 
    12731279 
    12741280                if ( !isset( $_GET['view'] ) ) 
Note: See TracChangeset for help on using the changeset viewer.