acf.php
2 months ago
alignment.php
2 months ago
animation.php
2 months ago
beaver_builder.php
2 months ago
cache.php
2 months ago
classes.php
2 months ago
classic-widgets-screen.php
2 months ago
clone.php
2 months ago
columns.php
2 months ago
custom-sidebar.php
2 months ago
dates.php
2 months ago
devices.php
2 months ago
disable_widgets.php
2 months ago
elementor.php
2 months ago
fixed.php
2 months ago
import-export.php
2 months ago
links.php
2 months ago
logic.php
2 months ago
move.php
2 months ago
page-and-post-block.php
2 months ago
permission.php
2 months ago
roles.php
2 months ago
search.php
2 months ago
shortcodes.php
2 months ago
sidebar-more_plugins.php
2 months ago
sidebar-opt_in.php
2 months ago
sidebar-support_box.php
2 months ago
sidebar-upsell_pro.php
2 months ago
siteorigin.php
2 months ago
sliding.php
2 months ago
state.php
2 months ago
styling.php
2 months ago
taxonomies.php
2 months ago
title.php
2 months ago
urls.php
2 months ago
visibility.php
2 months ago
widget-area.php
2 months ago
sidebar-support_box.php
103 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Support Sidebar Metabox |
| 5 | * Settings > Widget Options |
| 6 | * |
| 7 | * @copyright Copyright (c) 2016, Jeffrey Carandang |
| 8 | * @since 4.0 |
| 9 | */ |
| 10 | |
| 11 | // Exit if accessed directly |
| 12 | if (!defined('ABSPATH')) exit; |
| 13 | |
| 14 | /** |
| 15 | * Create Metabox for Support |
| 16 | * |
| 17 | * @since 4.0 |
| 18 | * @return void |
| 19 | */ |
| 20 | if (!function_exists('widgetopts_settings_support_box')) : |
| 21 | function widgetopts_settings_support_box() |
| 22 | { ?> |
| 23 | <div id="widgetopts-sidebar-widget-support" class="postbox widgetopts-sidebar-widget"> |
| 24 | <h3 class="hndle ui-sortable-handle"><span><?php _e('Need Help on Managing Widgets?', 'widget-options'); ?></span></h3> |
| 25 | <div class="inside"> |
| 26 | <p> |
| 27 | <?php _e('Since you are using the free version, you can get the free support on WordPress.org community forums. Thanks!', 'widget-options'); ?> |
| 28 | </p> |
| 29 | <p> |
| 30 | <a class="button-secondary" href="https://widget-options.com/contact/" target="_blank"><?php _e('Get Free Support', 'widget-options'); ?></a> |
| 31 | </p> |
| 32 | <p> |
| 33 | <?php _e('Manage your widgets better and get fast professional support by upgrading to Widget Options Extended.', 'widget-options'); ?> |
| 34 | </p> |
| 35 | <p> |
| 36 | <a class="button-secondary" href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE) . '?utm_source=wordpressadmin&utm_medium=widget&utm_campaign=widgetoptsprocta'); ?>" target="_blank"><?php _e('Get Widget Options Extended', 'widget-options'); ?></a> |
| 37 | </p> |
| 38 | <!--<p> |
| 39 | <?php //_e( 'You can also join our community via Facebook Group.', 'widget-options' ); |
| 40 | ?> |
| 41 | </p> |
| 42 | <p> |
| 43 | <a class="button-secondary" href="https://www.facebook.com/groups/WPwidgets/" target="_blank"><?php //_e( 'Join Facebook Group', 'widget-options' ); |
| 44 | ?></a> |
| 45 | </p>--> |
| 46 | </div> |
| 47 | </div> |
| 48 | |
| 49 | <?php |
| 50 | } |
| 51 | add_action('widgetopts_module_sidebar', 'widgetopts_settings_support_box', 30); |
| 52 | endif; |
| 53 | |
| 54 | /** |
| 55 | * Create Metabox for recommendation |
| 56 | * |
| 57 | * @since 5.1.0 |
| 58 | * @return void |
| 59 | */ |
| 60 | |
| 61 | function widgetopts_settings_reco_box() |
| 62 | { |
| 63 | $link_icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" class="linkIcon"><path d="M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"></path></svg>'; |
| 64 | ?> |
| 65 | <div id="widgetopts-sidebar-widget-reco" class="postbox widgetopts-sidebar-widget"> |
| 66 | <h3 class="hndle ui-sortable-handle"><span><?php _e('Recommended Plugins', 'widget-options'); ?></span></h3> |
| 67 | <div class="inside"> |
| 68 | <p> |
| 69 | <?php _e('Check out some of our other plugins + a few extra that we love using!', 'widget-options'); ?> |
| 70 | </p> |
| 71 | <?php $login_wp_url = "https://loginwp.com/ref/11/"; ?> |
| 72 | <p> |
| 73 | <?php echo sprintf( |
| 74 | esc_html__('%sLoginWP%s #1 WordPress User Redirection Plugin. Redirect users to different URLs after they log in, log out and register based on different', 'widget-options'), |
| 75 | '<a class="widgetopts-link" href="' . $login_wp_url . '" target="_blank" style="margin-bottom: 5px;">', |
| 76 | $link_icon . '</a>' |
| 77 | ); ?> |
| 78 | </p> |
| 79 | |
| 80 | <?php $wpdiscussion_url = "https://wpdiscussionboard.com/ref/6/"; ?> |
| 81 | <p> |
| 82 | <?php echo sprintf( |
| 83 | esc_html__('%sWP Discussion Board%s An easy way to add a discussion board, message board or simple forum to your WordPress site with user profiles, boards, topics, notifications & more!', 'widget-options'), |
| 84 | '<a class="widgetopts-link" href="' . $wpdiscussion_url . '" target="_blank" style="margin-bottom: 5px;">', |
| 85 | $link_icon . '</a>' |
| 86 | ); ?> |
| 87 | </p> |
| 88 | |
| 89 | <?php $fusewp_url = "https://fusewp.com/?sscid=81k7_pja98"; ?> |
| 90 | <p> |
| 91 | <?php echo sprintf( |
| 92 | esc_html__('%sFuseWP%s Automatically Sync WordPress Users, customers, and members in ecommerce and membership plugins with your CRM and Email Marketing software.', 'widget-options'), |
| 93 | '<a class="widgetopts-link" href="' . $fusewp_url . '" target="_blank" style="margin-bottom: 5px;">', |
| 94 | $link_icon . '</a>' |
| 95 | ); ?> |
| 96 | </p> |
| 97 | |
| 98 | </div> |
| 99 | </div> |
| 100 | <?php |
| 101 | } |
| 102 | add_action('widgetopts_module_sidebar', 'widgetopts_settings_reco_box', 32); |
| 103 | ?> |