| 1 |
<?php |
| 2 |
/* |
| 3 |
* Page Name: PRO Features |
| 4 |
*/ |
| 5 |
|
| 6 |
defined( 'ABSPATH' ) || exit; |
| 7 |
|
| 8 |
$features = [ |
| 9 |
[ |
| 10 |
'icon' => 'icon icon-template', |
| 11 |
'title' => __( 'Create Custom Templates', 'wp-coder' ), |
| 12 |
'desc' => __( 'Design unique templates for pages, posts, categories, and other content types. Infuse your custom HTML, CSS, or PHP to build layouts that perfectly match your brand and functionality goals.', 'wp-coder' ), |
| 13 |
], |
| 14 |
[ |
| 15 |
'icon' => 'icon icon-document', |
| 16 |
'title' => __( 'Create Page Templates', 'wp-coder' ), |
| 17 |
'desc' => __( 'Create custom page templates by name. Use them when editing pages to apply specific layouts or functionality.', 'wp-coder' ), |
| 18 |
], |
| 19 |
[ |
| 20 |
'icon' => 'icon icon-finger-snap', |
| 21 |
'title' => __( 'Enable QuickCode', 'wp-coder' ), |
| 22 |
'desc' => __( 'Use QuickCodes in your content or templates to dynamically insert values like object ID or site options.', 'wp-coder' ), |
| 23 |
], |
| 24 |
[ |
| 25 |
'icon' => 'dashicons dashicons-shortcode', |
| 26 |
'title' => __( 'Shortcode Attributes', 'wp-coder' ), |
| 27 |
'desc' => __( 'Add dynamic attributes to your shortcodes and use them directly in your HTML or PHP code. Perfect for creating flexible, reusable components that adapt to different content inputs.', 'wp-coder' ), |
| 28 |
], |
| 29 |
[ |
| 30 |
'icon' => 'icon icon-crosshair', |
| 31 |
'title' => __( 'Display Rules', 'wp-coder' ), |
| 32 |
'desc' => __( 'Choose where your code appears — target specific pages, posts, categories, or custom post types. Perfect for displaying code snippets only in the right context.', 'wp-coder' ), |
| 33 |
], |
| 34 |
|
| 35 |
[ |
| 36 |
'icon' => 'icon icon-meeting', |
| 37 |
'title' => __( 'User Roles', 'wp-coder' ), |
| 38 |
'desc' => __( 'Control visibility by user role. Display content only to subscribers, contributors, authors, editors, or administrators — or hide it from them.', 'wp-coder' ), |
| 39 |
], |
| 40 |
|
| 41 |
[ |
| 42 |
'icon' => 'icon icon-calendar', |
| 43 |
'title' => __( 'Schedule', 'wp-coder' ), |
| 44 |
'desc' => __( 'Set start and end times, weekdays, or exact date ranges. This makes it easy to show limited-time offers, seasonal content, or schedule maintenance notices.', 'wp-coder' ), |
| 45 |
], |
| 46 |
|
| 47 |
[ |
| 48 |
'icon' => 'icon icon-lock-portrait', |
| 49 |
'title' => __( 'Hide on Mobile', 'wp-coder' ), |
| 50 |
'desc' => __( 'Disable code on mobile devices. Useful for content or layouts that should appear only on desktop for optimal experience.', 'wp-coder' ), |
| 51 |
], |
| 52 |
|
| 53 |
[ |
| 54 |
'icon' => 'icon icon-pc', |
| 55 |
'title' => __( 'Hide on Desktop', 'wp-coder' ), |
| 56 |
'desc' => __( 'Hide your code on desktop and show only on mobile. Great for mobile-specific banners or simplified layouts.', 'wp-coder' ), |
| 57 |
], |
| 58 |
|
| 59 |
[ |
| 60 |
'icon' => 'icon icon-translation', |
| 61 |
'title' => __( 'By Language', 'wp-coder' ), |
| 62 |
'desc' => __( 'Display code based on the visitor’s browser language. Personalize your content for multilingual audiences without switching sites.', 'wp-coder' ), |
| 63 |
], |
| 64 |
|
| 65 |
[ |
| 66 |
'icon' => 'icon icon-browser-chrome', |
| 67 |
'title' => __( 'Hide in Browsers', 'wp-coder' ), |
| 68 |
'desc' => __( 'Exclude specific browsers from rendering your code. Useful for avoiding compatibility issues or browser-specific bugs.', 'wp-coder' ), |
| 69 |
], |
| 70 |
|
| 71 |
[ |
| 72 |
'icon' => 'icon icon-login', |
| 73 |
'title' => __( 'Enable Style and Script on Login Page', 'wp-coder' ), |
| 74 |
'desc' => __( 'Add custom CSS and JS to the WordPress login page to match your branding or add extra functionality.', 'wp-coder' ), |
| 75 |
], |
| 76 |
|
| 77 |
[ |
| 78 |
'icon' => 'icon icon-construction', |
| 79 |
'title' => __( 'Enable Maintenance Mode', 'wp-coder' ), |
| 80 |
'desc' => __( 'Display a clean maintenance page for visitors while logged-in admins continue working normally on the site.', 'wp-coder' ), |
| 81 |
], |
| 82 |
|
| 83 |
[ |
| 84 |
'icon' => 'icon icon-clear', |
| 85 |
'title' => __( 'Remove Enqueued Scripts & Styles', 'wp-coder' ), |
| 86 |
'desc' => __( 'Clean up your front end by removing unnecessary styles or scripts. Just enter the handle (ID) used in WordPress enqueue functions to stop them from loading. Perfect for performance tuning and avoiding conflicts.', 'wp-coder' ), |
| 87 |
], |
| 88 |
[ |
| 89 |
'icon' => 'icon icon-list', |
| 90 |
'title' => __( 'Register Menu', 'wp-coder' ), |
| 91 |
'desc' => __( 'Automatically register a WordPress menu if one isn’t already created. Great for fresh installations.', 'wp-coder' ), |
| 92 |
], |
| 93 |
|
| 94 |
]; |
| 95 |
|
| 96 |
?> |
| 97 |
|
| 98 |
|
| 99 |
<div class="wowp-pro"> |
| 100 |
<div class="wowp-fieldset__header"> |
| 101 |
<div class="wowp-fieldset__header-title"> |
| 102 |
Unlock More with WP Coder Pro 🚀 |
| 103 |
<p>Supercharge your development experience with advanced features and tools.</p> |
| 104 |
</div> |
| 105 |
|
| 106 |
<div class="wowp-fieldset__header-button"> |
| 107 |
<a href="https://wpcoder.pro/pricing/" target="_blank" class="wowp-button button button-dark">Get |
| 108 |
Pro</a> |
| 109 |
</div> |
| 110 |
</div> |
| 111 |
|
| 112 |
<div class="wowp-pro__features"> |
| 113 |
|
| 114 |
<?php foreach ( $features as $feature ) : ?> |
| 115 |
<div class="wowp-pro__feature"> |
| 116 |
<div class="wowp-pro-feature__icon"> |
| 117 |
<span class="<?php echo esc_attr( $feature['icon'] ); ?>"></span> |
| 118 |
</div> |
| 119 |
<div class="wowp-pro-feature__content"> |
| 120 |
<div class="wowp-pro-feature__title"> |
| 121 |
<?php echo esc_html( $feature['title'] ); ?> |
| 122 |
</div> |
| 123 |
<div class="wowp-pro-feature__desc"> |
| 124 |
<?php echo esc_html( $feature['desc'] ); ?> |
| 125 |
</div> |
| 126 |
</div> |
| 127 |
</div> |
| 128 |
<?php endforeach; ?> |
| 129 |
|
| 130 |
</div> |
| 131 |
|
| 132 |
</div> |
| 133 |
|
| 134 |
<?php |
| 135 |
|
| 136 |
|