| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die('Jog on!'); |
| 4 |
|
| 5 |
function sh_cd_help_page() { |
| 6 |
|
| 7 |
?> |
| 8 |
|
| 9 |
<div class="wrap ws-ls-admin-page"> |
| 10 |
|
| 11 |
<div id="icon-options-general" class="icon32"></div> |
| 12 |
|
| 13 |
<div id="poststuff"> |
| 14 |
|
| 15 |
<div id="post-body" class="metabox-holder columns-3"> |
| 16 |
|
| 17 |
<!-- main content --> |
| 18 |
<div id="post-body-content"> |
| 19 |
|
| 20 |
<div class="meta-box-sortables ui-sortable"> |
| 21 |
|
| 22 |
<div class="postbox"> |
| 23 |
<h3 class="postbox-header"> |
| 24 |
<span> |
| 25 |
<?php echo __( 'Custom modifications / web development', SH_CD_SLUG ); ?> |
| 26 |
</span> |
| 27 |
</h3> |
| 28 |
<div style="padding: 0px 15px 0px 15px"> |
| 29 |
<?php sh_cd_custom_notification_html(); ?> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
<div class="postbox"> |
| 33 |
<h3 class="postbox-header"> |
| 34 |
<span> |
| 35 |
<?php echo __( 'Documenation and Release notes', SH_CD_SLUG ); ?> |
| 36 |
</span> |
| 37 |
</h3> |
| 38 |
<div style="padding: 0px 15px 0px 15px"> |
| 39 |
<p><?php echo __( 'You can find detailed documentation for this plugin at our site:', SH_CD_SLUG ); ?></p> |
| 40 |
<p><a href="https://snippetshortcodes.yeken.uk/" rel="noopener noreferrer" class="button" target="_blank"><?php echo __( 'Main website', SH_CD_SLUG ); ?></a> |
| 41 |
<a href="https://yeken.gitbook.io/snippet-shortcodes" rel="noopener noreferrer" class="button" target="_blank"><?php echo __( 'View Documentation', SH_CD_SLUG ); ?></a> |
| 42 |
<a href="https://wordpress.org/plugins/shortcode-variables/#developers" class="button" rel="noopener noreferrer" target="_blank"><?php echo __( 'Release Notes', SH_CD_SLUG ); ?></a> |
| 43 |
</p> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
<div class="postbox"> |
| 47 |
<h3 class="postbox-header"> |
| 48 |
<span> |
| 49 |
<?php echo __( 'Contact', SH_CD_SLUG ); ?> |
| 50 |
</span> |
| 51 |
</h3> |
| 52 |
<div style="padding: 0px 15px 0px 15px"> |
| 53 |
<p>If you have any questions or bugs to report, then please contact us at <a href="mailto:email@yeken.uk">email@yeken.uk</a>.</p> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
<div class="postbox"> |
| 57 |
<h3 class="postbox-header"> |
| 58 |
<span> |
| 59 |
<?php echo __( 'Support Actions', SH_CD_SLUG ); ?> |
| 60 |
</span> |
| 61 |
</h3> |
| 62 |
<div style="padding: 0px 15px 0px 15px"> |
| 63 |
<p><?php echo __( 'Below are tools that may help you troubleshoot issues with your install:', SH_CD_SLUG ); ?></p> |
| 64 |
<?php |
| 65 |
$url = admin_url('admin.php?page=sh-cd-help&db-check=y' ); |
| 66 |
|
| 67 |
if ( false === empty( $_GET[ 'db-check' ] ) ) { |
| 68 |
sh_cd_create_database_table(); |
| 69 |
sh_cd_create_database_table_multisite(); |
| 70 |
echo __( '<p class="sh-cd-highlight-colour">Database tables have been checked and fixed if required.</p>', SH_CD_SLUG ); |
| 71 |
} |
| 72 |
?> |
| 73 |
<p> |
| 74 |
<a href="<?php echo esc_url($url); ?>" rel="noopener noreferrer" class="button" ><?php echo __( 'Check and fix database tables', SH_CD_SLUG ); ?></a> |
| 75 |
</p> |
| 76 |
</div> |
| 77 |
</div> |
| 78 |
|
| 79 |
</div> |
| 80 |
<!-- .meta-box-sortables .ui-sortable --> |
| 81 |
|
| 82 |
</div> |
| 83 |
<!-- post-body-content --> |
| 84 |
|
| 85 |
</div> |
| 86 |
<!-- #post-body .metabox-holder .columns-2 --> |
| 87 |
|
| 88 |
<br class="clear"> |
| 89 |
</div> |
| 90 |
<!-- #poststuff --> |
| 91 |
|
| 92 |
</div> <!-- .wrap --> |
| 93 |
<?php |
| 94 |
|
| 95 |
} |
| 96 |
|
| 97 |
/** |
| 98 |
* HTML for mention of custom work |
| 99 |
*/ |
| 100 |
function sh_cd_custom_notification_html() { |
| 101 |
?> |
| 102 |
|
| 103 |
<p><img src="<?php echo plugins_url( 'assets/images/yeken-logo.png', __FILE__ ); ?>" width="100" height="100" style="margin-right:20px" align="left" /><?php echo __( 'If you need changes to Snippet Shortcodes, a custom plugin built, or help from a developer for your website, feel free to get in touch!', SH_CD_SLUG ); ?></p> |
| 104 |
<p><strong><?php echo __( 'We provide fixed priced quotes.', SH_CD_SLUG ); ?></strong></p> |
| 105 |
<p><a href="https://www.yeken.uk" rel="noopener noreferrer" target="_blank">YeKen.uk</a> / |
| 106 |
<a href="https://profiles.wordpress.org/aliakro" rel="noopener noreferrer" target="_blank">WordPress Profile</a> / |
| 107 |
<a href="mailto:email@yeken.uk" >email@yeken.uk</a></p> |
| 108 |
<br clear="both"/> |
| 109 |
<?php |
| 110 |
} |
| 111 |
|
| 112 |
|