Plugin Directory

Changeset 2477051


Ignore:
Timestamp:
02/18/2021 12:57:45 PM (5 years ago)
Author:
dothattask
Message:

18022021 email verify during plugin installation

Location:
do-that-task
Files:
137 added
3 edited

Legend:

Unmodified
Added
Removed
  • do-that-task/trunk/index.php

    r2420788 r2477051  
    55 * Plugin URI:
    66 * Description: DoThatTask enables you to get all your tasks done conveniently without ever leaving your admin panel.
    7  * Version: 1.5.1
     7 * Version: 1.5.2
    88 * Perfix: DTT
    99 * Slug: do-that-task
  • do-that-task/trunk/readme.txt

    r2428517 r2477051  
    218218== Changelog ==
    219219
     220= 1.5.2 =
     221* Email Verify when client is use the plugin first time.
     222
    220223= 1.5.1 =
    221224* Add Personal info tab under setting page and give option to add admin login url.
     
    400403== Upgrade Notice ==
    401404
     405= 1.5.2 =
     406Email Verify when client is use the plugin first time.
     407
    402408= 1.5.1 =
    403409Add Personal info tab under setting page and give option to add admin login url.
  • do-that-task/trunk/template/plugin_details.php

    r2408223 r2477051  
    2020    exit;
    2121}
     22$notVerify = false;
    2223//At initial stage we get plugin detail that is exist on APP or primary email exist or not
    2324if(!get_option(DTT_PLUGIN_INIT,false)){
     
    3637        $dttTaskFunObj->addOption(DTT_ACTIVATION_ERROR_TYPE, trim($response['error_type']));
    3738    }
    38    
     39    $notVerify = isset($response['notVerify'])?$response['notVerify']:false;
    3940    $version = !empty($response['plugin_minimum_version'])?$response['plugin_minimum_version']:DTT_VERSION;
    4041    $dttTaskFunObj->addOption(DTT_PLUGIN_MINIMUM_VERSION,$version);
     
    259260        <div class="tab-control appSetting">
    260261            <?php if(!get_option(DTT_PLUGIN_EMAIL_VERIFY_CODE,false)):?>
    261             <h4><?= __("We couldn't figure out the right account for this site, please choose from the following:",DTT_TEXT_DOMAIN);?></h4>
     262            <h4><?= __("DoThatTask will use your email to send you tasks updates, new community suggestions for your site and more, please provide a valid email address and validate that.",DTT_TEXT_DOMAIN);?></h4>
    262263            <form action="" method="post" enctype="multipart/form-data" autocomplete="off" class="dtt_plugin_activate">
    263264                <?php wp_nonce_field( 'dtt_nonce_action', 'dtt_nonce_field' ); ?>
     
    274275                                    <label for="option_email" class=""> <?php echo $aEmail['option_email'];?> </label> <span style="color: #999;font-size: 12px;">
    275276                                        <?php echo (!empty($pluginActivation['none']) && in_array($aEmail['option_email'],$pluginActivation['none'])?'('.__('This email is registered on APP.').')':''); ?>
     277                                        <?php echo !$notVerify && ((!empty($previousSelected) && $previousSelected['option']=='option_email') || (!empty($pluginActivation) && $pluginActivation['none']!=$aEmail['option_email'] && $aEmail['option_email']==array_search($currentDomain,$pluginActivation['data']))) && (empty($pluginActivation['none']) || (!empty($pluginActivation['none']) && !in_array($aEmail['option_email'],$pluginActivation['none'])))?'('.__('This email is associated with the domain').')':'';?>
    276278                                    </span><br/><br/>
    277279                                    <?php if($aEmail['user_email']!=$aEmail['option_email']):?>
    278280                                        <input type="radio" name="user_email" id="user_email" value="user_email" class="mr-1 disableText"
    279281                                        <?php echo !empty($previousSelected) && $previousSelected['option']=='user_email'?'checked="checked"':(!empty($pluginActivation) && $pluginActivation['none']!=$aEmail['user_email'] && $aEmail['user_email']==array_search($currentDomain,$pluginActivation['data'])?'checked="checked"':'');?> <?php echo !empty($pluginActivation['none']) && in_array($aEmail['user_email'],$pluginActivation['none'])?'disabled="disabled"':''?>> 
    280                                         <label for="user_email"><?php echo $aEmail['user_email'];?></label>  <span style="color: #999;font-size: 12px;"><?php echo (!empty($pluginActivation['none']) && in_array($aEmail['user_email'],$pluginActivation['none'])?'('.__('This email is registered on APP').')':'');?></span><br/><br/>
     282                                        <label for="user_email"><?php echo $aEmail['user_email'];?></label>  <span style="color: #999;font-size: 12px;"><?php echo (!empty($pluginActivation['none']) && in_array($aEmail['user_email'],$pluginActivation['none'])?'('.__('This email is registered on APP').')':'');?><?php echo !$notVerify && ((!empty($previousSelected) && $previousSelected['option']=='user_email') || (!empty($pluginActivation) && $pluginActivation['none']!=$aEmail['user_email'] && $aEmail['user_email']==array_search($currentDomain,$pluginActivation['data']))) && (empty($pluginActivation['none']) || (!empty($pluginActivation['none']) && !in_array($aEmail['user_email'],$pluginActivation['none'])))?'('.__('This email is associated with the domain').')':'';?>
     283                                        </span><br/><br/>
    281284                                    <?php endif;?>
    282285                                    <?php if(isset($aEmail['exist_email']) && !empty($aEmail['exist_email']) && !is_array($aEmail['exist_email'])):?>
Note: See TracChangeset for help on using the changeset viewer.