function display() { $data = tpnf_plugin_data(); ?> <div class="error"> <h1><?php echo $data['Name']; ?> </h1> <p><?php echo $this->error; ?> </p> </div> <?php }
function tpnf_uninstalled() { $data = tpnf_plugin_data(); $delay = BE_MCH_TPNF_VARS::$activation->diff(new DateTime()); ?> <div class="updated tpnf-msg"> <h1><?php echo $data['Name']; ?> </h1> <p> Hey, is this plugin meeting your needs? </p> <p> Please tell us about it on the official Wordpress website. <br/> <a href="https://wordpress.org/support/view/plugin-reviews/this-page-needs-files#postform" data-dismiss="<?php echo add_query_arg('tpnf-action-dismiss', 'true'); ?> " target="_blank">Give us feedback</a>. <br/> </p> <p> Not in the mood to give us a bit of feedback? <br/> <a href="<?php echo add_query_arg('tpnf-action-dismiss', 'true'); ?> ">Dismiss this message</a> </p> <p> Thank for having used <strong><?php echo $data['Name']; ?> </strong> for <?php echo $delay->format('%a'); ?> days. We'll keep working to improve it. </p> </div> <?php }