Plugin Directory

Changeset 1749358


Ignore:
Timestamp:
10/19/2017 04:42:06 PM (8 years ago)
Author:
Moisture
Message:

Add text domain for translations

File:
1 edited

Legend:

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

    r1749320 r1749358  
    44  Plugin URI: http://wordpress.org/extend/plugins/am-events/
    55  Description: Adds a post type for events and a customizable widget for displaying upcoming events.
    6   Version: 1.12.0
     6  Version: 1.13.0
    77  Author: Atte Moisio
    88  Author URI: http://attemoisio.fi
     9    Text Domain: am-events
    910  License: GPL2
    1011 */
     
    299300    // Custom script for assigning jquery to inputs
    300301    wp_register_script('am_custom_script', plugins_url('/script/admin-post.js', __FILE__));
    301    
    302    
     302
     303
    303304    // datetimepicker localization
    304305    $localization = array(
     
    313314        'pmNamesShort' => _x('P', 'time picker', 'am-events')
    314315    );
    315    
     316
    316317    $startDate = mysql_to_rfc3339(get_post_meta($post->ID, 'am_startdate', true));
    317318    $endDate = mysql_to_rfc3339(get_post_meta($post->ID, 'am_enddate', true));
     
    325326    //pass values to javascript
    326327    wp_localize_script('am_custom_script', 'localization', $localization);
    327     wp_localize_script('am_custom_script', 'event_data', $eventData); 
     328    wp_localize_script('am_custom_script', 'event_data', $eventData);
    328329    wp_enqueue_script('am_custom_script', plugins_url('/script/admin-post.js', __FILE__, null, true));
    329330
     
    398399        wp_nonce_field(plugin_basename(__FILE__), 'am_nonce');
    399400
    400    
     401
    401402
    402403    // Echo content of the meta box
     
    468469     */
    469470    if ($_POST && get_post_type($post) === 'am_event') {
    470    
     471
    471472        // Has the field been used?
    472473        $temp1 = trim($_POST['am_startdate']);
     
    494495        else
    495496            return;
    496            
     497
    497498        do_action( 'am_save_event', $post_id );
    498499
     
    9991000    $_POST += array("am_quickedit_nonce" => '');
    10001001    if ( wp_verify_nonce( $_POST["am_quickedit_nonce"], plugin_basename( __FILE__ ) ) ) {
    1001    
     1002
    10021003        // verify if this is an auto save routine. If it is, our form has not been submitted, so we don't want to do anything
    10031004        if ( $_POST['post_type'] !== 'am_event' ) {
     
    10101011        am_update_post_meta_date($post_id, 'am_startdate');
    10111012        am_update_post_meta_date($post_id, 'am_enddate');
    1012    
    1013     }
    1014    
     1013
     1014    }
     1015
    10151016    // Normal edit
    10161017    else {
     
    10881089                        am_copy_replace_terms($post_id, $new_post_id, 'am_event_categories');
    10891090                        am_copy_replace_terms($post_id, $new_post_id, 'am_venues');
    1090                        
     1091
    10911092                        do_action( 'am_copy_event', $post_id, $new_post_id );
    10921093
     
    11431144                        wp_update_post( $recurrent_post );
    11441145                        add_action('save_post', 'am_save_custom_meta');
    1145                        
     1146
    11461147                        am_copy_replace_tags($post_id, $id);
    11471148                        set_post_thumbnail($id, get_post_thumbnail_id($post_id));
     
    11511152
    11521153                        do_action( 'am_copy_event', $post_id, $id );
    1153                        
     1154
    11541155                    }
    11551156
Note: See TracChangeset for help on using the changeset viewer.