文件操作 - settings.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/i2kplay/public_html/wp-content/plugins/woo-zoho/templates/settings.php
编辑文件内容
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <h3><?php esc_html_e('Zoho Accounts','woo-zoho'); ?> <a href="<?php echo esc_url($new_account); ?>" title="<?php esc_html_e('Add New Account','woo-zoho'); ?>" class="add-new-h2"><?php esc_html_e('Add New Account','woo-zoho'); ?></a> </h3> <p><?php echo sprintf(__("View ScreenShots for creating a Contact/Account/Lead and assign it to SalesOrder/Deal/Invoice. %sDocs on crmperks.com%s.",'woo-zoho'),'<a href="https://www.crmperks.com/post-data-from-wordpress-to-zoho/" class="help_tip" data-tip="'.__('Zoho Signup','woo-zoho').'" target="_blank">','</a>'); ?> </p> <table class="widefat fixed sort striped vx_accounts_table"> <thead> <tr> <th class="manage-column column-cb vx_pointer" style="width: 30px" ><?php esc_html_e("#",'woo-zoho'); ?> <i class="fa fa-caret-up"></i><i class="fa fa-caret-down"></i></th> <th class="manage-column vx_pointer"> <?php esc_html_e("Account",'woo-zoho'); ?> <i class="fa fa-caret-up"></i><i class="fa fa-caret-down"></i> </th> <th class="manage-column"> <?php esc_html_e("Status",'woo-zoho'); ?></th> <th class="manage-column vx_pointer"> <?php esc_html_e("Created",'woo-zoho'); ?> <i class="fa fa-caret-up"></i><i class="fa fa-caret-down"></i></th> <th class="manage-column vx_pointer"> <?php esc_html_e("Last Connection",'woo-zoho'); ?> <i class="fa fa-caret-up"></i><i class="fa fa-caret-down"></i></th> <th class="manage-column"> <?php esc_html_e("Action",'woo-zoho'); ?> </th> </tr> </thead> <tbody> <?php $nonce=wp_create_nonce("vx_nonce"); if(is_array($accounts) && count($accounts) > 0){ $sno=0; foreach($accounts as $id=>$v){ $sno++; $id=$v['id']; $icon= $v['status'] == "1" ? 'fa-check vx_green' : 'fa-times vx_red'; $icon_title= $v['status'] == "1" ? __('Connected','woo-zoho') : __('Disconnected','woo-zoho'); ?> <tr> <td><?php echo esc_attr($id) ?></td> <td> <?php echo esc_html($v['name']) ?></td> <td> <i class="fa <?php echo esc_html($icon) ?> help_tip" data-tip="<?php echo esc_html($icon_title) ?>"></i> </td> <td> <?php echo date('M-d-Y H:i:s', strtotime($v['time'])+$offset) ?> </td> <td> <?php echo date('M-d-Y H:i:s', strtotime($v['updated'])+$offset); ?> </td> <td><span class="row-actions visible"> <a href="<?php echo esc_url($link."&id=".$id) ?>" title="<?php esc_html_e('View/Edit','woo-zoho'); ?>"><?php if($v['status'] == "1"){ esc_html_e("View",'woo-zoho'); }else{ esc_html_e("Edit",'woo-zoho'); } ?></a> | <span class="delete"><a href="<?php echo esc_url($link.'&'.$this->id.'_tab_action=del_account&id='.$id.'&vx_nonce='.$nonce) ?>" class="vx_del_account" title="<?php esc_html_e("Delete",'woo-zoho'); ?>" > <?php esc_html_e("Delete",'woo-zoho'); ?> </a></span></span> </td> </tr> <?php } }else{ ?> <tr><td colspan="6"><p><?php echo sprintf(__("No Zoho Account Found. %sAdd New Account%s",'woo-zoho'),'<a href="'.esc_url($new_account).'">','</a>'); ?></p></td></tr> <?php } ?> </tbody> <tfoot> <tr> <th class="manage-column column-cb" style="width: 30px" ><?php esc_html_e("#",'woo-zoho'); ?></th> <th class="manage-column"> <?php esc_html_e("Account",'woo-zoho'); ?> </th> <th class="manage-column"> <?php esc_html_e("Status",'woo-zoho'); ?> </th> <th class="manage-column"> <?php esc_html_e("Created",'woo-zoho'); ?> </th> <th class="manage-column"> <?php esc_html_e("Last Connection",'woo-zoho'); ?> </th> <th class="manage-column"> <?php esc_html_e("Action",'woo-zoho'); ?> </th> </tr> </tfoot> </table> <div style="margin-top: 40px;"> <h3><?php esc_html_e('Optional Settings','woo-zoho'); ?></h3> <table class="form-table"> <tr> <th scope="row"><label for="vx_plugin_data"><?php esc_html_e("Plugin Data", 'woo-zoho'); ?></label> </th> <td> <label for="vx_plugin_data"><input type="checkbox" name="meta[plugin_data]" value="yes" <?php if($this->post('plugin_data',$meta) == "yes"){echo 'checked="checked"';} ?> id="vx_plugin_data"><?php esc_html_e('On deleting this plugin remove all of its data','woo-zoho'); ?></label> </td> </tr> <tr> <th scope="row"><label for="vx_plugin_logs"><?php esc_html_e('Zoho Logs', 'woo-zoho'); ?></label> </th> <td> <label for="vx_plugin_logs"><input type="checkbox" name="meta[disable_log]" value="yes" <?php if($this->post('disable_log',$meta) == "yes"){echo 'checked="checked"';} ?> id="vx_plugin_logs"><?php esc_html_e('Disable Storing Zoho Logs','woo-zoho'); ?></label> </td> </tr> <tr> <th><label for="update_meta"><?php esc_html_e("Update Order",'woo-zoho'); ?></label></th> <td><label for="update_meta"><input type="checkbox" id="update_meta" name="meta[update]" value="yes" <?php if($this->post('update',$meta) == "yes"){echo 'checked="checked"';} ?> ><?php esc_html_e("Send order data to Zoho when updated in WooCommerce",'woo-zoho'); ?></label></td> </tr> <tr> <th><label for="delete_meta"><?php esc_html_e("Trash Order",'woo-zoho'); ?></label></th> <td><label for="delete_meta"><input type="checkbox" id="delete_meta" name="meta[delete]" value="yes" <?php if($this->post('delete',$meta) == "yes"){echo 'checked="checked"';} ?> ><?php esc_html_e("Delete order data from Zoho when trashed from WooCommerce",'woo-zoho'); ?></label></td> </tr> <tr> <th><label for="restore_meta"><?php esc_html_e("Restore Order",'woo-zoho'); ?></label></th> <td><label for="restore_meta"><input type="checkbox" id="restore_meta" name="meta[restore]" value="yes" <?php if($this->post('restore',$meta) == "yes"){echo 'checked="checked"';} ?> ><?php esc_html_e("Restore order data in Zoho when restored in WooCommerce",'woo-zoho'); ?></label></td> </tr> <tr> <th><label for="notes_meta"><?php esc_html_e("Order Notes",'woo-zoho'); ?></label></th> <td><label for="notes_meta"><input type="checkbox" id="notes_meta" name="meta[notes]" value="yes" <?php if($this->post('notes',$meta) == "yes"){echo 'checked="checked"';} ?> ><?php esc_html_e("Add / Delete Notes to Zoho when added / deleted in WooCommerce",'woo-zoho'); ?></label></td> </tr> </table> <p class="submit_vx"> <button type="submit" value="save" class="button-primary" title="<?php esc_html_e('Save Changes','woo-zoho'); ?>" name="save"><?php esc_html_e('Save Changes','woo-zoho'); ?></button> <input type="hidden" name="vx_meta" value="1"> </p> </div> <script> jQuery(document).ready(function($){ $('.vx_accounts_table').tablesorter( {headers: { 2:{sorter: false}, 5:{sorter: false}}} ); $(".vx_del_account").click(function(e){ if(!confirm('<?php esc_html_e('Are you sure to delete Account ?','woo-zoho') ?>')){ e.preventDefault(); } }) }) </script>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件