Plugin Directory

Changeset 2425232


Ignore:
Timestamp:
11/25/2020 03:14:17 AM (5 years ago)
Author:
NodleRedoy
Message:

Updating banner/screenshot assets, tweaking a few admin things for the Load Template interface, bump version, update readme to hopefully be a bit more helpful.

Location:
simple-post-template
Files:
68 added
5 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • simple-post-template/trunk/admin/partials/advanced-content-templates-admin-sidecar.php

    r1643070 r2425232  
    33$templates = $this->get_templates();
    44
    5 if ( empty($templates) ) {
     5if ( empty( $templates ) ) {
    66    echo "You don't have any content templates.";
    77    return;
    88};
    99?>
    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 ) : ?>
    1315            <option value="<?php echo $template->ID; ?>"><?php echo $template->post_title; ?></option>
    1416        <?php endforeach; ?>
     
    1820</div>
    1921
    20 <h4>Advanced Content Templates</h4>
     22<h4 style="margin-bottom: 4px;">Advanced Content Templates</h4>
    2123<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>
    2325
    2426<script>
     
    2729        e.preventDefault();
    2830
    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            }
    3239        }
     40
    3341    })
    3442});
  • simple-post-template/trunk/readme.txt

    r2310271 r2425232  
    22Contributors: clifgriffin, nodleredoy
    33Donate link: https://advancedcontenttemplates.com
    4 Tags: post template, templates, post from template, posts, content template, clone, duplicate
    5 Requires at least: 2.5.1
    6 Tested up to: 5.4.1
    7 Stable tag: 2.1.9
    8 
    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.
     4Tags: post template, content template, post from template, templates, copy, clone, duplicate
     5Requires at least: 3.6
     6Tested up to: 5.5.3
     7Stable tag: 2.2.0
     8
     9Create content templates for your posts and pages. When creating a new post or page use one of your content templates as the starting point!
    1010
    1111== Description ==
    1212
    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.
     13This 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
     171. Install and activate the plugin.
     182. You should have a new menu item in your admin dashboard "Content Templates"
     193. 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.
     204. 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.
     215. After the page refreshes, edit the post or page however you want and publish it like normal.
     226. ...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>
    1625
    1726**Support**
     
    1928If you need support, visit the support tab within the plugin settings.
    2029
    21 **Hire Me**
     30**Hire Us**
    2231
    2332If you need WordPress developers, we're available for hire: [Contact Objectiv](https://objectiv.co/contact/ "Contact Objectiv")
    2433
    2534= 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
    2643**Version 2.1.9**
    2744
     
    6582**Version 2.1.0**
    6683
    67 * Complete re-write. No uses same code base as Advanced Content Templates for an improved user experience, and easier code maintainance 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.
    6885
    6986**Version 2.0.16**
     
    177194* Moved *all* settings to administration pages under Settings -> Simple Content Template.
    178195* 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 neccessary.)
     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.)
    180197* 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.
    181198* Plugin is now upgrade proof. Settings are stored using Wordpress's setting functions.
     
    196213== Frequently Asked Questions ==
    197214
    198 = Does it support 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
     217As 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
     221While 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.
    205222
    206223= Can it work with custom post types? =
     
    212229At 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")
    213230
    214 = Can Simple Content Template specify default custom fields? =
     231= Can Simple Content Template specify default custom fields and their values? =
    215232
    216233For 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  
    1414 *
    1515 * @wordpress-plugin
    16  * Plugin Name:       Simple Content Templates
     16 * Plugin Name:       Simple Content Templates for Blog Posts & Pages
    1717 * Plugin URI:        https://www.advancedcontenttemplates.com/
    18  * Description:       Simple, full-featured content templates for WordPress.
    19  * Version:           2.1.9
     18 * Description:       A simple to use content template system. Create similarly structured posts & pages with ease.
     19 * Version:           2.2.0
    2020 * Author:            Clifton Griffin
    2121 * Author URI:        https://objectiv.co
     
    2424 * Text Domain:       advanced-content-templates
    2525 * Domain Path:       /languages
    26  * Tested up to:      5.4.1
     26 * Tested up to:      5.5.3
    2727 */
    2828
     
    3232}
    3333
    34 define( 'CGD_SCT_VERSION', '2.1.9' );
     34define( 'CGD_SCT_VERSION', '2.2.0' );
    3535define( 'CGD_SCT_NAME', 'Simple Content Templates' );
    3636
Note: See TracChangeset for help on using the changeset viewer.