| @@ -1,201 +1,201 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * The file contains a short help info. | |
| 4 | - * | |
| 5 | - * @author Alex Kovalev <alex.kovalevv@gmail.com> | |
| 6 | - * @since 1.0.0 | |
| 7 | - * @package core | |
| 8 | - * @copyright (c) 2018, OnePress Ltd | |
| 9 | - * | |
| 10 | - */ | |
| 11 | - | |
| 12 | -// Exit if accessed directly | |
| 13 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | - exit; | |
| 15 | -} | |
| 16 | - | |
| 17 | -/** | |
| 18 | - * Common Settings | |
| 19 | - */ | |
| 20 | -class WINP_AboutPage extends WINP_Page { | |
| 21 | - | |
| 22 | - /** | |
| 23 | - * @param Wbcr_Factory456_Plugin $plugin | |
| 24 | - */ | |
| 25 | - public function __construct( Wbcr_Factory456_Plugin $plugin ) { | |
| 26 | - $this->menu_post_type = WINP_SNIPPETS_POST_TYPE; | |
| 27 | - | |
| 28 | - $this->id = "about"; | |
| 29 | - $this->menu_title = __( 'About', 'insert-php' ); | |
| 30 | - | |
| 31 | - parent::__construct( $plugin ); | |
| 32 | - | |
| 33 | - $this->plugin = $plugin; | |
| 34 | - } | |
| 35 | - | |
| 36 | - public function indexAction() { | |
| 37 | - global $wp_version; | |
| 38 | - | |
| 39 | - ?> | |
| 40 | - <div class="wrap about-wrap full-width-layout" id="wbcr-inp-about"> | |
| 41 | - <!-- News Title !--> | |
| 42 | - <h1>Welcome to Woody Code Snippets <?php echo $this->plugin->getPluginVersion() ?></h1> | |
| 43 | - <!-- News Subtext !--> | |
| 44 | - <div class="about-text"> | |
| 45 | - Thanks for upgrading! Many new features and improvements are available that you will enjoy. | |
| 46 | - </div> | |
| 47 | - <!-- Settings Tabs --> | |
| 48 | - <h2 class="nav-tab-wrapper" id="wbcr-inp-tab-nav"> | |
| 49 | - <a href="<?php echo $this->getActionUrl( 'index' ); ?>" class="nav-tab"><?php _e( 'What’s New', 'insert-php' ); ?></a> | |
| 50 | - <a href="<?php echo WINP_Plugin::app()->get_support()->get_docs_url( true, 'about' ) ?>" target="_blank" class="nav-tab"><?php _e( 'Documentation', 'insert-php' ); ?></a> | |
| 51 | - </h2> | |
| 52 | - <!-- Latest News !--> | |
| 53 | - <div id="wbcr-inp-news-tab"> | |
| 54 | - <div class="headline"> | |
| 55 | - <h3 class="headline-title">PHP snippets (Insert php) Evolution to Woody Code Snippets</h3> | |
| 56 | - <div class="featured-image"> | |
| 57 | - <img src="https://woodysnippet.com/images/about/change-plugin-name.jpg" alt=""> | |
| 58 | - </div> | |
| 59 | - <p class="introduction">If you are a long-term user of the <code>Insert php 1.3.0</code> plugin, you may | |
| 60 | - be confused | |
| 61 | - about the new plugin’s name and branding. We will try to clear this out for you.</p> | |
| 62 | - <p>The way how WordPress editor handled PHP code from <code>Insert php</code> before was incorrect and | |
| 63 | - unsafe. We | |
| 64 | - wanted to find a solution that will be suitable for both old and new <code>Insert php</code> users. | |
| 65 | - And we wanted | |
| 66 | - to give them a useful tool to work with snippets (pieces of code) and plain text. </p> | |
| 67 | - <p>Storing PHP in individual snippets was a more elegant solution because only administrators were able | |
| 68 | - to modify the snippets. The plugin evolution to a snippet format has solved several important | |
| 69 | - problems:</p> | |
| 70 | - <ul> | |
| 71 | - <li>- Security improvements. Snippets can be modified by administrators only. Your PHP code is not | |
| 72 | - available to other users. | |
| 73 | - </li> | |
| 74 | - <li>- No code duplication. You can use 1 snippet on 100 pages instead of copying the code to each | |
| 75 | - one of them | |
| 76 | - </li> | |
| 77 | - <li>- Edit snippet in one place. All changes will be applied to the snippet on all pages.</li> | |
| 78 | - <li>- You can place snippets automatically.</li> | |
| 79 | - <li>- The code editor highlights syntax of the snippet and checks PHP code for errors. Your website | |
| 80 | - is safe now. | |
| 81 | - </li> | |
| 82 | - </ul> | |
| 83 | - <p>We considered all of the above when decided to update the <code>Insert php</code> plugin. Now our | |
| 84 | - plugin supports | |
| 85 | - not only a PHP code but HTML. JS, CSS code and text as well. Obviously, the name <code>Php snippets | |
| 86 | - (Insert php)</code> no longer suited the plugin. </p> | |
| 87 | - <p>So we’ve created a new name – Woody Code Snippets. We are hoping that the new name didn’t cause you any | |
| 88 | - pain. We won’t change the plugin name anymore, as we’ve scheduled a solid roadmap of the plugin | |
| 89 | - development and plan to stick to it!</p> | |
| 90 | - </div> | |
| 91 | - <div class="feature-section one-col"> | |
| 92 | - <div class="col"> | |
| 93 | - <h2>Gutenberg Editor Support</h2> | |
| 94 | - </div> | |
| 95 | - </div> | |
| 96 | - <div style="text-align:center;"> | |
| 97 | - <picture> | |
| 98 | - <img src="https://woodysnippet.com/images/about/gutenberg.gif" alt="" style="max-width:800px;box-shadow: 0 0 15px rgba(0,0,0,0.3);"> | |
| 99 | - </picture> | |
| 100 | - </div> | |
| 101 | - <div class="feature-section one-col"> | |
| 102 | - <div class="col"> | |
| 103 | - <p>Hello Gutenberg! Creating the content becomes more simple and easy. You can forget about | |
| 104 | - shortcodes to locate snippet and switch to the user-friendly blocks instead. Just create a | |
| 105 | - snippet with the location scope through the shortcode, go to Gutenberg Editor and add a new | |
| 106 | - Woody ad snippet block. Super easy!</p> | |
| 107 | - </div> | |
| 108 | - </div> | |
| 109 | - <hr/> | |
| 110 | - <div class="feature-section one-col"> | |
| 111 | - <div class="col"> | |
| 112 | - <h2>New Snippet types</h2> | |
| 113 | - </div> | |
| 114 | - </div> | |
| 115 | - <div class="<?php echo( version_compare( $wp_version, '5.2', '<' ) ? 'under-the-hood feature-section three-col' : 'is-fullwidth has-3-columns' ) ?>"> | |
| 116 | - <div class="col" style="text-align: center"> | |
| 117 | - <picture> | |
| 118 | - <img src="https://woodysnippet.com/images/about/php-snippet.jpg" alt="" style="width:80%;box-shadow: 0 0 10px rgba(0,0,0,0.3);"> | |
| 119 | - </picture> | |
| 120 | - <h3>PHP Snippets</h3> | |
| 121 | - <p>This is a simple snippet type. It executes PHP code. Use this type to register functions, | |
| 122 | - classes, and global variables. You can create false scenarios and use shortcodes to print them | |
| 123 | - on pages.</p> | |
| 124 | - </div> | |
| 125 | - <div class="col" style="text-align: center"> | |
| 126 | - <picture> | |
| 127 | - <img src="https://woodysnippet.com/images/about/text-snippet.jpg" alt="" style="width:80%;box-shadow: 0 0 10px rgba(0,0,0,0.3);"> | |
| 128 | - </picture> | |
| 129 | - <h3>Text Snippets</h3> | |
| 130 | - <p>This is the easiest snippet type. Here you can use text and HTML code only. It works as a classic | |
| 131 | - editor TinyMCE. Use this type to create text blocks, media content, links, quotes, and inserts. | |
| 132 | - You can locate this snippet type automatically or via shortcodes.</p> | |
| 133 | - </div> | |
| 134 | - <div class="col" style="text-align: center"> | |
| 135 | - <picture> | |
| 136 | - <img src="https://woodysnippet.com/images/about/universal-snippet.jpg" alt="" style="width:80%;box-shadow: 0 0 10px rgba(0,0,0,0.3);"> | |
| 137 | - </picture> | |
| 138 | - <h3>Universal Snippets</h3> | |
| 139 | - <p>This is a complex snippet type where you can combine PHP, HTML, JavaScript, and CSS. We’ve | |
| 140 | - created this type to insert ad codes, external widgets, complex HTML forms, Google analytics, | |
| 141 | - Facebook pixels and so on. You can locate these snippets automatically or by shortcodes.</p> | |
| 142 | - </div> | |
| 143 | - </div> | |
| 144 | - <hr/> | |
| 145 | - <div class="feature-section one-col"> | |
| 146 | - <div class="col"> | |
| 147 | - <h2>Snippet Auto placement</h2> | |
| 148 | - </div> | |
| 149 | - </div> | |
| 150 | - <div class="feature-section one-col"> | |
| 151 | - <div class="col"> | |
| 152 | - <p>This is a new feature. It will save you many hours of hard work. Now you can locate a snippet on | |
| 153 | - all or certain pages in a few clicks. | |
| 154 | - </p> | |
| 155 | - <p>We’ve added a new way of snippet placement. Just set up the location spot and placement | |
| 156 | - condition. The plugin will automatically install the snippet on the necessary pages. You can | |
| 157 | - also remove snippet in a few clicks.</p> | |
| 158 | - </div> | |
| 159 | - </div> | |
| 160 | - <hr/> | |
| 161 | - <div class="feature-section one-col"> | |
| 162 | - <div class="col"> | |
| 163 | - <h2>Snippet Conditional Logic</h2> | |
| 164 | - </div> | |
| 165 | - </div> | |
| 166 | - <div style="text-align:center;"> | |
| 167 | - <picture> | |
| 168 | - <img src="https://woodysnippet.com/images/about/conditions.gif" alt="" style="max-width:800px;box-shadow: 0 0 15px rgba(0,0,0,0.3);"> | |
| 169 | - </picture> | |
| 170 | - </div> | |
| 171 | - <div class="feature-section one-col"> | |
| 172 | - <div class="col"> | |
| 173 | - <p>With the new auto location options the conditional logic features have been released. They allow | |
| 174 | - you to hide or show snippets depend on conditions. For example, you can show a snippet to | |
| 175 | - registered users only. Or, show it just to mobile users. Conditional logic helps you to filter | |
| 176 | - pages where the snippet shouldn’t be used.</p> | |
| 177 | - </div> | |
| 178 | - </div> | |
| 179 | - <hr/> | |
| 180 | - <div class="feature-section one-col"> | |
| 181 | - <div class="col"> | |
| 182 | - <h2>Snippet Export/Import</h2> | |
| 183 | - </div> | |
| 184 | - </div> | |
| 185 | - <div class="full-width"> | |
| 186 | - <picture> | |
| 187 | - <img src="https://woodysnippet.com/images/about/import-export2.png" alt="" style="box-shadow: 0 0 10px rgba(0,0,0,0.3);"> | |
| 188 | - </picture> | |
| 189 | - </div> | |
| 190 | - <div class="feature-section one-col"> | |
| 191 | - <div class="col"> | |
| 192 | - <p>Snippet Export/Import is more user-friendly now. You don’t need to install additional plugins | |
| 193 | - anymore. Just export all the necessary plugins or import them on another website. Additional | |
| 194 | - import features prevent snippet duplication in case your website has already had this | |
| 195 | - snippet.</p> | |
| 196 | - </div> | |
| 197 | - </div> | |
| 198 | - </div> | |
| 199 | - <?php | |
| 200 | - } | |
| 201 | -} | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * The file contains a short help info. | |
| 4 | + * | |
| 5 | + * @author Alex Kovalev <alex.kovalevv@gmail.com> | |
| 6 | + * @since 1.0.0 | |
| 7 | + * @package core | |
| 8 | + * @copyright (c) 2018, OnePress Ltd | |
| 9 | + * | |
| 10 | + */ | |
| 11 | + | |
| 12 | +// Exit if accessed directly | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit; | |
| 15 | +} | |
| 16 | + | |
| 17 | +/** | |
| 18 | + * Common Settings | |
| 19 | + */ | |
| 20 | +class WINP_AboutPage extends WINP_Page { | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * @param Wbcr_Factory419_Plugin $plugin | |
| 24 | + */ | |
| 25 | + public function __construct( Wbcr_Factory419_Plugin $plugin ) { | |
| 26 | + $this->menu_post_type = WINP_SNIPPETS_POST_TYPE; | |
| 27 | + | |
| 28 | + $this->id = "about"; | |
| 29 | + $this->menu_title = __( 'About', 'insert-php' ); | |
| 30 | + | |
| 31 | + parent::__construct( $plugin ); | |
| 32 | + | |
| 33 | + $this->plugin = $plugin; | |
| 34 | + } | |
| 35 | + | |
| 36 | + public function indexAction() { | |
| 37 | + global $wp_version; | |
| 38 | + | |
| 39 | + ?> | |
| 40 | + <div class="wrap about-wrap full-width-layout" id="wbcr-inp-about"> | |
| 41 | + <!-- News Title !--> | |
| 42 | + <h1>Welcome to Woody ad snippets <?php echo $this->plugin->getPluginVersion() ?></h1> | |
| 43 | + <!-- News Subtext !--> | |
| 44 | + <div class="about-text"> | |
| 45 | + Thanks for upgrading! Many new features and improvements are available that you will enjoy. | |
| 46 | + </div> | |
| 47 | + <!-- Settings Tabs --> | |
| 48 | + <h2 class="nav-tab-wrapper" id="wbcr-inp-tab-nav"> | |
| 49 | + <a href="<?php echo $this->getActionUrl( 'index' ); ?>" class="nav-tab"><?php _e( 'What’s New', 'insert-php' ); ?></a> | |
| 50 | + <a href="<?php echo WINP_Plugin::app()->get_support()->get_docs_url( true, 'about' ) ?>" target="_blank" class="nav-tab"><?php _e( 'Documentation', 'insert-php' ); ?></a> | |
| 51 | + </h2> | |
| 52 | + <!-- Latest News !--> | |
| 53 | + <div id="wbcr-inp-news-tab"> | |
| 54 | + <div class="headline"> | |
| 55 | + <h3 class="headline-title">PHP snippets (Insert php) Evolution to Woody ad snippets</h3> | |
| 56 | + <div class="featured-image"> | |
| 57 | + <img src="https://cm-wp-storage.s3.eu-west-2.amazonaws.com/images/woody/about-page/change-plugin-name.jpg" alt=""> | |
| 58 | + </div> | |
| 59 | + <p class="introduction">If you are a long-term user of the <code>Insert php 1.3.0</code> plugin, you may | |
| 60 | + be confused | |
| 61 | + about the new plugin’s name and branding. We will try to clear this out for you.</p> | |
| 62 | + <p>The way how WordPress editor handled PHP code from <code>Insert php</code> before was incorrect and | |
| 63 | + unsafe. We | |
| 64 | + wanted to find a solution that will be suitable for both old and new <code>Insert php</code> users. | |
| 65 | + And we wanted | |
| 66 | + to give them a useful tool to work with snippets (pieces of code) and plain text. </p> | |
| 67 | + <p>Storing PHP in individual snippets was a more elegant solution because only administrators were able | |
| 68 | + to modify the snippets. The plugin evolution to a snippet format has solved several important | |
| 69 | + problems:</p> | |
| 70 | + <ul> | |
| 71 | + <li>- Security improvements. Snippets can be modified by administrators only. Your PHP code is not | |
| 72 | + available to other users. | |
| 73 | + </li> | |
| 74 | + <li>- No code duplication. You can use 1 snippet on 100 pages instead of copying the code to each | |
| 75 | + one of them | |
| 76 | + </li> | |
| 77 | + <li>- Edit snippet in one place. All changes will be applied to the snippet on all pages.</li> | |
| 78 | + <li>- You can place snippets automatically.</li> | |
| 79 | + <li>- The code editor highlights syntax of the snippet and checks PHP code for errors. Your website | |
| 80 | + is safe now. | |
| 81 | + </li> | |
| 82 | + </ul> | |
| 83 | + <p>We considered all of the above when decided to update the <code>Insert php</code> plugin. Now our | |
| 84 | + plugin supports | |
| 85 | + not only a PHP code but HTML. JS, CSS code and text as well. Obviously, the name <code>Php snippets | |
| 86 | + (Insert php)</code> no longer suited the plugin. </p> | |
| 87 | + <p>So we’ve created a new name – Woody ad snippets. We are hoping that the new name didn’t cause you any | |
| 88 | + pain. We won’t change the plugin name anymore, as we’ve scheduled a solid roadmap of the plugin | |
| 89 | + development and plan to stick to it!</p> | |
| 90 | + </div> | |
| 91 | + <div class="feature-section one-col"> | |
| 92 | + <div class="col"> | |
| 93 | + <h2>Gutenberg Editor Support</h2> | |
| 94 | + </div> | |
| 95 | + </div> | |
| 96 | + <div style="text-align:center;"> | |
| 97 | + <picture> | |
| 98 | + <img src="https://cm-wp-storage.s3.eu-west-2.amazonaws.com/images/woody/about-page/gutenberg.gif" alt="" style="max-width:800px;box-shadow: 0 0 15px rgba(0,0,0,0.3);"> | |
| 99 | + </picture> | |
| 100 | + </div> | |
| 101 | + <div class="feature-section one-col"> | |
| 102 | + <div class="col"> | |
| 103 | + <p>Hello Gutenberg! Creating the content becomes more simple and easy. You can forget about | |
| 104 | + shortcodes to locate snippet and switch to the user-friendly blocks instead. Just create a | |
| 105 | + snippet with the location scope through the shortcode, go to Gutenberg Editor and add a new | |
| 106 | + Woody ad snippet block. Super easy!</p> | |
| 107 | + </div> | |
| 108 | + </div> | |
| 109 | + <hr/> | |
| 110 | + <div class="feature-section one-col"> | |
| 111 | + <div class="col"> | |
| 112 | + <h2>New Snippet types</h2> | |
| 113 | + </div> | |
| 114 | + </div> | |
| 115 | + <div class="<?php echo( version_compare( $wp_version, '5.2', '<' ) ? 'under-the-hood feature-section three-col' : 'is-fullwidth has-3-columns' ) ?>"> | |
| 116 | + <div class="col" style="text-align: center"> | |
| 117 | + <picture> | |
| 118 | + <img src="https://cm-wp-storage.s3.eu-west-2.amazonaws.com/images/woody/about-page/php-snippet.jpg" alt="" style="width:80%;box-shadow: 0 0 10px rgba(0,0,0,0.3);"> | |
| 119 | + </picture> | |
| 120 | + <h3>PHP Snippets</h3> | |
| 121 | + <p>This is a simple snippet type. It executes PHP code. Use this type to register functions, | |
| 122 | + classes, and global variables. You can create false scenarios and use shortcodes to print them | |
| 123 | + on pages.</p> | |
| 124 | + </div> | |
| 125 | + <div class="col" style="text-align: center"> | |
| 126 | + <picture> | |
| 127 | + <img src="https://cm-wp-storage.s3.eu-west-2.amazonaws.com/images/woody/about-page/text-snippet.jpg" alt="" style="width:80%;box-shadow: 0 0 10px rgba(0,0,0,0.3);"> | |
| 128 | + </picture> | |
| 129 | + <h3>Text Snippets</h3> | |
| 130 | + <p>This is the easiest snippet type. Here you can use text and HTML code only. It works as a classic | |
| 131 | + editor TinyMCE. Use this type to create text blocks, media content, links, quotes, and inserts. | |
| 132 | + You can locate this snippet type automatically or via shortcodes.</p> | |
| 133 | + </div> | |
| 134 | + <div class="col" style="text-align: center"> | |
| 135 | + <picture> | |
| 136 | + <img src="https://cm-wp-storage.s3.eu-west-2.amazonaws.com/images/woody/about-page/universal-snippet.jpg" alt="" style="width:80%;box-shadow: 0 0 10px rgba(0,0,0,0.3);"> | |
| 137 | + </picture> | |
| 138 | + <h3>Universal Snippets</h3> | |
| 139 | + <p>This is a complex snippet type where you can combine PHP, HTML, JavaScript, and CSS. We’ve | |
| 140 | + created this type to insert ad codes, external widgets, complex HTML forms, Google analytics, | |
| 141 | + Facebook pixels and so on. You can locate these snippets automatically or by shortcodes.</p> | |
| 142 | + </div> | |
| 143 | + </div> | |
| 144 | + <hr/> | |
| 145 | + <div class="feature-section one-col"> | |
| 146 | + <div class="col"> | |
| 147 | + <h2>Snippet Auto placement</h2> | |
| 148 | + </div> | |
| 149 | + </div> | |
| 150 | + <div class="feature-section one-col"> | |
| 151 | + <div class="col"> | |
| 152 | + <p>This is a new feature. It will save you many hours of hard work. Now you can locate a snippet on | |
| 153 | + all or certain pages in a few clicks. | |
| 154 | + </p> | |
| 155 | + <p>We’ve added a new way of snippet placement. Just set up the location spot and placement | |
| 156 | + condition. The plugin will automatically install the snippet on the necessary pages. You can | |
| 157 | + also remove snippet in a few clicks.</p> | |
| 158 | + </div> | |
| 159 | + </div> | |
| 160 | + <hr/> | |
| 161 | + <div class="feature-section one-col"> | |
| 162 | + <div class="col"> | |
| 163 | + <h2>Snippet Conditional Logic</h2> | |
| 164 | + </div> | |
| 165 | + </div> | |
| 166 | + <div style="text-align:center;"> | |
| 167 | + <picture> | |
| 168 | + <img src="https://cm-wp-storage.s3.eu-west-2.amazonaws.com/images/woody/about-page/conditions.gif" alt="" style="max-width:800px;box-shadow: 0 0 15px rgba(0,0,0,0.3);"> | |
| 169 | + </picture> | |
| 170 | + </div> | |
| 171 | + <div class="feature-section one-col"> | |
| 172 | + <div class="col"> | |
| 173 | + <p>With the new auto location options the conditional logic features have been released. They allow | |
| 174 | + you to hide or show snippets depend on conditions. For example, you can show a snippet to | |
| 175 | + registered users only. Or, show it just to mobile users. Conditional logic helps you to filter | |
| 176 | + pages where the snippet shouldn’t be used.</p> | |
| 177 | + </div> | |
| 178 | + </div> | |
| 179 | + <hr/> | |
| 180 | + <div class="feature-section one-col"> | |
| 181 | + <div class="col"> | |
| 182 | + <h2>Snippet Export/Import</h2> | |
| 183 | + </div> | |
| 184 | + </div> | |
| 185 | + <div class="full-width"> | |
| 186 | + <picture> | |
| 187 | + <img src="https://cm-wp-storage.s3.eu-west-2.amazonaws.com/images/woody/about-page/import-export2.png" alt="" style="box-shadow: 0 0 10px rgba(0,0,0,0.3);"> | |
| 188 | + </picture> | |
| 189 | + </div> | |
| 190 | + <div class="feature-section one-col"> | |
| 191 | + <div class="col"> | |
| 192 | + <p>Snippet Export/Import is more user-friendly now. You don’t need to install additional plugins | |
| 193 | + anymore. Just export all the necessary plugins or import them on another website. Additional | |
| 194 | + import features prevent snippet duplication in case your website has already had this | |
| 195 | + snippet.</p> | |
| 196 | + </div> | |
| 197 | + </div> | |
| 198 | + </div> | |
| 199 | + <?php | |
| 200 | + } | |
| 201 | +} | |