Plugin Directory

Changeset 884544


Ignore:
Timestamp:
03/30/2014 09:41:35 AM (12 years ago)
Author:
aniketpant
Message:

Add informative messages to settings page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • instamojo/trunk/option.php

    r884496 r884544  
    6767      echo '<div class="update-nag"><p>You have already authenticated your account with us. If you wish to switch accounts then enter your details again.</p></div>';
    6868    }
     69    else
     70    {
     71      echo '<div class="error"><p>Please authenticate your account first before you use the Instamojo Widget.</p></div>';
     72    }
    6973    ?>
    7074    <div class="wrap">
     
    9498        </table>
    9599        <p class="submit">
    96           <input type="submit" name="submit" id="submit" class="button button-primary<?php if ($this->_options['auth_token']) echo '-disabled'; ?>" value="<?php _e('Authenticate'); ?>" />
     100          <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Authenticate'); ?>" />
    97101        </p>
    98102      </form>
     
    101105      <form method="post" action="" id="instamojo-token-revoke">
    102106        <p class="submit">
    103           <input type="submit" name="revoke" id="revoke-button" class="button button-secondary" value="<?php _e('Revoke Token'); ?>" />
     107          <input type="submit" name="revoke" id="revoke-button" class="button button-secondary" value="<?php _e('Revoke Token'); ?>" <?php if (!$this->_options['auth_token']) echo 'disabled'; ?> />
    104108        </p>
    105109      </form>
Note: See TracChangeset for help on using the changeset viewer.