Plugin Directory

Changeset 1765386


Ignore:
Timestamp:
11/13/2017 07:37:43 PM (8 years ago)
Author:
Moisture
Message:

Fix PHP error in debug mode + update documentation

Location:
am-events/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • am-events/trunk/am-events.php

    r1749376 r1765386  
    44  Plugin URI: https://wordpress.org/plugins/am-events/
    55  Description: Adds a post type for events and a customizable widget for displaying upcoming events.
    6   Version: 1.13.0
     6  Version: 1.13.1
    77  Author: Atte Moisio
    88  Author URI: http://attemoisio.fi
     
    288288 * *************************************************************************** */
    289289
    290 function am_custom_script_post() {
     290function am_custom_script_post($hook) {
    291291    global $post;
    292     if ($post->post_type !== 'am_event' || !is_admin()) {
     292    if ('post.php' != $hook || !is_admin() || $post->post_type !== 'am_event') {
    293293        return;
    294294    }
  • am-events/trunk/readme.txt

    r1749382 r1765386  
    11=== AM Events ===
    22Contributors: Moisture
    3 Tags: event list, events, upcoming events, event list, custom post type, custom taxonomy, plugin, widget
     3Tags: events, event, venue, calendar, dates, date, list, workshop, concert, meeting, summit, class, upcoming, widget
    44Requires at least: 3.3.1
    5 Tested up to: 4.8.2
    6 Stable tag: 1.13.0
     5Tested up to: 4.8.3
     6Stable tag: 1.13.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 Adds an event post type with an interface and template tags similar to normal posts. Also includes a customizable widget for upcoming events.
     10Adds an 'Event' post type similar to normal posts allowing to define dates, categories and venues. Includes a widget for displaying upcoming events. Fully customizable layouts.
    1111
    1212== Description ==
    1313
    14 The plugin adds a custom event post type with two taxonomies: event category and venue.
    15 
    16 Allows the user to add new events just like normal posts with added fields for start time, end time, category and venue. You can also easily create weekly or biweekly recurring events.
     14This plugin was created for a need of a simple to use event plugin allowing a fully customizable layout. Other calendar plugins often provide way too many complicated features and resort to pre-built layouts.
     15
     16The plugin adds a custom 'am_event' post type with two taxonomies: 'am_event_category' and 'am_venue'. Dates are stored as post metadata. This allows the user to create events just like normal posts with added fields for start time, end time, category and venue. You can also easily create weekly or biweekly recurring events.
    1717
    1818Displaying the events is done in the theme files using WP_Query and the template tags provided by the plugin. This allows full control over the layout and what elements to show.
    1919
    2020The plugin also includes a widget for showing upcoming events. It uses a very simple template system for full control of the layout.
    21 
    22 For integrating AM Events to an existing theme, I suggest creating a [child theme](http://codex.wordpress.org/Child_Themes) with custom page templates. You can find an example of a working Twenty Twelve child theme from [https://github.com/attemoi/am-events-child-theme](https://github.com/attemoi/am-events-child-theme) containing three different page templates for event pages.
    23 
    24 See Other Notes for detailed information and a small tutorial about the custom post type and the widget.
    2521
    2622If you think something critical is missing, feel free to send me a request.
     
    4743
    4844== Changelog ==
     45
     46= 1.13.1 =
     47* Fix PHP debug error on some admin pages
    4948
    5049= 1.13.0 =
     
    143142== Upgrade Notice ==
    144143
     144= 1.13.1 =
     145* Fixes a debug PHP error on some admin pages
     146
    145147= 1.13.0 =
    146148* Replaces jQuery datepicker with flatpickr
     
    231233* Fixes bugs in the upcoming events -widget
    232234
    233 == Widget ==
     235== TUTORIAL ==
     236
     237For integrating AM Events to an existing theme, I suggest creating a [child theme](http://codex.wordpress.org/Child_Themes) with custom page templates. You can find an example of a working Twenty Twelve child theme from [https://github.com/attemoi/am-events-child-theme](https://github.com/attemoi/am-events-child-theme) containing three different page templates for event pages.
     238
     239= Widget =
    234240
    235241Here are the shortcodes available in the upcoming events widget template.
Note: See TracChangeset for help on using the changeset viewer.