Plugin Directory

Changeset 994137


Ignore:
Timestamp:
09/21/2014 08:55:48 AM (12 years ago)
Author:
freshlabs
Message:

Updated version and calls to post event date functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-simile-timeline/trunk/timeline.php

    r993976 r994137  
    66Author: Tim Isenheim
    77Author URI: http://www.freshlabs.de/journal
    8 Version: 0.4.8.6
     8Version: 0.4.9
    99*/
    1010/*
     
    3636include('inc/WPSimileTimelineDatabase.class.php');  // class for timeline database functions
    3737include('inc/WPSimileTimelineAdmin.class.php'); // class for helper functions
     38include('inc/WPSimileTimelinePost.class.php'); // class for post related functions
    3839include('inc/WPSimileTimelineTerm.class.php'); // class for term functions
    3940include('inc/WPSimileTimelineToolbox.class.php'); // class for helper functions
     
    4243include('inc/WPSimileTimelineDecorator.class.php'); // class for timeline decorator
    4344
    44 @define('STL_TIMELINE_PLUGIN_DATESTRING', '20130110');
    45 @define('STL_TIMELINE_PLUGIN_VERSION', '0.4.8.6');
     45@define('STL_TIMELINE_PLUGIN_DATESTRING', '20140920');
     46@define('STL_TIMELINE_PLUGIN_VERSION', '0.4.9');
    4647@define('STL_TIMELINE_FOLDER', WP_PLUGIN_URL.'/wp-simile-timeline');
    4748@define('STL_TIMELINE_DATA_FOLDER', STL_TIMELINE_FOLDER.'/data');
     
    6465        add_action('admin_menu', array('WPSimileTimelineLoader','registerOptionsPage'));
    6566        // save event dates on post edit/save/publish
    66         add_action('wp_insert_post', array('WPSimileTimelineDatabase','updateEventDates'));
     67        add_action('wp_insert_post', array('WPSimileTimelinePost','updateEventDates'));
    6768        // update term relations on category creation/editing
    6869        add_action('create_term', array('WPSimileTimelineTerm','addTerm'));
     
    9798        }
    9899        // add database columns for start and end dates
    99         WPSimileTimelineDatabase::addEventColumn('stl_timeline_event_start');
    100         WPSimileTimelineDatabase::addEventColumn('stl_timeline_event_latest_start');
    101         WPSimileTimelineDatabase::addEventColumn('stl_timeline_event_end');
    102         WPSimileTimelineDatabase::addEventColumn('stl_timeline_event_earliest_end');
    103        
     100        WPSimileTimelinePost::createColumns();
    104101        // add database table for category settings
    105102        WPSimileTimelineTerm::createTable();   
     
    152149
    153150        // remove columns in wp_posts
    154         WPSimileTimelineDatabase::removeEventColumn('stl_timeline_event_start');
    155         WPSimileTimelineDatabase::removeEventColumn('stl_timeline_event_latest_start');
    156         WPSimileTimelineDatabase::removeEventColumn('stl_timeline_event_end');
    157         WPSimileTimelineDatabase::removeEventColumn('stl_timeline_event_earliest_end');
     151        WPSimileTimelinePost::deleteColumns();
     152
    158153        // remove timeline specific configuration tables
    159154        WPSimileTimelineDatabase::deleteTable('stl_timeline_terms');
Note: See TracChangeset for help on using the changeset viewer.