Changeset 2425232
- Timestamp:
- 11/25/2020 03:14:17 AM (5 years ago)
- Location:
- simple-post-template
- Files:
-
- 68 added
- 5 deleted
- 3 edited
-
assets/banner-1544x500.jpg (added)
-
assets/banner-1544x500.png (deleted)
-
assets/banner-772x250.jpg (added)
-
assets/banner-772x250.png (deleted)
-
assets/icon-128x128.jpg (added)
-
assets/icon-256x256.jpg (added)
-
assets/icon.svg (added)
-
assets/screenshot-1.jpg (added)
-
assets/screenshot-1.png (deleted)
-
assets/screenshot-2.jpg (added)
-
assets/screenshot-2.png (deleted)
-
assets/screenshot-3.jpg (added)
-
assets/screenshot-3.png (deleted)
-
assets/screenshot-4.jpg (added)
-
tags/2.2.0 (added)
-
tags/2.2.0/admin (added)
-
tags/2.2.0/admin/class-advanced-content-templates-admin.php (added)
-
tags/2.2.0/admin/index.php (added)
-
tags/2.2.0/admin/partials (added)
-
tags/2.2.0/admin/partials/advanced-content-templates-admin-display.php (added)
-
tags/2.2.0/admin/partials/advanced-content-templates-admin-sidecar.php (added)
-
tags/2.2.0/admin/partials/advanced-content-templates-admin-support.php (added)
-
tags/2.2.0/admin/partials/advanced-content-templates-admin-upgrade.php (added)
-
tags/2.2.0/composer.json (added)
-
tags/2.2.0/composer.lock (added)
-
tags/2.2.0/includes (added)
-
tags/2.2.0/includes/class-advanced-content-templates-i18n.php (added)
-
tags/2.2.0/includes/class-advanced-content-templates-loader.php (added)
-
tags/2.2.0/includes/class-advanced-content-templates.php (added)
-
tags/2.2.0/includes/index.php (added)
-
tags/2.2.0/index.php (added)
-
tags/2.2.0/languages (added)
-
tags/2.2.0/languages/advanced-content-templates.pot (added)
-
tags/2.2.0/lib (added)
-
tags/2.2.0/lib/wordpress-simple-settings.php (added)
-
tags/2.2.0/license.txt (added)
-
tags/2.2.0/public (added)
-
tags/2.2.0/public/class-advanced-content-templates-public.php (added)
-
tags/2.2.0/public/index.php (added)
-
tags/2.2.0/readme.txt (added)
-
tags/2.2.0/simple-content-template.php (added)
-
tags/2.2.0/uninstall.php (added)
-
tags/2.2.0/vendor (added)
-
tags/2.2.0/vendor/autoload.php (added)
-
tags/2.2.0/vendor/composer (added)
-
tags/2.2.0/vendor/composer/ClassLoader.php (added)
-
tags/2.2.0/vendor/composer/LICENSE (added)
-
tags/2.2.0/vendor/composer/autoload_classmap.php (added)
-
tags/2.2.0/vendor/composer/autoload_namespaces.php (added)
-
tags/2.2.0/vendor/composer/autoload_psr4.php (added)
-
tags/2.2.0/vendor/composer/autoload_real.php (added)
-
tags/2.2.0/vendor/composer/autoload_static.php (added)
-
tags/2.2.0/vendor/composer/installed.json (added)
-
tags/2.2.0/vendor/objectivco (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/LICENSE (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/README.md (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/composer.json (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/examples (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin/awesome-plugin-admin.php (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin/awesome-plugin.php (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin/inc (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin/inc/wordpress-simple-settings.php (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/src (added)
-
tags/2.2.0/vendor/objectivco/wordpress-simple-settings/src/wordpress-simple-settings.php (added)
-
tags/2.2.0/vendor/objectivco/wp_tabbed_navigation (added)
-
tags/2.2.0/vendor/objectivco/wp_tabbed_navigation/.gitignore (added)
-
tags/2.2.0/vendor/objectivco/wp_tabbed_navigation/LICENSE (added)
-
tags/2.2.0/vendor/objectivco/wp_tabbed_navigation/README.md (added)
-
tags/2.2.0/vendor/objectivco/wp_tabbed_navigation/composer.json (added)
-
tags/2.2.0/vendor/objectivco/wp_tabbed_navigation/src (added)
-
tags/2.2.0/vendor/objectivco/wp_tabbed_navigation/src/class-wp-tabbed-navigation.php (added)
-
trunk/admin/partials/advanced-content-templates-admin-sidecar.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/simple-content-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-post-template/trunk/admin/partials/advanced-content-templates-admin-sidecar.php
r1643070 r2425232 3 3 $templates = $this->get_templates(); 4 4 5 if ( empty( $templates) ) {5 if ( empty( $templates ) ) { 6 6 echo "You don't have any content templates."; 7 7 return; 8 8 }; 9 9 ?> 10 <div style="text-align: right"> 11 <select name="act_template" id="act_template" style="width: 100%"> 12 <?php foreach($templates as $template): ?> 10 <div> 11 <label for="act_template">Load a Content Template:</label> 12 <select name="act_template" id="act_template" style="width: calc( 100% - 48px ); margin-top: 8px;"> 13 <option disabled selected value="nada">Choose one</option> 14 <?php foreach ( $templates as $template ) : ?> 13 15 <option value="<?php echo $template->ID; ?>"><?php echo $template->post_title; ?></option> 14 16 <?php endforeach; ?> … … 18 20 </div> 19 21 20 <h4 >Advanced Content Templates</h4>22 <h4 style="margin-bottom: 4px;">Advanced Content Templates</h4> 21 23 <p>Want more powerful features like custom fields, featured images, and taxonomies? Go premium!</p> 22 <a class="button-secondary" target="_blank" href="https://www.advancedcontenttemplates.com?utm_medium=Sidecar&utm_content=<?php echo urlencode( "Get Advanced Content Templates"); ?>">Get Advanced Content Templates</a>24 <a class="button-secondary" target="_blank" href="https://www.advancedcontenttemplates.com?utm_medium=Sidecar&utm_content=<?php echo urlencode( 'Get Advanced Content Templates' ); ?>">Get Advanced Content Templates</a> 23 25 24 26 <script> … … 27 29 e.preventDefault(); 28 30 29 if( confirm('Are you sure? Loading this template may wipe out existing changes.') ) { 30 var template = jQuery("#act_template option:selected").val(); 31 window.location = 'post-new.php?post_id=<?php echo $post->ID; ?>&act_template_load=' + template; 31 var template = jQuery("#act_template option:selected").val(); 32 33 if ( 'nada' === template ) { 34 alert( "You need to actually select a content template to load, otherwise we would just be guessing!") 35 } else { 36 if( confirm('Are you sure? Loading this template may wipe out existing changes.') ) { 37 window.location = 'post-new.php?post_id=<?php echo $post->ID; ?>&act_template_load=' + template; 38 } 32 39 } 40 33 41 }) 34 42 }); -
simple-post-template/trunk/readme.txt
r2310271 r2425232 2 2 Contributors: clifgriffin, nodleredoy 3 3 Donate link: https://advancedcontenttemplates.com 4 Tags: post template, templates, post from template, posts, content template, clone, duplicate5 Requires at least: 2.5.16 Tested up to: 5. 4.17 Stable tag: 2. 1.98 9 Simple, pre-written post content templates for your posts and pages. Use HTML to pre-fill new posts with the default content of your choice. 4 Tags: post template, content template, post from template, templates, copy, clone, duplicate 5 Requires at least: 3.6 6 Tested up to: 5.5.3 7 Stable tag: 2.2.0 8 9 Create content templates for your posts and pages. When creating a new post or page use one of your content templates as the starting point! 10 10 11 11 == Description == 12 12 13 **Custom Post Types, Custom Fields, Tags, Categories, Featured Images: if you need any of these, you should check out our pro plugin, Advanced Content Templates: <a href="https://advancedcontenttemplates.com">Advanced Content Templates</a>** 14 15 Many bloggers use a similar format for each of their posts. WordPress doesn't provide a native way to "pre-fill" your new posts with default content. This plugin provides the simplest solution to this problem. It takes 5 minutes to install and setup. The templates allows you to define a title, post body, and even an excerpt. 13 This plugin makes it simple to create content templates for your posts and pages. When creating a new post or page use one of your content templates as the starting point. Simple Content Templates allows you to define a title, post body, and even an excerpt. 14 15 **How Simple Content Templates Works** 16 17 1. Install and activate the plugin. 18 2. You should have a new menu item in your admin dashboard "Content Templates" 19 3. Use the "Add a Template" button to create a template. Add the title and content you want to be able to start with when creating blog posts or pages. Go ahead and publish the template. 20 4. When creating a new post or page, in the sidebar you should see the option to "Load a Content Template." Select the template you want to use and click the "Load Template" button. 21 5. After the page refreshes, edit the post or page however you want and publish it like normal. 22 6. ...next time you need to write a similar post or create a similar page, do it all over again! 23 24 **Custom Post Types, Custom Fields, Tags, Categories, Featured Images:** if you need any of these, you should check out the pro version of this plugin, Advanced Content Templates: <a href="https://advancedcontenttemplates.com">Advanced Content Templates</a> 16 25 17 26 **Support** … … 19 28 If you need support, visit the support tab within the plugin settings. 20 29 21 **Hire Me**30 **Hire Us** 22 31 23 32 If you need WordPress developers, we're available for hire: [Contact Objectiv](https://objectiv.co/contact/ "Contact Objectiv") 24 33 25 34 = Version History = 35 36 **Version 2.2.0** 37 38 * Update the metabox and "load a template" flow 39 * Update tested to version. 40 * Clean up the readme and make it a bit clearer what all Simple Content Templates is and does 41 * Fix a few spelling mistakes 42 26 43 **Version 2.1.9** 27 44 … … 65 82 **Version 2.1.0** 66 83 67 * Complete re-write. No uses same code base as Advanced Content Templates for an improved user experience, and easier code maint ainance for our team.84 * Complete re-write. No uses same code base as Advanced Content Templates for an improved user experience, and easier code maintenance for our team. 68 85 69 86 **Version 2.0.16** … … 177 194 * Moved *all* settings to administration pages under Settings -> Simple Content Template. 178 195 * Moved content of template and title to WordPress options. 179 * Provided upgrade mechanism to convert old templates to the new format. (May not work for all applications. Some may work but may be more complex than nec cessary.)196 * Provided upgrade mechanism to convert old templates to the new format. (May not work for all applications. Some may work but may be more complex than necessary.) 180 197 * Added optional "Insert Template" button to new post page. You can now determine from the settings page whether or not the template will be automatically applied to all new posts. 181 198 * Plugin is now upgrade proof. Settings are stored using Wordpress's setting functions. … … 196 213 == Frequently Asked Questions == 197 214 198 = Does itsupport multiple templates? =199 200 As of version 2.0, yes! 201 202 = Does it work with pages? =203 204 Yep! Sure does...215 = Does Simple Content Templates support multiple templates? = 216 217 As of version 2.0, yes! You can add as many content templates as you would like to! Simply select the one you want to use from the sidebar in the post edit page and click "Load Template." 218 219 = Does Simple Content Templates work with pages or is it just posts? = 220 221 While the primary use case is for people creating lots of blog posts with similar content, there is a setting to toggle on the Simple Content Template functionality for pages as well. 205 222 206 223 = Can it work with custom post types? = … … 212 229 At this point, Simple Content Templates is feature complete. You can get extra features by buying our pro plugin: [Advanced Content Templates](https://advancedcontenttemplates.com "Advanced Content Templates") 213 230 214 = Can Simple Content Template specify default custom fields ? =231 = Can Simple Content Template specify default custom fields and their values? = 215 232 216 233 For custom fields and much more, check out [Advanced Content Templates](https://advancedcontenttemplates.com "Advanced Content Templates") -
simple-post-template/trunk/simple-content-template.php
r2310271 r2425232 14 14 * 15 15 * @wordpress-plugin 16 * Plugin Name: Simple Content Templates 16 * Plugin Name: Simple Content Templates for Blog Posts & Pages 17 17 * Plugin URI: https://www.advancedcontenttemplates.com/ 18 * Description: Simple, full-featured content templates for WordPress.19 * Version: 2. 1.918 * Description: A simple to use content template system. Create similarly structured posts & pages with ease. 19 * Version: 2.2.0 20 20 * Author: Clifton Griffin 21 21 * Author URI: https://objectiv.co … … 24 24 * Text Domain: advanced-content-templates 25 25 * Domain Path: /languages 26 * Tested up to: 5. 4.126 * Tested up to: 5.5.3 27 27 */ 28 28 … … 32 32 } 33 33 34 define( 'CGD_SCT_VERSION', '2. 1.9' );34 define( 'CGD_SCT_VERSION', '2.2.0' ); 35 35 define( 'CGD_SCT_NAME', 'Simple Content Templates' ); 36 36
Note: See TracChangeset
for help on using the changeset viewer.