Changeset 1678088
- Timestamp:
- 06/14/2017 08:04:06 AM (9 years ago)
- Location:
- another-events-calendar/trunk
- Files:
-
- 18 added
- 49 edited
-
README.txt (modified) (5 diffs)
-
admin/class-aec-admin-categories.php (modified) (1 diff)
-
admin/class-aec-admin-events.php (modified) (6 diffs)
-
admin/class-aec-admin-recurring-events.php (modified) (15 diffs)
-
admin/class-aec-admin-settings.php (modified) (4 diffs)
-
admin/class-aec-admin.php (modified) (4 diffs)
-
admin/css/aec-admin.css (modified) (1 diff)
-
admin/js/aec-admin.js (modified) (1 diff)
-
another-events-calendar.php (modified) (3 diffs)
-
includes/class-aec-activator.php (modified) (3 diffs)
-
includes/class-aec.php (modified) (4 diffs)
-
includes/helper-functions.php (modified) (8 diffs)
-
languages/another-events-calendar.pot (modified) (60 diffs)
-
public/class-aec-public-calendar.php (modified) (4 diffs)
-
public/class-aec-public-categories.php (modified) (3 diffs)
-
public/class-aec-public-events.php (modified) (8 diffs)
-
public/class-aec-public-map.php (added)
-
public/class-aec-public-organizers.php (modified) (3 diffs)
-
public/class-aec-public-search.php (modified) (4 diffs)
-
public/class-aec-public-tags.php (modified) (2 diffs)
-
public/class-aec-public-user.php (modified) (14 diffs)
-
public/class-aec-public-venues.php (modified) (5 diffs)
-
public/class-aec-public.php (modified) (3 diffs)
-
public/css/aec-public.css (modified) (5 diffs)
-
public/images/m1.png (added)
-
public/images/m2.png (added)
-
public/images/m3.png (added)
-
public/images/m4.png (added)
-
public/images/m5.png (added)
-
public/js/aec-public.js (modified) (8 diffs)
-
public/js/markerclusterer.js (added)
-
public/partials/calendar/aec-public-calendar-daily-display.php (modified) (2 diffs)
-
public/partials/calendar/aec-public-calendar-monthly-display.php (modified) (1 diff)
-
public/partials/calendar/aec-public-calendar-weekly-display.php (modified) (2 diffs)
-
public/partials/categories/aec-public-categories-display.php (modified) (1 diff)
-
public/partials/categories/aec-public-category-header-display.php (modified) (1 diff)
-
public/partials/events/aec-public-events-blog-display.php (modified) (2 diffs)
-
public/partials/events/aec-public-events-grid-display.php (modified) (2 diffs)
-
public/partials/events/aec-public-events-map-display.php (added)
-
public/partials/events/aec-public-events-table-display.php (modified) (2 diffs)
-
public/partials/events/aec-public-single-event-display.php (modified) (4 diffs)
-
public/partials/map (added)
-
public/partials/map/aec-public-map-display.php (added)
-
public/partials/map/index.php (added)
-
public/partials/tags/aec-public-tag-header-display.php (modified) (1 diff)
-
public/partials/user/aec-public-edit-event-display.php (modified) (9 diffs)
-
public/partials/user/aec-public-edit-organizer-display.php (modified) (1 diff)
-
public/partials/user/aec-public-edit-venue-display.php (modified) (2 diffs)
-
public/partials/user/aec-public-manage-events-display.php (modified) (2 diffs)
-
public/partials/user/aec-public-manage-organizers-display.php (modified) (1 diff)
-
public/partials/user/aec-public-manage-venues-display.php (modified) (1 diff)
-
public/partials/venues/aec-public-venue-header-display.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
-
widgets/mini-calender/mini-calendar.php (modified) (1 diff)
-
widgets/past-events (added)
-
widgets/past-events/index.php (added)
-
widgets/past-events/past-events.php (added)
-
widgets/past-events/views (added)
-
widgets/past-events/views/form.php (added)
-
widgets/past-events/views/index.php (added)
-
widgets/past-events/views/widget.php (added)
-
widgets/search/search.php (modified) (4 diffs)
-
widgets/search/views/form.php (modified) (1 diff)
-
widgets/search/views/widget.php (modified) (2 diffs)
-
widgets/upcoming-events/upcoming-events.php (modified) (5 diffs)
-
widgets/upcoming-events/views/form.php (modified) (1 diff)
-
widgets/upcoming-events/views/widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
another-events-calendar/trunk/README.txt
r1601299 r1678088 4 4 Tags: calendar, events, event, booking, registration, event management, venue, map, location 5 5 Requires at least: 4.4.0 6 Tested up to: 4. 7.27 Stable tag: 1. 6.06 Tested up to: 4.8 7 Stable tag: 1.7.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 36 36 * Allow users to add their Events, Venues & Organizers through front-end. 37 * Showcase your Events in 4nice layouts,37 * Showcase your Events in 5 nice layouts, 38 38 * Calendar (Monthly, Weekly & Daily) 39 39 * Table 40 40 * Grid 41 41 * Blog 42 * Map 42 43 * Show Events by Category 43 44 * Show Events by Location … … 57 58 * Search by a date range 58 59 * Widget to show upcoming events 60 * Widget to show past events 59 61 * Widget to show events using a mini calendar 60 62 … … 94 96 == Changelog == 95 97 98 = 1.7.0 = 99 100 * New: Map View. Added new shortcode [aec_map] to show Events in a Google Map. 101 * New: Added new [aec_events] shortcode attribute 'filterby=past_events' to only show the Past Events. 102 * New: Widget to show Past Events. 103 * New: Added new setting to disable Event Categories. 104 * Fix: [+] Few minor bug fixes. 105 96 106 = 1.6.0 = 97 107 … … 129 139 == Upgrade Notice == 130 140 141 = 1.7.0 = 142 143 * New: Map View. Added new shortcode [aec_map] to show Events in a Google Map. 144 * New: Added new [aec_events] shortcode attribute 'filterby=past_events' to only show the Past Events. 145 * New: Widget to show Past Events. 146 * New: Added new setting to disable Event Categories. 147 * Fix: [+] Few minor bug fixes. 148 131 149 = 1.6.0 = 132 150 -
another-events-calendar/trunk/admin/class-aec-admin-categories.php
r1601299 r1678088 29 29 */ 30 30 public function register_taxonomy() { 31 32 $general_settings = get_option( 'aec_general_settings' ); 31 33 32 $labels = array( 33 'name' => _x( 'Categories', 'Taxonomy General Name', 'another-events-calendar' ), 34 'singular_name' => _x( 'Category', 'Taxonomy Singular Name', 'another-events-calendar' ), 35 'menu_name' => __( 'Event Categories', 'another-events-calendar' ), 36 'all_items' => __( 'All Categories', 'another-events-calendar' ), 37 'parent_item' => __( 'Parent Category', 'another-events-calendar' ), 38 'parent_item_colon' => __( 'Parent Category:', 'another-events-calendar' ), 39 'new_item_name' => __( 'New Category Name', 'another-events-calendar' ), 40 'add_new_item' => __( 'Add New Category', 'another-events-calendar' ), 41 'edit_item' => __( 'Edit Category', 'another-events-calendar' ), 42 'update_item' => __( 'Update Category', 'another-events-calendar' ), 43 'view_item' => __( 'View Category', 'another-events-calendar' ), 44 'separate_items_with_commas' => __( 'Separate Categories with commas', 'another-events-calendar' ), 45 'add_or_remove_items' => __( 'Add or remove Categories', 'another-events-calendar' ), 46 'choose_from_most_used' => __( 'Choose from the most used', 'another-events-calendar' ), 47 'popular_items' => NULL, 48 'search_items' => __( 'Search Categories', 'another-events-calendar' ), 49 'not_found' => __( 'Not Found', 'another-events-calendar' ), 50 ); 34 if( ! empty( $general_settings['has_categories'] ) ) { 51 35 52 $args = array( 53 'labels' => $labels, 54 'hierarchical' => true, 55 'public' => true, 56 'show_ui' => true, 57 'show_admin_column' => true, 58 'show_in_nav_menus' => true, 59 'show_tagcloud' => false, 60 'query_var' => true, 61 'capabilities' => array( 62 'manage_terms' => 'manage_aec_options', 63 'edit_terms' => 'manage_aec_options', 64 'delete_terms' => 'manage_aec_options', 65 'assign_terms' => 'edit_aec_events' 66 ) 67 ); 36 $labels = array( 37 'name' => _x( 'Categories', 'Taxonomy General Name', 'another-events-calendar' ), 38 'singular_name' => _x( 'Category', 'Taxonomy Singular Name', 'another-events-calendar' ), 39 'menu_name' => __( 'Event Categories', 'another-events-calendar' ), 40 'all_items' => __( 'All Categories', 'another-events-calendar' ), 41 'parent_item' => __( 'Parent Category', 'another-events-calendar' ), 42 'parent_item_colon' => __( 'Parent Category:', 'another-events-calendar' ), 43 'new_item_name' => __( 'New Category Name', 'another-events-calendar' ), 44 'add_new_item' => __( 'Add New Category', 'another-events-calendar' ), 45 'edit_item' => __( 'Edit Category', 'another-events-calendar' ), 46 'update_item' => __( 'Update Category', 'another-events-calendar' ), 47 'view_item' => __( 'View Category', 'another-events-calendar' ), 48 'separate_items_with_commas' => __( 'Separate Categories with commas', 'another-events-calendar' ), 49 'add_or_remove_items' => __( 'Add or remove Categories', 'another-events-calendar' ), 50 'choose_from_most_used' => __( 'Choose from the most used', 'another-events-calendar' ), 51 'popular_items' => NULL, 52 'search_items' => __( 'Search Categories', 'another-events-calendar' ), 53 'not_found' => __( 'Not Found', 'another-events-calendar' ), 54 ); 55 56 $args = array( 57 'labels' => $labels, 58 'hierarchical' => true, 59 'public' => true, 60 'show_ui' => true, 61 'show_admin_column' => true, 62 'show_in_nav_menus' => true, 63 'show_tagcloud' => false, 64 'query_var' => true, 65 'capabilities' => array( 66 'manage_terms' => 'manage_aec_options', 67 'edit_terms' => 'manage_aec_options', 68 'delete_terms' => 'manage_aec_options', 69 'assign_terms' => 'edit_aec_events' 70 ) 71 ); 68 72 69 register_taxonomy( 'aec_categories', array( 'aec_events', 'aec_recurring_events' ), $args ); 73 register_taxonomy( 'aec_categories', array( 'aec_events', 'aec_recurring_events' ), $args ); 74 75 } 70 76 71 77 } -
another-events-calendar/trunk/admin/class-aec-admin-events.php
r1601299 r1678088 165 165 array( 166 166 'post_type' => 'aec_venues', 167 'posts_per_page' => '-1' 167 'posts_per_page' => '-1', 168 'orderby' => 'title', 169 'order' => 'ASC' 168 170 ) 169 171 ); … … 194 196 $organizers_list = get_posts( 195 197 array( 196 'post_type' => 'aec_organizers', 197 'posts_per_page' => '-1' 198 'post_type' => 'aec_organizers', 199 'posts_per_page' => '-1', 200 'orderby' => 'title', 201 'order' => 'ASC' 198 202 ) 199 203 ); … … 352 356 353 357 } 354 358 355 359 if( ! empty( $organizer_ids ) ) { 356 360 update_post_meta( $post_id, 'organizers', $organizer_ids ); … … 373 377 global $typenow; 374 378 375 $post_type = 'aec_events'; 376 $taxonomy = 'aec_categories'; 377 378 if( $typenow == $post_type ) { 379 380 $selected = isset( $_GET[ $taxonomy ] ) ? (int) $_GET[ $taxonomy ] : ''; 381 $info_taxonomy = get_taxonomy( $taxonomy ); 382 383 wp_dropdown_categories( array( 384 'show_option_none' => __( "Show All {$info_taxonomy->label}" ), 385 'taxonomy' => $taxonomy, 386 'name' => $taxonomy, 387 'orderby' => 'name', 388 'selected' => $selected, 389 'hierarchical' => true, 390 'hide_empty' => false, 391 )); 392 379 $general_settings = get_option( 'aec_general_settings' ); 380 381 if( ! empty( $general_settings['has_categories'] ) ) { 382 383 $post_type = 'aec_events'; 384 $taxonomy = 'aec_categories'; 385 386 if( $typenow == $post_type ) { 387 388 $selected = isset( $_GET[ $taxonomy ] ) ? (int) $_GET[ $taxonomy ] : ''; 389 $info_taxonomy = get_taxonomy( $taxonomy ); 390 391 wp_dropdown_categories( array( 392 'show_option_none' => __( "Show All {$info_taxonomy->label}" ), 393 'taxonomy' => $taxonomy, 394 'name' => $taxonomy, 395 'orderby' => 'name', 396 'selected' => $selected, 397 'hierarchical' => true, 398 'hide_empty' => false, 399 )); 400 401 } 393 402 } 394 403 … … 451 460 * @return array Updated column names. 452 461 */ 453 function manage_posts_columns( $columns ) {462 public function manage_posts_columns( $columns ) { 454 463 464 $general_settings = get_option( 'aec_general_settings' ); 465 455 466 $n_columns = array(); 456 467 … … 459 470 foreach( $columns as $key => $value ) { 460 471 if( 'author' == $key ) { 461 $n_columns['taxonomy-aec_categories'] = __( 'Categories', 'another-events-calendar' );472 if( ! empty( $general_settings['has_categories'] ) ) $n_columns['taxonomy-aec_categories'] = __( 'Categories', 'another-events-calendar' ); 462 473 $n_columns['start_date'] = __( 'Start Date','another-events-calendar' ); 463 474 $n_columns['end_date'] = __( 'End Date', 'another-events-calendar' ); -
another-events-calendar/trunk/admin/class-aec-admin-recurring-events.php
r1601299 r1678088 188 188 array( 189 189 'post_type' => 'aec_venues', 190 'posts_per_page' => '-1' 190 'posts_per_page' => '-1', 191 'orderby' => 'title', 192 'order' => 'ASC' 191 193 ) 192 194 ); … … 214 216 $organizers_list = get_posts( 215 217 array( 216 'post_type' => 'aec_organizers', 217 'posts_per_page' => '-1' 218 'post_type' => 'aec_organizers', 219 'posts_per_page' => '-1', 220 'orderby' => 'title', 221 'order' => 'ASC' 218 222 ) 219 223 ); … … 378 382 if( ! empty( $meta['organizer_ids'] ) ) { 379 383 update_post_meta( $post_id, 'organizers', $meta['organizer_ids'] ); 384 } else { 385 delete_post_meta( $post_id, 'organizers' ); 380 386 } 381 387 … … 484 490 * @param array $meta Post Meta. 485 491 */ 486 function process_daily_events( $post, $meta ) {492 public function process_daily_events( $post, $meta ) { 487 493 488 494 $start_date = new DateTime( $meta['start_date_time'] ); … … 514 520 * @param int $occurences Number of Occurences. 515 521 */ 516 function process_weekly_events( $post, $meta, $start_date = '', $occurences = 0 ) {522 public function process_weekly_events( $post, $meta, $start_date = '', $occurences = 0 ) { 517 523 518 524 if( '' == $start_date ) { … … 531 537 if( ! in_array( $date->format('w'), $meta['repeat_week_days'] ) ) continue; 532 538 533 if( $date->format('U') > $initial_start_date->format('U') ) {539 if( $date->format('U') >= $initial_start_date->format('U') ) { 534 540 $this->add_event( $post, $meta, $date ); 535 541 … … 556 562 foreach( $_period as $_date ) { 557 563 if( ! in_array( $_date->format('w'), $meta['repeat_week_days'] ) ) continue; 558 if( $_date->format('U') > $initial_start_date->format('U') && $_date->format('U') <= $end->format('U') ) $this->add_event( $post, $meta, $_date );564 if( $_date->format('U') >= $initial_start_date->format('U') && $_date->format('U') <= $end->format('U') ) $this->add_event( $post, $meta, $_date ); 559 565 } 560 566 … … 574 580 * @param int $occurences Number of Occurences. 575 581 */ 576 function process_monthly_events( $post, $meta, $start_date = '', $occurences = 0 ) {582 public function process_monthly_events( $post, $meta, $start_date = '', $occurences = 0 ) { 577 583 578 584 if( '' == $start_date ) { … … 592 598 if( ! in_array($date->format('j'), (array) $meta['repeat_month_days'] ) ) continue; 593 599 594 if( $date->format('U') > $initial_start_date->format('U') ) {600 if( $date->format('U') >= $initial_start_date->format('U') ) { 595 601 $this->add_event( $post, $meta, $date ); 596 602 … … 618 624 foreach( $_period as $_date ) { 619 625 if( ! in_array( $_date->format( 'j' ), (array) $meta['repeat_month_days'] ) ) continue; 620 if( $_date->format('U') > $initial_start_date->format('U') && $_date->format('U') <= $end->format('U') ) $this->add_event( $post, $meta, $_date );626 if( $_date->format('U') >= $initial_start_date->format('U') && $_date->format('U') <= $end->format('U') ) $this->add_event( $post, $meta, $_date ); 621 627 } 622 628 … … 637 643 */ 638 644 public function add_event( $post, $meta, $start_date ) { 639 645 646 $general_settings = get_option( 'aec_general_settings' ); 647 640 648 $args = array( 641 649 'post_type' => 'aec_events', … … 656 664 657 665 update_post_meta( $post_id, 'cost', $meta['cost'] ); 658 update_post_meta( $post_id, 'venue_id', $meta['venue_id'] ); 659 update_post_meta( $post_id, 'organizers', $meta['organizer_ids'] ); 666 667 if( ! empty( $general_settings['has_venues'] ) ) { 668 update_post_meta( $post_id, 'venue_id', $meta['venue_id'] ); 669 } 670 671 if( ! empty( $general_settings['has_organizers'] ) ) { 672 update_post_meta( $post_id, 'organizers', $meta['organizer_ids'] ); 673 } 660 674 661 $terms = get_the_terms( $post->ID , 'aec_categories' ); 662 if( ! empty( $terms ) ) { 663 foreach( $terms as $term ) { 664 wp_set_object_terms( $post_id, $term->term_id , 'aec_categories', true ); 665 } 666 } 667 668 $terms = get_the_terms( $post->ID , 'aec_tags' ); 669 if( ! empty( $terms ) ) { 670 foreach( $terms as $term ) { 671 wp_set_object_terms( $post_id, $term->term_id , 'aec_tags', true ); 675 if( ! empty( $general_settings['has_categories'] ) ) { 676 $terms = get_the_terms( $post->ID , 'aec_categories' ); 677 if( ! empty( $terms ) ) { 678 foreach( $terms as $term ) { 679 wp_set_object_terms( $post_id, $term->term_id , 'aec_categories', true ); 680 } 681 } 682 } 683 684 if( ! empty( $general_settings['has_tags'] ) ) { 685 $terms = get_the_terms( $post->ID , 'aec_tags' ); 686 if( ! empty( $terms ) ) { 687 foreach( $terms as $term ) { 688 wp_set_object_terms( $post_id, $term->term_id , 'aec_tags', true ); 689 } 672 690 } 673 691 } … … 690 708 global $typenow; 691 709 692 $post_type = 'aec_recurring_events'; 693 $taxonomy = 'aec_categories'; 694 695 if( $typenow == $post_type ) { 696 697 $selected = isset( $_GET[ $taxonomy ] ) ? (int) $_GET[ $taxonomy ] : ''; 698 $info_taxonomy = get_taxonomy( $taxonomy ); 699 700 wp_dropdown_categories( array( 701 'show_option_none' => __( "Show All {$info_taxonomy->label}" ), 702 'taxonomy' => $taxonomy, 703 'name' => $taxonomy, 704 'orderby' => 'name', 705 'selected' => $selected, 706 'hierarchical' => true, 707 'hide_empty' => false, 708 )); 710 $general_settings = get_option( 'aec_general_settings' ); 711 712 if( ! empty( $general_settings['has_categories'] ) ) { 713 714 $post_type = 'aec_recurring_events'; 715 $taxonomy = 'aec_categories'; 716 717 if( $typenow == $post_type ) { 718 719 $selected = isset( $_GET[ $taxonomy ] ) ? (int) $_GET[ $taxonomy ] : ''; 720 $info_taxonomy = get_taxonomy( $taxonomy ); 721 722 wp_dropdown_categories( array( 723 'show_option_none' => __( "Show All {$info_taxonomy->label}" ), 724 'taxonomy' => $taxonomy, 725 'name' => $taxonomy, 726 'orderby' => 'name', 727 'selected' => $selected, 728 'hierarchical' => true, 729 'hide_empty' => false, 730 )); 731 732 } 709 733 710 734 } … … 768 792 * @return array Updated column names. 769 793 */ 770 function manage_posts_columns( $columns ) {794 public function manage_posts_columns( $columns ) { 771 795 796 $general_settings = get_option( 'aec_general_settings' ); 797 772 798 $n_columns = array(); 773 799 … … 776 802 foreach( $columns as $key => $value ) { 777 803 if( 'author' == $key ) { 778 $n_columns['taxonomy-aec_categories'] = __( 'Categories', 'another-events-calendar' );804 if( ! empty( $general_settings['has_categories'] ) ) $n_columns['taxonomy-aec_categories'] = __( 'Categories', 'another-events-calendar' ); 779 805 $n_columns['start_date'] = __( 'Start Date','another-events-calendar' ); 780 806 $n_columns['end_date'] = __( 'End Date', 'another-events-calendar' ); -
another-events-calendar/trunk/admin/class-aec-admin-settings.php
r1601299 r1678088 103 103 104 104 add_settings_field( 105 'aec_general_settings[has_categories]', 106 __( 'Enable Categories', 'another-events-calendar' ), 107 array( $this, 'callback_checkbox' ), 108 $page_hook, 109 'aec_general_settings_section', 110 array( 111 'option_name' => 'aec_general_settings', 112 'field_name' => 'has_categories', 113 'field_label' => __( 'Check this to enable categories', 'another-events-calendar' ) 114 115 ) 116 ); 117 118 add_settings_field( 105 119 'aec_general_settings[has_tags]', 106 120 __( 'Enable Tags', 'another-events-calendar' ), … … 297 311 'table' => __( 'Table view', 'another-events-calendar' ), 298 312 'grid' => __( 'Grid view', 'another-events-calendar' ), 299 'blog' => __( 'Blog view', 'another-events-calendar' ) 313 'blog' => __( 'Blog view', 'another-events-calendar' ), 314 'map' => __( 'Map view', 'another-events-calendar' ) 300 315 ), 301 316 'description' => __( 'You must select at least one view.', 'another-events-calendar' ) … … 315 330 'table' => __( 'Table view', 'another-events-calendar' ), 316 331 'grid' => __( 'Grid view', 'another-events-calendar' ), 317 'blog' => __( 'Blog view', 'another-events-calendar' ) 332 'blog' => __( 'Blog view', 'another-events-calendar' ), 333 'map' => __( 'Map view', 'another-events-calendar' ) 318 334 ) 319 335 ) … … 1165 1181 break; 1166 1182 // Sanitize checkbox 1183 case 'has_categories': 1167 1184 case 'has_tags': 1168 1185 case 'has_venues': -
another-events-calendar/trunk/admin/class-aec-admin.php
r1601299 r1678088 22 22 */ 23 23 class AEC_Admin { 24 24 25 /** 26 * Check and update plugin options to the latest version. 27 * 28 * @since 1.7.0 29 */ 30 public function manage_upgrades() { 31 32 if( AEC_PLUGIN_VERSION !== get_option( 'aec_version' ) ) { 33 34 $default_pages_values = aec_insert_pages(); 35 update_option( 'aec_page_settings', $default_pages_values ); 36 37 $general_settings = get_option( 'aec_general_settings' ); 38 if( ! array_key_exists( 'has_categories', $general_settings ) ) { 39 $general_settings['has_categories'] = 1; 40 update_option( 'aec_general_settings', $general_settings ); 41 } 42 43 // Update plugin version 44 update_option( 'aec_version', AEC_PLUGIN_VERSION ); 45 46 } 47 48 } 25 49 26 50 /** … … 50 74 wp_enqueue_script( AEC_PLUGIN_SLUG, AEC_PLUGIN_URL.'admin/js/aec-admin.js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-datepicker' ), AEC_PLUGIN_VERSION, false ); 51 75 wp_localize_script( AEC_PLUGIN_SLUG, 'aec', array( 52 'zoom_level' => ! empty( $map_settings['zoom_level'] ) ? (int) $map_settings['zoom_level'] : 5 76 'zoom_level' => ! empty( $map_settings['zoom_level'] ) ? (int) $map_settings['zoom_level'] : 5, 77 'i18n_organizer' => __( 'Organizer', 'another-events-calendar' ) 53 78 ) 54 79 ); … … 124 149 * @param string $footer_text WordPress admin footer text. 125 150 * @return string $footer_text Updated footer text. 126 */ 127 public function admin_footer_text( $footer_text ) { 151 */ 152 public function admin_footer_text( $footer_text ) { 128 153 129 154 global $typenow; … … 139 164 ); 140 165 141 } 166 } 142 167 143 168 return $footer_text; -
another-events-calendar/trunk/admin/css/aec-admin.css
r1514741 r1678088 113 113 114 114 .aec-organizer-fields p { 115 width: 24%; 116 text-align: center; 115 padding: 5px; 116 background-color: #0073AA; 117 color: #FFF; 118 text-align: left; 117 119 } 118 120 -
another-events-calendar/trunk/admin/js/aec-admin.js
r1601299 r1678088 196 196 $( '#aec-add-new-organizer' ).on( 'click', function() { 197 197 198 $( '#aec-organizer-fields' ).find( '.aec-organizer-fields p' ).html( '#' + $( '.aec-organizer-fields' ).length );198 $( '#aec-organizer-fields' ).find( '.aec-organizer-fields p' ).html( aec.i18n_organizer + ' #' + $( '.aec-organizer-fields' ).length ); 199 199 var $clone = $( '#aec-organizer-fields' ).find( '.aec-organizer-fields' ).clone( false ); 200 200 $( '#aec-organizer-fields-container' ).append( $clone ); -
another-events-calendar/trunk/another-events-calendar.php
r1601299 r1678088 12 12 * Plugin URI: http://yendif.com/wordpress/another-events-calendar 13 13 * Description: Another Events Calendar is a top-of-the-line event management plugin helps you organize and manage any type of events such as Conferences, Seminars, Meetings, Team Building Events, Trade Shows, Business Dinners, etc... in a very simple way. 14 * Version: 1. 6.014 * Version: 1.7.0 15 15 * Author: Yendif Technologies Pvt Ltd. 16 16 * Author URI: http://yendif.com … … 48 48 // The actuall plugin version 49 49 if( ! defined( 'AEC_PLUGIN_VERSION' ) ) { 50 define( 'AEC_PLUGIN_VERSION', '1. 6.0' );50 define( 'AEC_PLUGIN_VERSION', '1.7.0' ); 51 51 } 52 52 … … 94 94 // Register AEC Widgets 95 95 require_once AEC_PLUGIN_DIR . 'widgets/search/search.php'; 96 require_once AEC_PLUGIN_DIR . 'widgets/past-events/past-events.php'; 96 97 require_once AEC_PLUGIN_DIR . 'widgets/upcoming-events/upcoming-events.php'; 97 98 require_once AEC_PLUGIN_DIR . 'widgets/mini-calender/mini-calendar.php'; -
another-events-calendar/trunk/includes/class-aec-activator.php
r1601299 r1678088 35 35 $default_values = array( 36 36 'bootstrap' => array( 'css', 'javascript' ), 37 'has_categories' => 1, 37 38 'has_tags' => 1, 38 39 'has_venues' => 1, … … 90 91 // Insert pages settings 91 92 if( ! get_option( 'aec_page_settings' ) ) { 92 93 $pages_1 = self::insert_pages(); 94 $pages_2 = self::insert_pages_1_5(); 95 $default_values = array_merge( $pages_1, $pages_2 ); 96 93 94 $default_values = aec_insert_pages(); 97 95 add_option( 'aec_page_settings', $default_values ); 98 99 } else {100 101 $page_settings = get_option( 'aec_page_settings' );102 103 if( ! array_key_exists( 'event_form', $page_settings ) ) {104 $new_pages = self::insert_pages_1_5();105 $new_values = array_merge( $page_settings, $new_pages );106 update_option( 'aec_page_settings', $new_values );107 }108 96 109 97 } … … 156 144 157 145 // Add custom capabilities 158 $roles = new AEC_Roles(); 159 $roles->add_caps(); 146 if( ! get_option( 'aec_version' ) ) { 147 $roles = new AEC_Roles(); 148 $roles->add_caps(); 149 } 160 150 161 update_option( 'aec_version', AEC_PLUGIN_VERSION ); 151 // Add the plugin version number 152 add_option( 'aec_version', AEC_PLUGIN_VERSION ); 162 153 163 } 154 } 164 155 165 /**166 * Insert pages required for the functional flow of the plugin.167 *168 * @since 1.0.0169 */170 public static function insert_pages() {171 172 $pages = array();173 174 // Insert calendar page175 $pages['calendar'] = wp_insert_post( array(176 'post_title' => __( 'Calendar Page', 'another-events-calendar' ),177 'post_type' => 'page',178 'post_name' => 'aec-calendar',179 'comment_status' => 'closed',180 'ping_status' => 'closed',181 'post_content' => '[aec_calendar]',182 'post_status' => 'publish',183 'post_author' => get_current_user_id()184 ));185 186 // Insert events page187 $pages['events'] = wp_insert_post( array(188 'post_title' => __( 'Events Page', 'another-events-calendar' ),189 'post_type' => 'page',190 'post_name' => 'aec-events',191 'comment_status' => 'closed',192 'ping_status' => 'closed',193 'post_content' => '[aec_events]',194 'post_status' => 'publish',195 'post_author' => get_current_user_id()196 ));197 198 // Insert categories page199 $pages['categories'] = wp_insert_post( array(200 'post_title' => __( 'Categories Page', 'another-events-calendar' ),201 'post_type' => 'page',202 'post_name' => 'aec-categories',203 'comment_status' => 'closed',204 'ping_status' => 'closed',205 'post_content' => '[aec_categories]',206 'post_status' => 'publish',207 'post_author' => get_current_user_id()208 ));209 210 // Insert single category page211 $pages['category'] = wp_insert_post( array(212 'post_title' => __( 'Single Category Page', 'another-events-calendar' ),213 'post_type' => 'page',214 'post_name' => 'aec-category',215 'comment_status' => 'closed',216 'ping_status' => 'closed',217 'post_content' => '[aec_category]',218 'post_status' => 'publish',219 'post_author' => get_current_user_id()220 ));221 222 // Insert single tag page223 $pages['tag'] = wp_insert_post( array(224 'post_title' => __( 'Single Tag Page', 'another-events-calendar' ),225 'post_type' => 'page',226 'post_name' => 'aec-tag',227 'comment_status' => 'closed',228 'ping_status' => 'closed',229 'post_content' => '[aec_tag]',230 'post_status' => 'publish',231 'post_author' => get_current_user_id()232 ));233 234 // Insert venue page235 $pages['venue'] = wp_insert_post( array(236 'post_title' => __( 'Single Venue Page', 'another-events-calendar' ),237 'post_type' => 'page',238 'post_name' => 'aec-venue',239 'comment_status' => 'closed',240 'ping_status' => 'closed',241 'post_content' => '[aec_venue]',242 'post_status' => 'publish',243 'post_author' => get_current_user_id()244 ));245 246 // Insert single organizer page247 $pages['organizer'] = wp_insert_post( array(248 'post_title' => __( 'Single Organizer Page', 'another-events-calendar' ),249 'post_type' => 'page',250 'post_name' => 'aec-organizer',251 'comment_status' => 'closed',252 'ping_status' => 'closed',253 'post_content' => '[aec_organizer]',254 'post_status' => 'publish',255 'post_author' => get_current_user_id()256 ));257 258 // Insert search page259 $pages['search'] = wp_insert_post( array(260 'post_title' => __( 'Search Results Page', 'another-events-calendar' ),261 'post_type' => 'page',262 'post_name' => 'aec-search',263 'comment_status' => 'closed',264 'ping_status' => 'closed',265 'post_content' => '[aec_search]',266 'post_status' => 'publish',267 'post_author' => get_current_user_id()268 ));269 270 return $pages;271 272 }273 274 /**275 * Insert pages for version 1.5.0+.276 *277 * @since 1.5.0278 */279 public static function insert_pages_1_5() {280 281 $pages = array();282 283 // Insert event form page284 $pages['event_form'] = wp_insert_post( array(285 'post_title' => __( 'Add New Event', 'another-events-calendar' ),286 'post_type' => 'page',287 'post_name' => 'aec-event-form',288 'comment_status' => 'closed',289 'ping_status' => 'closed',290 'post_content' => '[aec_event_form]',291 'post_status' => 'publish',292 'post_author' => get_current_user_id()293 ));294 295 // Insert manage evente page296 $pages['manage_events'] = wp_insert_post( array(297 'post_title' => __( 'Manage Events', 'another-events-calendar' ),298 'post_type' => 'page',299 'post_name' => 'aec-manage-events',300 'comment_status' => 'closed',301 'ping_status' => 'closed',302 'post_content' => '[aec_manage_events]',303 'post_status' => 'publish',304 'post_author' => get_current_user_id()305 ));306 307 // Insert venue form page308 $pages['venue_form'] = wp_insert_post( array(309 'post_title' => __( 'Add New Venue', 'another-events-calendar' ),310 'post_type' => 'page',311 'post_name' => 'aec-venue-form',312 'comment_status' => 'closed',313 'ping_status' => 'closed',314 'post_content' => '[aec_venue_form]',315 'post_status' => 'publish',316 'post_author' => get_current_user_id()317 ));318 319 // Insert manage venues page320 $pages['manage_venues'] = wp_insert_post( array(321 'post_title' => __( 'Manage Venues', 'another-events-calendar' ),322 'post_type' => 'page',323 'post_name' => 'aec-manage-venues',324 'comment_status' => 'closed',325 'ping_status' => 'closed',326 'post_content' => '[aec_manage_venues]',327 'post_status' => 'publish',328 'post_author' => get_current_user_id()329 ));330 331 // Insert organizer form page332 $pages['organizer_form'] = wp_insert_post( array(333 'post_title' => __( 'Add New Organizer', 'another-events-calendar' ),334 'post_type' => 'page',335 'post_name' => 'aec-organizer-form',336 'comment_status' => 'closed',337 'ping_status' => 'closed',338 'post_content' => '[aec_organizer_form]',339 'post_status' => 'publish',340 'post_author' => get_current_user_id()341 ));342 343 // Insert manage organizers page344 $pages['manage_organizers'] = wp_insert_post( array(345 'post_title' => __( 'Manage Organizers', 'another-events-calendar' ),346 'post_type' => 'page',347 'post_name' => 'aec-manage-organizers',348 'comment_status' => 'closed',349 'ping_status' => 'closed',350 'post_content' => '[aec_manage_organizers]',351 'post_status' => 'publish',352 'post_author' => get_current_user_id()353 ));354 355 return $pages;356 357 }358 359 156 } -
another-events-calendar/trunk/includes/class-aec.php
r1601299 r1678088 108 108 require_once AEC_PLUGIN_DIR . 'public/class-aec-public-calendar.php'; 109 109 require_once AEC_PLUGIN_DIR . 'public/class-aec-public-events.php'; 110 require_once AEC_PLUGIN_DIR . 'public/class-aec-public-map.php'; 110 111 require_once AEC_PLUGIN_DIR . 'public/class-aec-public-search.php'; 111 112 require_once AEC_PLUGIN_DIR . 'public/class-aec-public-venues.php'; … … 144 145 $plugin_admin = new AEC_Admin(); 145 146 147 $this->loader->add_action( 'wp_loaded', $plugin_admin, 'manage_upgrades' ); 146 148 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); 147 149 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); … … 234 236 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 235 237 238 // implement a filter for the post link title 236 239 $this->loader->add_filter( 'the_title', $plugin_public, 'the_title', 99 ); 240 $this->loader->add_filter( 'single_post_title', $plugin_public, 'the_title', 99 ); 241 242 // implement a filter for the page title. Support WordPress < 4.4 243 $this->loader->add_filter( 'wp_title', $plugin_public, 'wp_title', 99, 3 ); 244 245 // implement a filter for the page title. Support WordPress >= 4.4 246 $this->loader->add_filter( 'pre_get_document_title', $plugin_public, 'pre_get_document_title', 999 ); 247 $this->loader->add_filter( 'document_title_parts', $plugin_public, 'document_title_parts' ); 237 248 238 249 // Hooks specific to categor(ies) page … … 247 258 $this->loader->add_filter( 'post_thumbnail_html', $plugin_events, 'post_thumbnail_html' ); 248 259 $this->loader->add_filter( 'the_content', $plugin_events, 'the_content' ); 260 261 // Hooks specific to map page 262 $plugin_map = new AEC_Public_Map(); 249 263 250 264 // Hooks specific to search results page -
another-events-calendar/trunk/includes/helper-functions.php
r1601299 r1678088 12 12 13 13 // Exit if accessed directly 14 if( ! defined( 'WPINC' ) ) { 14 if( ! defined( 'WPINC' ) ) { 15 15 die; 16 16 } … … 36 36 return $pages; 37 37 38 } 39 40 /** 41 * Insert required custom pages. 42 * 43 * @since 1.7.0 44 */ 45 function aec_insert_pages() { 46 47 global $wpdb; 48 49 $page_settings = get_option( 'aec_page_settings', array() ); 50 $pages = array(); 51 52 // Calendar Page 53 if( array_key_exists( 'calendar', $page_settings ) ) { 54 55 $pages['calendar'] = $page_settings['calendar']; 56 57 } else { 58 59 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_calendar]%' LIMIT 1" ); 60 61 if( ! $post_id ) { 62 $pages['calendar'] = wp_insert_post( array( 63 'post_title' => __( 'Calendar Page', 'another-events-calendar' ), 64 'post_type' => 'page', 65 'post_name' => 'aec-calendar', 66 'comment_status' => 'closed', 67 'ping_status' => 'closed', 68 'post_content' => '[aec_calendar]', 69 'post_status' => 'publish', 70 'post_author' => get_current_user_id() 71 )); 72 } 73 } 74 75 // Events Page 76 if( array_key_exists( 'events', $page_settings ) ) { 77 78 $pages['events'] = $page_settings['events']; 79 80 } else { 81 82 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_events]%' LIMIT 1" ); 83 if( ! $post_id ) { 84 $pages['events'] = wp_insert_post( array( 85 'post_title' => __( 'Events Page', 'another-events-calendar' ), 86 'post_type' => 'page', 87 'post_name' => 'aec-events', 88 'comment_status' => 'closed', 89 'ping_status' => 'closed', 90 'post_content' => '[aec_map]<br />[aec_events]', 91 'post_status' => 'publish', 92 'post_author' => get_current_user_id() 93 )); 94 } 95 } 96 97 // Categories Page 98 if( array_key_exists( 'categories', $page_settings ) ) { 99 100 $pages['categories'] = $page_settings['categories']; 101 102 } else { 103 104 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_categories]%' LIMIT 1" ); 105 if( ! $post_id ) { 106 $pages['categories'] = wp_insert_post( array( 107 'post_title' => __( 'Categories Page', 'another-events-calendar' ), 108 'post_type' => 'page', 109 'post_name' => 'aec-categories', 110 'comment_status' => 'closed', 111 'ping_status' => 'closed', 112 'post_content' => '[aec_categories]', 113 'post_status' => 'publish', 114 'post_author' => get_current_user_id() 115 )); 116 } 117 } 118 119 // Single Category Page 120 if( array_key_exists( 'category', $page_settings ) ) { 121 122 $pages['category'] = $page_settings['category']; 123 124 } else { 125 126 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_category]%' LIMIT 1" ); 127 if( ! $post_id ) { 128 $pages['category'] = wp_insert_post( array( 129 'post_title' => __( 'Single Category Page', 'another-events-calendar' ), 130 'post_type' => 'page', 131 'post_name' => 'aec-category', 132 'comment_status' => 'closed', 133 'ping_status' => 'closed', 134 'post_content' => '[aec_map]<br />[aec_category]', 135 'post_status' => 'publish', 136 'post_author' => get_current_user_id() 137 )); 138 } 139 } 140 141 // Single Tag Page 142 if( array_key_exists( 'tag', $page_settings ) ) { 143 144 $pages['tag'] = $page_settings['tag']; 145 146 } else { 147 148 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_tag]%' LIMIT 1" ); 149 if( ! $post_id ) { 150 $pages['tag'] = wp_insert_post( array( 151 'post_title' => __( 'Single Tag Page', 'another-events-calendar' ), 152 'post_type' => 'page', 153 'post_name' => 'aec-tag', 154 'comment_status' => 'closed', 155 'ping_status' => 'closed', 156 'post_content' => '[aec_map]<br />[aec_tag]', 157 'post_status' => 'publish', 158 'post_author' => get_current_user_id() 159 )); 160 } 161 } 162 163 // Single Venue Page 164 if( array_key_exists( 'venue', $page_settings ) ) { 165 166 $pages['venue'] = $page_settings['venue']; 167 168 } else { 169 170 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_venue]%' LIMIT 1" ); 171 if( ! $post_id ) { 172 $pages['venue'] = wp_insert_post( array( 173 'post_title' => __( 'Single Venue Page', 'another-events-calendar' ), 174 'post_type' => 'page', 175 'post_name' => 'aec-venue', 176 'comment_status' => 'closed', 177 'ping_status' => 'closed', 178 'post_content' => '[aec_venue]', 179 'post_status' => 'publish', 180 'post_author' => get_current_user_id() 181 )); 182 } 183 } 184 185 // Single Organizer Page 186 if( array_key_exists( 'organizer', $page_settings ) ) { 187 188 $pages['organizer'] = $page_settings['organizer']; 189 190 } else { 191 192 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_organizer]%' LIMIT 1" ); 193 if( ! $post_id ) { 194 $pages['organizer'] = wp_insert_post( array( 195 'post_title' => __( 'Single Organizer Page', 'another-events-calendar' ), 196 'post_type' => 'page', 197 'post_name' => 'aec-organizer', 198 'comment_status' => 'closed', 199 'ping_status' => 'closed', 200 'post_content' => '[aec_map]<br />[aec_organizer]', 201 'post_status' => 'publish', 202 'post_author' => get_current_user_id() 203 )); 204 } 205 } 206 207 // Search Results Page 208 if( array_key_exists( 'search', $page_settings ) ) { 209 210 $pages['search'] = $page_settings['search']; 211 212 } else { 213 214 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_search]%' LIMIT 1" ); 215 if( ! $post_id ) { 216 $pages['search'] = wp_insert_post( array( 217 'post_title' => __( 'Search Results Page', 'another-events-calendar' ), 218 'post_type' => 'page', 219 'post_name' => 'aec-search', 220 'comment_status' => 'closed', 221 'ping_status' => 'closed', 222 'post_content' => '[aec_search]', 223 'post_status' => 'publish', 224 'post_author' => get_current_user_id() 225 )); 226 } 227 } 228 229 // Event Submission Form 230 if( array_key_exists( 'event_form', $page_settings ) ) { 231 232 $pages['event_form'] = $page_settings['event_form']; 233 234 } else { 235 236 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_event_form]%' LIMIT 1" ); 237 if( ! $post_id ) { 238 $pages['event_form'] = wp_insert_post( array( 239 'post_title' => __( 'Add New Event', 'another-events-calendar' ), 240 'post_type' => 'page', 241 'post_name' => 'aec-event-form', 242 'comment_status' => 'closed', 243 'ping_status' => 'closed', 244 'post_content' => '[aec_event_form]', 245 'post_status' => 'publish', 246 'post_author' => get_current_user_id() 247 )); 248 } 249 } 250 251 // Manage Events Page 252 if( array_key_exists( 'manage_events', $page_settings ) ) { 253 254 $pages['manage_events'] = $page_settings['manage_events']; 255 256 } else { 257 258 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_manage_events]%' LIMIT 1" ); 259 if( ! $post_id ) { 260 $pages['manage_events'] = wp_insert_post( array( 261 'post_title' => __( 'Manage Events', 'another-events-calendar' ), 262 'post_type' => 'page', 263 'post_name' => 'aec-manage-events', 264 'comment_status' => 'closed', 265 'ping_status' => 'closed', 266 'post_content' => '[aec_manage_events]', 267 'post_status' => 'publish', 268 'post_author' => get_current_user_id() 269 )); 270 } 271 } 272 273 // Venue Form 274 if( array_key_exists( 'venue_form', $page_settings ) ) { 275 276 $pages['venue_form'] = $page_settings['venue_form']; 277 278 } else { 279 280 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_venue_form]%' LIMIT 1" ); 281 if( ! $post_id ) { 282 $pages['venue_form'] = wp_insert_post( array( 283 'post_title' => __( 'Add New Venue', 'another-events-calendar' ), 284 'post_type' => 'page', 285 'post_name' => 'aec-venue-form', 286 'comment_status' => 'closed', 287 'ping_status' => 'closed', 288 'post_content' => '[aec_venue_form]', 289 'post_status' => 'publish', 290 'post_author' => get_current_user_id() 291 )); 292 } 293 } 294 295 // Manage Events 296 if( array_key_exists( 'manage_venues', $page_settings ) ) { 297 298 $pages['manage_venues'] = $page_settings['manage_venues']; 299 300 } else { 301 302 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_manage_venues]%' LIMIT 1" ); 303 if( ! $post_id ) { 304 $pages['manage_venues'] = wp_insert_post( array( 305 'post_title' => __( 'Manage Venues', 'another-events-calendar' ), 306 'post_type' => 'page', 307 'post_name' => 'aec-manage-venues', 308 'comment_status' => 'closed', 309 'ping_status' => 'closed', 310 'post_content' => '[aec_manage_venues]', 311 'post_status' => 'publish', 312 'post_author' => get_current_user_id() 313 )); 314 } 315 } 316 317 // Organizer Form 318 if( array_key_exists( 'organizer_form', $page_settings ) ) { 319 320 $pages['organizer_form'] = $page_settings['organizer_form']; 321 322 } else { 323 324 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_organizer_form]%' LIMIT 1" ); 325 if( ! $post_id ) { 326 $pages['organizer_form'] = wp_insert_post( array( 327 'post_title' => __( 'Add New Organizer', 'another-events-calendar' ), 328 'post_type' => 'page', 329 'post_name' => 'aec-organizer-form', 330 'comment_status' => 'closed', 331 'ping_status' => 'closed', 332 'post_content' => '[aec_organizer_form]', 333 'post_status' => 'publish', 334 'post_author' => get_current_user_id() 335 )); 336 } 337 } 338 339 // Manage Organizers Page 340 if( array_key_exists( 'manage_organizers', $page_settings ) ) { 341 342 $pages['manage_organizers'] = $page_settings['manage_organizers']; 343 344 } else { 345 346 $post_id = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_content='%[aec_manage_organizers]%' LIMIT 1" ); 347 if( ! $post_id ) { 348 $pages['manage_organizers'] = wp_insert_post( array( 349 'post_title' => __( 'Manage Organizers', 'another-events-calendar' ), 350 'post_type' => 'page', 351 'post_name' => 'aec-manage-organizers', 352 'comment_status' => 'closed', 353 'ping_status' => 'closed', 354 'post_content' => '[aec_manage_organizers]', 355 'post_status' => 'publish', 356 'post_author' => get_current_user_id() 357 )); 358 } 359 } 360 361 return $pages; 362 38 363 } 39 364 … … 671 996 } 672 997 673 674 675 998 /** 676 999 * Generate permalink for a tag page. … … 999 1322 1000 1323 if( $website = get_post_meta( $venue_id, 'website', true ) ) { 1001 $meta[] = sprintf( '<a href="%s" target="_blank">%s</a>', $website, $website );1324 $meta[] = sprintf( '<a href="%s" target="_blank" style="word-break: break-all;">%s</a>', $website, $website ); 1002 1325 } 1003 1326 … … 1163 1486 1164 1487 /** 1488 * Display the Footer Text. 1489 * 1490 * @since 1.7.0 1491 */ 1492 function the_footer_text() { 1493 1494 $general_settings = get_option( 'aec_general_settings' ); 1495 1496 if( ! empty( $general_settings['show_credit_link'] ) ) { 1497 echo '<p style="font-size: 12px; margin-top: 10px;">Powered by <a href="https://yendif.com/wordpress/item/another-events-calendar.html" target="_blank">Yendif Technologies</a></p>'; 1498 } 1499 1500 } 1501 1502 /** 1165 1503 * Display the socialshare buttons. 1166 1504 * … … 1301 1639 if( $all_day_event ) { 1302 1640 1303 $formatted_date = date_i18n( get_option( 'date_format' ), strtotime( $start_date_time ) );1641 $formatted_date = '<span class="aec-date">' . date_i18n( get_option( 'date_format' ), strtotime( $start_date_time ) ) . '</span>'; 1304 1642 1305 1643 // If there is end date … … 1313 1651 // If there is day difference 1314 1652 if( $day_diff > 0 ) { 1315 $formatted_date = $formatted_date . ' - ' .date_i18n( get_option( 'date_format' ), strtotime( $end_date_time ) ); 1653 $formatted_date .= '<span class="aec-hyphen-separator">-</span>'; 1654 $formatted_date .= '<span class="aec-date">' . date_i18n( get_option( 'date_format' ), strtotime( $end_date_time ) ) . '</span>'; 1316 1655 } 1317 1656 } 1318 1657 1319 1658 } else { 1320 1321 $formatted_date = date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( $start_date_time ) ); 1322 1659 1660 $start_date = '<span class="aec-date">' . date_i18n( get_option( 'date_format' ), strtotime( $start_date_time ) ) . '</span>'; 1661 $start_time = '<span class="aec-time">' . date_i18n( get_option( 'time_format' ), strtotime( $start_date_time ) ) . '</span>'; 1662 $formatted_date = $start_date . '<span class="aec-space-separator"> </span>' . $start_time; 1663 1323 1664 // If there is end date 1324 1665 if( '0000-00-00 00:00:00' != $end_date_time ) { … … 1328 1669 $interval = $datetime1->diff( $datetime2 ); 1329 1670 $day_diff = $interval->format('%a'); 1330 1671 1331 1672 // If day difference less than 1 day 1332 1673 if( $day_diff < 1 ) { 1333 $formatted_date = $formatted_date . ' - ' .date_i18n( get_option( 'time_format' ), strtotime( $end_date_time ) ); 1674 $formatted_date .= '<span class="aec-hyphen-separator">-</span>'; 1675 $formatted_date .= '<span class="aec-time">' . date_i18n( get_option( 'time_format' ), strtotime( $end_date_time ) ) . '</span>'; 1334 1676 } 1335 1677 1336 1678 // Else 1337 1679 else { 1338 $formatted_date = $formatted_date . ' - ' .date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( $end_date_time ) ); 1680 $formatted_date .= '<span class="aec-hyphen-separator">-</span>'; 1681 1682 $end_date = '<span class="aec-date">' . date_i18n( get_option( 'date_format' ) , strtotime( $end_date_time ) ) . '</span>'; 1683 $end_time = '<span class="aec-time">' . date_i18n( get_option( 'time_format' ), strtotime( $end_date_time ) ) . '</span>'; 1684 $formatted_date .= $end_date . '<span class="aec-space-separator"> </span>' . $end_time; 1339 1685 } 1340 1686 } -
another-events-calendar/trunk/languages/another-events-calendar.pot
r1544926 r1678088 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Another Events Calendar\n" 4 "POT-Creation-Date: 2016-12-01 10:48+0530\n" 5 "PO-Revision-Date: 2016-12-01 10:48+0530\n" 6 "Last-Translator: \n" 3 "Project-Id-Version: another-events-calendar\n" 4 "POT-Creation-Date: 2017-06-13 17:32+0530\n" 5 "PO-Revision-Date: 2017-06-13 17:32+0530\n" 7 6 "Language-Team: \n" 8 "Language: en_US\n"9 7 "MIME-Version: 1.0\n" 10 8 "Content-Type: text/plain; charset=UTF-8\n" 11 9 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 1.8. 9\n"10 "X-Generator: Poedit 1.8.11\n" 13 11 "X-Poedit-Basepath: ..\n" 14 12 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 15 "X-Poedit-SourceCharset: UTF-8\n" 16 "X-Poedit-KeywordsList: __;_e;_x\n" 13 "X-Poedit-KeywordsList: __;_e\n" 14 "Last-Translator: \n" 15 "Language: en_US\n" 17 16 "X-Poedit-SearchPath-0: .\n" 18 17 19 #: admin/class-aec-admin-categories.php:33 admin/class-aec-admin-events.php:458 20 #: admin/class-aec-admin-recurring-events.php:777 21 #: admin/class-aec-admin-settings.php:863 22 msgid "Categories" 23 msgstr "" 24 25 #: admin/class-aec-admin-categories.php:34 26 msgid "Category" 27 msgstr "" 28 29 #: admin/class-aec-admin-categories.php:35 18 #: admin/class-aec-admin-categories.php:39 30 19 #: public/partials/events/aec-public-single-event-display.php:48 31 20 msgid "Event Categories" 32 21 msgstr "" 33 22 34 #: admin/class-aec-admin-categories.php: 3623 #: admin/class-aec-admin-categories.php:40 35 24 msgid "All Categories" 36 25 msgstr "" 37 26 38 #: admin/class-aec-admin-categories.php: 3727 #: admin/class-aec-admin-categories.php:41 39 28 msgid "Parent Category" 40 29 msgstr "" 41 30 42 #: admin/class-aec-admin-categories.php: 3831 #: admin/class-aec-admin-categories.php:42 43 32 msgid "Parent Category:" 44 33 msgstr "" 45 34 46 #: admin/class-aec-admin-categories.php: 3935 #: admin/class-aec-admin-categories.php:43 47 36 msgid "New Category Name" 48 37 msgstr "" 49 38 50 #: admin/class-aec-admin-categories.php:4 039 #: admin/class-aec-admin-categories.php:44 51 40 msgid "Add New Category" 52 41 msgstr "" 53 42 54 #: admin/class-aec-admin-categories.php:4 143 #: admin/class-aec-admin-categories.php:45 55 44 msgid "Edit Category" 56 45 msgstr "" 57 46 58 #: admin/class-aec-admin-categories.php:4 247 #: admin/class-aec-admin-categories.php:46 59 48 msgid "Update Category" 60 49 msgstr "" 61 50 62 #: admin/class-aec-admin-categories.php:4 351 #: admin/class-aec-admin-categories.php:47 63 52 msgid "View Category" 64 53 msgstr "" 65 54 66 #: admin/class-aec-admin-categories.php:4 455 #: admin/class-aec-admin-categories.php:48 67 56 msgid "Separate Categories with commas" 68 57 msgstr "" 69 58 70 #: admin/class-aec-admin-categories.php:4 559 #: admin/class-aec-admin-categories.php:49 71 60 msgid "Add or remove Categories" 72 61 msgstr "" 73 62 74 #: admin/class-aec-admin-categories.php: 46admin/class-aec-admin-tags.php:5063 #: admin/class-aec-admin-categories.php:50 admin/class-aec-admin-tags.php:50 75 64 msgid "Choose from the most used" 76 65 msgstr "" 77 66 78 #: admin/class-aec-admin-categories.php: 4867 #: admin/class-aec-admin-categories.php:52 79 68 msgid "Search Categories" 80 69 msgstr "" 81 70 82 #: admin/class-aec-admin-categories.php: 49admin/class-aec-admin-tags.php:5371 #: admin/class-aec-admin-categories.php:53 admin/class-aec-admin-tags.php:53 83 72 msgid "Not Found" 84 73 msgstr "" 85 74 86 #: admin/class-aec-admin-events.php:41 87 #: public/partials/organizers/aec-public-organizer-header-display.php:35 88 #: public/partials/venues/aec-public-venue-header-display.php:28 89 msgid "Events" 90 msgstr "" 91 92 #: admin/class-aec-admin-events.php:42 admin/class-aec-admin-events.php:44 75 #: admin/class-aec-admin-events.php:43 admin/class-aec-admin.php:126 76 msgid "Another Events Calendar" 77 msgstr "" 78 79 #: admin/class-aec-admin-events.php:44 93 80 msgid "Event" 94 msgstr ""95 96 #: admin/class-aec-admin-events.php:4397 msgid "Another Events Calendar"98 81 msgstr "" 99 82 … … 102 85 msgstr "" 103 86 104 #: admin/class-aec-admin-events.php:46 admin/class-aec-admin-settings.php: 579105 #: includes/ class-aec-activator.php:27687 #: admin/class-aec-admin-events.php:46 admin/class-aec-admin-settings.php:608 88 #: includes/helper-functions.php:239 106 89 #: public/partials/user/aec-public-manage-events-display.php:28 107 90 msgid "Add New Event" … … 144 127 msgstr "" 145 128 146 #: admin/class-aec-admin-events.php: 89147 #: admin/class-aec-admin-recurring-events.php:8 0129 #: admin/class-aec-admin-events.php:90 130 #: admin/class-aec-admin-recurring-events.php:81 148 131 msgid "Time & Date" 149 132 msgstr "" 150 133 151 #: admin/class-aec-admin-events.php:9 0152 #: admin/class-aec-admin-recurring-events.php:8 4153 #: public/partials/user/aec-public-edit-event-display.php:7 4134 #: admin/class-aec-admin-events.php:91 135 #: admin/class-aec-admin-recurring-events.php:85 136 #: public/partials/user/aec-public-edit-event-display.php:77 154 137 msgid "Event Cost" 155 138 msgstr "" 156 139 157 #: admin/class-aec-admin-events.php:9 3158 #: admin/class-aec-admin-recurring-events.php:8 7140 #: admin/class-aec-admin-events.php:94 141 #: admin/class-aec-admin-recurring-events.php:88 159 142 #: admin/partials/events/aec-admin-venues-display.php:12 160 #: public/partials/user/aec-public-edit-event-display.php:2 56143 #: public/partials/user/aec-public-edit-event-display.php:260 161 144 #: widgets/search/views/widget.php:36 162 145 msgid "Select Venue" 163 146 msgstr "" 164 147 165 #: admin/class-aec-admin-events.php:9 7166 #: admin/class-aec-admin-recurring-events.php:9 1148 #: admin/class-aec-admin-events.php:98 149 #: admin/class-aec-admin-recurring-events.php:92 167 150 #: admin/partials/events/aec-admin-organizers-display.php:13 168 #: public/partials/user/aec-public-edit-event-display.php:3 69151 #: public/partials/user/aec-public-edit-event-display.php:385 169 152 msgid "Select Organizers" 170 153 msgstr "" 171 154 172 #: admin/class-aec-admin-events.php:459 173 #: admin/class-aec-admin-recurring-events.php:778 155 #: admin/class-aec-admin-events.php:472 156 #: admin/class-aec-admin-recurring-events.php:804 157 #: admin/class-aec-admin-settings.php:892 158 msgid "Categories" 159 msgstr "" 160 161 #: admin/class-aec-admin-events.php:473 162 #: admin/class-aec-admin-recurring-events.php:805 174 163 msgid "Start Date" 175 164 msgstr "" 176 165 177 #: admin/class-aec-admin-events.php:4 60178 #: admin/class-aec-admin-recurring-events.php: 779166 #: admin/class-aec-admin-events.php:474 167 #: admin/class-aec-admin-recurring-events.php:806 179 168 msgid "End Date" 180 169 msgstr "" 181 170 182 #: admin/class-aec-admin-organizers.php:37183 171 #: admin/class-aec-admin-organizers.php:39 184 172 #: admin/class-aec-admin-organizers.php:41 … … 187 175 msgstr "" 188 176 189 #: admin/class-aec-admin-organizers.php: 38190 #: admin/class-aec-admin-organizers.php:40177 #: admin/class-aec-admin-organizers.php:40 admin/class-aec-admin.php:77 178 #: public/class-aec-public.php:234 191 179 msgid "Organizer" 192 180 msgstr "" 193 181 194 182 #: admin/class-aec-admin-organizers.php:42 195 #: admin/class-aec-admin-settings.php:6 35 includes/class-aec-activator.php:324183 #: admin/class-aec-admin-settings.php:664 includes/helper-functions.php:327 196 184 #: public/partials/user/aec-public-manage-organizers-display.php:28 197 185 msgid "Add New Organizer" … … 218 206 msgstr "" 219 207 220 #: admin/class-aec-admin-organizers.php:7 8221 #: public/partials/user/aec-public-edit-event-display.php:3 64208 #: admin/class-aec-admin-organizers.php:79 209 #: public/partials/user/aec-public-edit-event-display.php:380 222 210 msgid "Organizer Details" 223 211 msgstr "" 224 212 225 #: admin/class-aec-admin-organizers.php:18 6213 #: admin/class-aec-admin-organizers.php:187 226 214 msgid "Enter organizer name" 227 215 msgstr "" 228 216 229 #: admin/class-aec-admin-organizers.php:20 8217 #: admin/class-aec-admin-organizers.php:209 230 218 #: admin/partials/events/aec-admin-organizers-display.php:66 231 219 #: admin/partials/events/aec-admin-venues-display.php:96 232 220 #: admin/partials/organizers/aec-admin-organizers-display.php:20 233 221 #: admin/partials/venues/aec-admin-venues-display.php:67 234 #: public/partials/user/aec-public-edit-event-display.php:33 0235 #: public/partials/user/aec-public-edit-event-display.php:4 22222 #: public/partials/user/aec-public-edit-event-display.php:334 223 #: public/partials/user/aec-public-edit-event-display.php:438 236 224 #: public/partials/user/aec-public-edit-organizer-display.php:59 237 225 #: public/partials/user/aec-public-edit-venue-display.php:89 … … 239 227 msgstr "" 240 228 241 #: admin/class-aec-admin-organizers.php:2 09229 #: admin/class-aec-admin-organizers.php:210 242 230 #: admin/partials/events/aec-admin-organizers-display.php:58 243 231 #: admin/partials/organizers/aec-admin-organizers-display.php:28 244 #: public/partials/user/aec-public-edit-event-display.php:4 15232 #: public/partials/user/aec-public-edit-event-display.php:431 245 233 #: public/partials/user/aec-public-edit-organizer-display.php:66 246 234 #: public/partials/user/aec-public-manage-organizers-display.php:43 … … 248 236 msgstr "" 249 237 250 #: admin/class-aec-admin-organizers.php:21 3251 #: admin/class-aec-admin-settings.php: 394 admin/class-aec-admin-venues.php:250238 #: admin/class-aec-admin-organizers.php:214 239 #: admin/class-aec-admin-settings.php:423 admin/class-aec-admin-venues.php:251 252 240 #: public/partials/user/aec-public-manage-organizers-display.php:42 253 241 msgid "Name" 254 242 msgstr "" 255 243 256 #: admin/class-aec-admin-recurring-events.php:37257 244 #: admin/class-aec-admin-recurring-events.php:39 258 245 #: admin/class-aec-admin-recurring-events.php:41 … … 260 247 msgstr "" 261 248 262 #: admin/class-aec-admin-recurring-events.php:38263 249 #: admin/class-aec-admin-recurring-events.php:40 264 #: public/partials/calendar/aec-public-calendar-daily-display.php:9 7265 #: public/partials/calendar/aec-public-calendar-weekly-display.php:10 3250 #: public/partials/calendar/aec-public-calendar-daily-display.php:98 251 #: public/partials/calendar/aec-public-calendar-weekly-display.php:104 266 252 #: public/partials/events/aec-public-events-blog-display.php:58 267 #: public/partials/events/aec-public-events-grid-display.php:6 0253 #: public/partials/events/aec-public-events-grid-display.php:61 268 254 #: public/partials/events/aec-public-events-table-display.php:67 269 255 #: public/partials/events/aec-public-single-event-display.php:14 270 #: widgets/upcoming-events/views/widget.php:31 256 #: widgets/past-events/views/widget.php:32 257 #: widgets/upcoming-events/views/widget.php:32 271 258 msgid "Recurring Event" 272 259 msgstr "" … … 293 280 294 281 #: admin/class-aec-admin-recurring-events.php:48 widgets/search/search.php:37 295 #: widgets/search/search.php:1 18282 #: widgets/search/search.php:124 296 283 msgid "Search Events" 297 284 msgstr "" 298 285 299 286 #: admin/class-aec-admin-recurring-events.php:49 300 #: public/class-aec-public-categories.php:1 53301 #: public/class-aec-public-organizers.php:1 62302 #: public/class-aec-public-tags.php:1 55 public/class-aec-public-venues.php:165303 #: public/partials/calendar/aec-public-calendar-daily-display.php:1 28304 #: public/partials/calendar/aec-public-calendar-weekly-display.php:1 37287 #: public/class-aec-public-categories.php:187 288 #: public/class-aec-public-organizers.php:170 289 #: public/class-aec-public-tags.php:166 public/class-aec-public-venues.php:177 290 #: public/partials/calendar/aec-public-calendar-daily-display.php:145 291 #: public/partials/calendar/aec-public-calendar-weekly-display.php:154 305 292 msgid "No events found." 306 293 msgstr "" … … 310 297 msgstr "" 311 298 312 #: admin/class-aec-admin-recurring-events.php:8 2299 #: admin/class-aec-admin-recurring-events.php:83 313 300 msgid "Recurring Settings" 314 301 msgstr "" … … 341 328 342 329 #: admin/class-aec-admin-settings.php:106 330 msgid "Enable Categories" 331 msgstr "" 332 333 #: admin/class-aec-admin-settings.php:113 334 msgid "Check this to enable categories" 335 msgstr "" 336 337 #: admin/class-aec-admin-settings.php:120 343 338 msgid "Enable Tags" 344 339 msgstr "" 345 340 346 #: admin/class-aec-admin-settings.php:1 13341 #: admin/class-aec-admin-settings.php:127 347 342 msgid "Check this to enable tags" 348 343 msgstr "" 349 344 350 #: admin/class-aec-admin-settings.php:1 20345 #: admin/class-aec-admin-settings.php:134 351 346 msgid "Enable Venues" 352 347 msgstr "" 353 348 354 #: admin/class-aec-admin-settings.php:1 27349 #: admin/class-aec-admin-settings.php:141 355 350 msgid "Check this to enable venues" 356 351 msgstr "" 357 352 358 #: admin/class-aec-admin-settings.php:1 33353 #: admin/class-aec-admin-settings.php:147 359 354 msgid "Enable Organizers" 360 355 msgstr "" 361 356 362 #: admin/class-aec-admin-settings.php:1 40357 #: admin/class-aec-admin-settings.php:154 363 358 msgid "Check this to enable organizers" 364 359 msgstr "" 365 360 366 #: admin/class-aec-admin-settings.php:1 46361 #: admin/class-aec-admin-settings.php:160 367 362 msgid "Enable Recurring Events" 368 363 msgstr "" 369 364 370 #: admin/class-aec-admin-settings.php:1 53365 #: admin/class-aec-admin-settings.php:167 371 366 msgid "Check this to enable recurring events" 372 367 msgstr "" 373 368 374 #: admin/class-aec-admin-settings.php:1 59369 #: admin/class-aec-admin-settings.php:173 375 370 msgid "Show Comments" 376 371 msgstr "" 377 372 378 #: admin/class-aec-admin-settings.php:1 66373 #: admin/class-aec-admin-settings.php:180 379 374 msgid "Check this to enable comments on event pages" 380 375 msgstr "" 381 376 382 #: admin/class-aec-admin-settings.php:1 72377 #: admin/class-aec-admin-settings.php:186 383 378 msgid "Show Past Events" 384 379 msgstr "" 385 380 386 #: admin/class-aec-admin-settings.php:1 79381 #: admin/class-aec-admin-settings.php:193 387 382 msgid "Check this to show past events" 388 383 msgstr "" 389 384 390 #: admin/class-aec-admin-settings.php:1 85385 #: admin/class-aec-admin-settings.php:199 391 386 msgid "Default Location" 392 387 msgstr "" 393 388 394 #: admin/class-aec-admin-settings.php: 193389 #: admin/class-aec-admin-settings.php:207 395 390 msgid "Select a country that must be pre-selected when adding a new venue." 396 391 msgstr "" 397 392 398 #: admin/class-aec-admin-settings.php:206 399 #: admin/class-aec-admin-settings.php:467 includes/class-aec-activator.php:167 393 #: admin/class-aec-admin-settings.php:213 394 msgid "Show Footer Credit" 395 msgstr "" 396 397 #: admin/class-aec-admin-settings.php:220 398 msgid "" 399 "Check this to show a link to the plugin website at the bottom of your event " 400 "pages." 401 msgstr "" 402 403 #: admin/class-aec-admin-settings.php:233 404 #: admin/class-aec-admin-settings.php:496 includes/helper-functions.php:63 400 405 msgid "Calendar Page" 401 406 msgstr "" 402 407 403 #: admin/class-aec-admin-settings.php:2 13404 #: admin/class-aec-admin-settings.php: 276408 #: admin/class-aec-admin-settings.php:240 409 #: admin/class-aec-admin-settings.php:303 405 410 msgid "View Options" 406 411 msgstr "" 407 412 408 #: admin/class-aec-admin-settings.php:2 21409 #: admin/class-aec-admin-settings.php:2 39413 #: admin/class-aec-admin-settings.php:248 414 #: admin/class-aec-admin-settings.php:266 410 415 msgid "Monthly view" 411 416 msgstr "" 412 417 413 #: admin/class-aec-admin-settings.php:2 22414 #: admin/class-aec-admin-settings.php:2 40418 #: admin/class-aec-admin-settings.php:249 419 #: admin/class-aec-admin-settings.php:267 415 420 msgid "Weekly view" 416 421 msgstr "" 417 422 418 #: admin/class-aec-admin-settings.php:2 23419 #: admin/class-aec-admin-settings.php:2 41423 #: admin/class-aec-admin-settings.php:250 424 #: admin/class-aec-admin-settings.php:268 420 425 msgid "Daily view" 421 426 msgstr "" 422 427 423 #: admin/class-aec-admin-settings.php:2 25424 #: admin/class-aec-admin-settings.php: 288428 #: admin/class-aec-admin-settings.php:252 429 #: admin/class-aec-admin-settings.php:316 425 430 msgid "You must select at least one view." 426 431 msgstr "" 427 432 428 #: admin/class-aec-admin-settings.php:2 31429 #: admin/class-aec-admin-settings.php: 294433 #: admin/class-aec-admin-settings.php:258 434 #: admin/class-aec-admin-settings.php:322 430 435 msgid "Default View" 431 436 msgstr "" 432 437 433 #: admin/class-aec-admin-settings.php:2 48438 #: admin/class-aec-admin-settings.php:275 434 439 msgid "Show all days of multi-day events" 435 440 msgstr "" 436 441 437 #: admin/class-aec-admin-settings.php:2 55442 #: admin/class-aec-admin-settings.php:282 438 443 msgid "" 439 444 "When checked, events running on multiple days will appear on each of those " … … 441 446 msgstr "" 442 447 443 #: admin/class-aec-admin-settings.php:2 69448 #: admin/class-aec-admin-settings.php:296 444 449 msgid "Event Archive Pages" 445 450 msgstr "" 446 451 447 #: admin/class-aec-admin-settings.php: 284448 #: admin/class-aec-admin-settings.php:3 02452 #: admin/class-aec-admin-settings.php:311 453 #: admin/class-aec-admin-settings.php:330 449 454 msgid "Table view" 450 455 msgstr "" 451 456 452 #: admin/class-aec-admin-settings.php: 285453 #: admin/class-aec-admin-settings.php:3 03457 #: admin/class-aec-admin-settings.php:312 458 #: admin/class-aec-admin-settings.php:331 454 459 msgid "Grid view" 455 460 msgstr "" 456 461 457 #: admin/class-aec-admin-settings.php: 286458 #: admin/class-aec-admin-settings.php:3 04462 #: admin/class-aec-admin-settings.php:313 463 #: admin/class-aec-admin-settings.php:332 459 464 msgid "Blog view" 460 465 msgstr "" 461 466 462 #: admin/class-aec-admin-settings.php:311 467 #: admin/class-aec-admin-settings.php:314 468 #: admin/class-aec-admin-settings.php:333 469 msgid "Map view" 470 msgstr "" 471 472 #: admin/class-aec-admin-settings.php:340 463 473 msgid "Order Events By" 464 474 msgstr "" 465 475 466 #: admin/class-aec-admin-settings.php:3 19476 #: admin/class-aec-admin-settings.php:348 467 477 #: public/partials/user/aec-public-manage-events-display.php:42 468 #: widgets/mini-calender/views/form.php:9 widgets/ search/views/form.php:9469 #: widgets/ upcoming-events/views/form.php:9478 #: widgets/mini-calender/views/form.php:9 widgets/past-events/views/form.php:9 479 #: widgets/search/views/form.php:9 widgets/upcoming-events/views/form.php:9 470 480 msgid "Title" 471 481 msgstr "" 472 482 473 #: admin/class-aec-admin-settings.php:3 20483 #: admin/class-aec-admin-settings.php:349 474 484 msgid "Date posted" 475 485 msgstr "" 476 486 477 #: admin/class-aec-admin-settings.php:3 21487 #: admin/class-aec-admin-settings.php:350 478 488 msgid "Event start date" 479 489 msgstr "" 480 490 481 #: admin/class-aec-admin-settings.php:3 28491 #: admin/class-aec-admin-settings.php:357 482 492 msgid "Sort Events By" 483 493 msgstr "" 484 494 485 #: admin/class-aec-admin-settings.php:3 36486 #: admin/class-aec-admin-settings.php:4 10495 #: admin/class-aec-admin-settings.php:365 496 #: admin/class-aec-admin-settings.php:439 487 497 msgid "Ascending" 488 498 msgstr "" 489 499 490 #: admin/class-aec-admin-settings.php:3 37491 #: admin/class-aec-admin-settings.php:4 11500 #: admin/class-aec-admin-settings.php:366 501 #: admin/class-aec-admin-settings.php:440 492 502 msgid "Descending" 493 503 msgstr "" 494 504 495 #: admin/class-aec-admin-settings.php:3 44505 #: admin/class-aec-admin-settings.php:373 496 506 msgid "Number of columns ( grid view only )" 497 507 msgstr "" 498 508 499 #: admin/class-aec-admin-settings.php:3 51509 #: admin/class-aec-admin-settings.php:380 500 510 msgid "" 501 511 "Enter the number of columns in which the events should display in grid view." 502 512 msgstr "" 503 513 504 #: admin/class-aec-admin-settings.php:3 57514 #: admin/class-aec-admin-settings.php:386 505 515 msgid "Number of events to show per page" 506 516 msgstr "" 507 517 508 #: admin/class-aec-admin-settings.php:3 64518 #: admin/class-aec-admin-settings.php:393 509 519 msgid "Enter the maximum number of events to show per page." 510 520 msgstr "" 511 521 512 #: admin/class-aec-admin-settings.php: 377513 #: admin/class-aec-admin-settings.php: 495 includes/class-aec-activator.php:191522 #: admin/class-aec-admin-settings.php:406 523 #: admin/class-aec-admin-settings.php:524 includes/helper-functions.php:107 514 524 msgid "Categories Page" 515 525 msgstr "" 516 526 517 #: admin/class-aec-admin-settings.php: 384527 #: admin/class-aec-admin-settings.php:413 518 528 msgid "Order Categories By" 519 529 msgstr "" 520 530 521 #: admin/class-aec-admin-settings.php: 392531 #: admin/class-aec-admin-settings.php:421 522 532 msgid "Id" 523 533 msgstr "" 524 534 525 #: admin/class-aec-admin-settings.php: 393535 #: admin/class-aec-admin-settings.php:422 526 536 msgid "Count" 527 537 msgstr "" 528 538 529 #: admin/class-aec-admin-settings.php: 395539 #: admin/class-aec-admin-settings.php:424 530 540 msgid "Slug" 531 541 msgstr "" 532 542 533 #: admin/class-aec-admin-settings.php:4 02543 #: admin/class-aec-admin-settings.php:431 534 544 msgid "Sort Categories By" 535 545 msgstr "" 536 546 537 #: admin/class-aec-admin-settings.php:4 18547 #: admin/class-aec-admin-settings.php:447 538 548 msgid "Show Events count next to Category name" 539 549 msgstr "" 540 550 541 #: admin/class-aec-admin-settings.php:4 25551 #: admin/class-aec-admin-settings.php:454 542 552 msgid "Check this to show events count next to the category name" 543 553 msgstr "" 544 554 545 #: admin/class-aec-admin-settings.php:4 31555 #: admin/class-aec-admin-settings.php:460 546 556 msgid "Hide Empty Categories" 547 557 msgstr "" 548 558 549 #: admin/class-aec-admin-settings.php:4 38559 #: admin/class-aec-admin-settings.php:467 550 560 msgid "Check this to hide categories with no events" 551 561 msgstr "" 552 562 553 #: admin/class-aec-admin-settings.php:4 60563 #: admin/class-aec-admin-settings.php:489 554 564 msgid "Configure Pages" 555 565 msgstr "" 556 566 557 #: admin/class-aec-admin-settings.php: 475567 #: admin/class-aec-admin-settings.php:504 558 568 msgid "" 559 569 "This is the page where your events are displayed in calendar. [aec_calendar] " … … 561 571 msgstr "" 562 572 563 #: admin/class-aec-admin-settings.php: 481 includes/class-aec-activator.php:179573 #: admin/class-aec-admin-settings.php:510 includes/helper-functions.php:85 564 574 msgid "Events Page" 565 575 msgstr "" 566 576 567 #: admin/class-aec-admin-settings.php: 489577 #: admin/class-aec-admin-settings.php:518 568 578 msgid "" 569 579 "This is the page where all your events are displayed. [aec_events] shortcode " … … 571 581 msgstr "" 572 582 573 #: admin/class-aec-admin-settings.php:5 03583 #: admin/class-aec-admin-settings.php:532 574 584 msgid "" 575 585 "This is the page where all your event categories are displayed. " … … 577 587 msgstr "" 578 588 579 #: admin/class-aec-admin-settings.php:5 09 includes/class-aec-activator.php:203589 #: admin/class-aec-admin-settings.php:538 includes/helper-functions.php:129 580 590 msgid "Single Category Page" 581 591 msgstr "" 582 592 583 #: admin/class-aec-admin-settings.php:5 17593 #: admin/class-aec-admin-settings.php:546 584 594 msgid "" 585 595 "This is the page where events from a single category are displayed. " … … 587 597 msgstr "" 588 598 589 #: admin/class-aec-admin-settings.php:5 23 includes/class-aec-activator.php:215599 #: admin/class-aec-admin-settings.php:552 includes/helper-functions.php:151 590 600 msgid "Single Tag Page" 591 601 msgstr "" 592 602 593 #: admin/class-aec-admin-settings.php:5 31603 #: admin/class-aec-admin-settings.php:560 594 604 msgid "" 595 605 "This is the page where events from a single tag are displayed. [aec_tag] " … … 597 607 msgstr "" 598 608 599 #: admin/class-aec-admin-settings.php:5 37 includes/class-aec-activator.php:227609 #: admin/class-aec-admin-settings.php:566 includes/helper-functions.php:173 600 610 msgid "Single Venue Page" 601 611 msgstr "" 602 612 603 #: admin/class-aec-admin-settings.php:5 45613 #: admin/class-aec-admin-settings.php:574 604 614 msgid "" 605 615 "This is the page where events from a single venue are displayed. [aec_venue] " … … 607 617 msgstr "" 608 618 609 #: admin/class-aec-admin-settings.php:5 51 includes/class-aec-activator.php:239619 #: admin/class-aec-admin-settings.php:580 includes/helper-functions.php:195 610 620 msgid "Single Organizer Page" 611 621 msgstr "" 612 622 613 #: admin/class-aec-admin-settings.php:5 59623 #: admin/class-aec-admin-settings.php:588 614 624 msgid "" 615 625 "This is the organizer profile page. [aec_organizer] shortcode must be in " … … 617 627 msgstr "" 618 628 619 #: admin/class-aec-admin-settings.php:5 65 includes/class-aec-activator.php:251629 #: admin/class-aec-admin-settings.php:594 includes/helper-functions.php:217 620 630 msgid "Search Results Page" 621 631 msgstr "" 622 632 623 #: admin/class-aec-admin-settings.php: 573633 #: admin/class-aec-admin-settings.php:602 624 634 msgid "" 625 635 "This is the page where the event search results are displayed. [aec_search] " … … 627 637 msgstr "" 628 638 629 #: admin/class-aec-admin-settings.php: 587639 #: admin/class-aec-admin-settings.php:616 630 640 msgid "" 631 641 "This is the form page where the users can add their events in your website. " … … 633 643 msgstr "" 634 644 635 #: admin/class-aec-admin-settings.php: 593 includes/class-aec-activator.php:288645 #: admin/class-aec-admin-settings.php:622 includes/helper-functions.php:261 636 646 msgid "Manage Events" 637 647 msgstr "" 638 648 639 #: admin/class-aec-admin-settings.php:6 01649 #: admin/class-aec-admin-settings.php:630 640 650 msgid "" 641 651 "This is the page where the users can manage(Add/Edit/Delete) their own " … … 643 653 msgstr "" 644 654 645 #: admin/class-aec-admin-settings.php:6 07admin/class-aec-admin-venues.php:42646 #: includes/ class-aec-activator.php:300655 #: admin/class-aec-admin-settings.php:636 admin/class-aec-admin-venues.php:42 656 #: includes/helper-functions.php:283 647 657 #: public/partials/user/aec-public-manage-venues-display.php:28 648 658 msgid "Add New Venue" 649 659 msgstr "" 650 660 651 #: admin/class-aec-admin-settings.php:6 15661 #: admin/class-aec-admin-settings.php:644 652 662 msgid "" 653 663 "This is the form page where the users can add their venues in your website. " … … 655 665 msgstr "" 656 666 657 #: admin/class-aec-admin-settings.php:6 21 includes/class-aec-activator.php:312667 #: admin/class-aec-admin-settings.php:650 includes/helper-functions.php:305 658 668 msgid "Manage Venues" 659 669 msgstr "" 660 670 661 #: admin/class-aec-admin-settings.php:6 29671 #: admin/class-aec-admin-settings.php:658 662 672 msgid "" 663 673 "This is the page where the users can manage(Add/Edit/Delete) their own " … … 665 675 msgstr "" 666 676 667 #: admin/class-aec-admin-settings.php:6 43677 #: admin/class-aec-admin-settings.php:672 668 678 msgid "" 669 679 "This is the form page where the users can add their organizers in your " … … 671 681 msgstr "" 672 682 673 #: admin/class-aec-admin-settings.php:6 49 includes/class-aec-activator.php:336683 #: admin/class-aec-admin-settings.php:678 includes/helper-functions.php:349 674 684 msgid "Manage Organizers" 675 685 msgstr "" 676 686 677 #: admin/class-aec-admin-settings.php:6 57687 #: admin/class-aec-admin-settings.php:686 678 688 msgid "" 679 689 "This is the page where the users can manage(Add/Edit/Delete) their " … … 681 691 msgstr "" 682 692 683 #: admin/class-aec-admin-settings.php: 679693 #: admin/class-aec-admin-settings.php:708 684 694 msgid "Permalink Settings" 685 695 msgstr "" 686 696 687 #: admin/class-aec-admin-settings.php: 686697 #: admin/class-aec-admin-settings.php:715 688 698 msgid "Single event URL slug" 689 699 msgstr "" 690 700 691 #: admin/class-aec-admin-settings.php: 693701 #: admin/class-aec-admin-settings.php:722 692 702 msgid "" 693 703 "A typical single event page will include the alias 'aec_events' in it's URL. " … … 699 709 msgstr "" 700 710 701 #: admin/class-aec-admin-settings.php: 693711 #: admin/class-aec-admin-settings.php:722 702 712 msgid "Example URL" 703 713 msgstr "" 704 714 705 #: admin/class-aec-admin-settings.php:7 06715 #: admin/class-aec-admin-settings.php:735 706 716 msgid "Currency Settings" 707 717 msgstr "" 708 718 709 #: admin/class-aec-admin-settings.php:7 13719 #: admin/class-aec-admin-settings.php:742 710 720 msgid "Currency" 711 721 msgstr "" 712 722 713 #: admin/class-aec-admin-settings.php:7 20723 #: admin/class-aec-admin-settings.php:749 714 724 msgid "Enter the currency value to display with your event prices." 715 725 msgstr "" 716 726 717 #: admin/class-aec-admin-settings.php:7 26727 #: admin/class-aec-admin-settings.php:755 718 728 msgid "Currency Position" 719 729 msgstr "" 720 730 721 #: admin/class-aec-admin-settings.php:7 34731 #: admin/class-aec-admin-settings.php:763 722 732 msgid "Before - $10" 723 733 msgstr "" 724 734 725 #: admin/class-aec-admin-settings.php:7 35735 #: admin/class-aec-admin-settings.php:764 726 736 msgid "After - 10$" 727 737 msgstr "" 728 738 729 #: admin/class-aec-admin-settings.php:7 37739 #: admin/class-aec-admin-settings.php:766 730 740 msgid "Choose the location of the currency sign." 731 741 msgstr "" 732 742 733 #: admin/class-aec-admin-settings.php:7 43743 #: admin/class-aec-admin-settings.php:772 734 744 msgid "Thousands Separator" 735 745 msgstr "" 736 746 737 #: admin/class-aec-admin-settings.php:7 50747 #: admin/class-aec-admin-settings.php:779 738 748 msgid "The symbol (usually , or .) to separate thousands." 739 749 msgstr "" 740 750 741 #: admin/class-aec-admin-settings.php:7 56751 #: admin/class-aec-admin-settings.php:785 742 752 msgid "Decimal Separator" 743 753 msgstr "" 744 754 745 #: admin/class-aec-admin-settings.php:7 63755 #: admin/class-aec-admin-settings.php:792 746 756 msgid "The symbol (usually , or .) to separate decimal points." 747 757 msgstr "" 748 758 749 #: admin/class-aec-admin-settings.php: 776759 #: admin/class-aec-admin-settings.php:805 750 760 msgid "Map Settings" 751 761 msgstr "" 752 762 753 #: admin/class-aec-admin-settings.php: 783763 #: admin/class-aec-admin-settings.php:812 754 764 msgid "Enable Google Maps" 755 765 msgstr "" 756 766 757 #: admin/class-aec-admin-settings.php: 790767 #: admin/class-aec-admin-settings.php:819 758 768 msgid "Check this to enable maps" 759 769 msgstr "" 760 770 761 #: admin/class-aec-admin-settings.php: 796771 #: admin/class-aec-admin-settings.php:825 762 772 msgid "Google Maps API Key" 763 773 msgstr "" 764 774 765 #: admin/class-aec-admin-settings.php:8 03775 #: admin/class-aec-admin-settings.php:832 766 776 msgid "Get A Key" 767 777 msgstr "" 768 778 769 #: admin/class-aec-admin-settings.php:8 09779 #: admin/class-aec-admin-settings.php:838 770 780 msgid "Default Zoom Level" 771 781 msgstr "" 772 782 773 #: admin/class-aec-admin-settings.php:8 16783 #: admin/class-aec-admin-settings.php:845 774 784 msgid "0 = zoomed out; 21 = zoomed in." 775 785 msgstr "" 776 786 777 #: admin/class-aec-admin-settings.php:8 29787 #: admin/class-aec-admin-settings.php:858 778 788 msgid "Social-share Settings" 779 789 msgstr "" 780 790 781 #: admin/class-aec-admin-settings.php:8 36791 #: admin/class-aec-admin-settings.php:865 782 792 msgid "Enable Services" 783 793 msgstr "" 784 794 785 #: admin/class-aec-admin-settings.php:8 44 includes/helper-functions.php:1154795 #: admin/class-aec-admin-settings.php:873 includes/helper-functions.php:1596 786 796 msgid "Facebook" 787 797 msgstr "" 788 798 789 #: admin/class-aec-admin-settings.php:8 45 includes/helper-functions.php:1158799 #: admin/class-aec-admin-settings.php:874 includes/helper-functions.php:1600 790 800 msgid "Twitter" 791 801 msgstr "" 792 802 793 #: admin/class-aec-admin-settings.php:8 46803 #: admin/class-aec-admin-settings.php:875 794 804 msgid "GPlus" 795 805 msgstr "" 796 806 797 #: admin/class-aec-admin-settings.php:8 47 includes/helper-functions.php:1166807 #: admin/class-aec-admin-settings.php:876 includes/helper-functions.php:1608 798 808 msgid "Linkedin" 799 809 msgstr "" 800 810 801 #: admin/class-aec-admin-settings.php:8 48811 #: admin/class-aec-admin-settings.php:877 802 812 msgid "Pinterest" 803 813 msgstr "" 804 814 805 #: admin/class-aec-admin-settings.php:8 55815 #: admin/class-aec-admin-settings.php:884 806 816 msgid "Show in pages" 807 817 msgstr "" 808 818 809 #: admin/class-aec-admin-settings.php:8 64819 #: admin/class-aec-admin-settings.php:893 810 820 msgid "Event archives" 811 821 msgstr "" 812 822 813 #: admin/class-aec-admin-settings.php:8 65823 #: admin/class-aec-admin-settings.php:894 814 824 msgid "Event detail page" 815 825 msgstr "" 816 826 817 #: admin/class-aec-admin-settings.php: 890827 #: admin/class-aec-admin-settings.php:919 818 828 msgid "" 819 829 "During the plugin activation, Another Events Calendar will add some pages " … … 825 835 msgstr "" 826 836 827 #: admin/class-aec-admin-tags.php:37828 msgid "Tags"829 msgstr ""830 831 #: admin/class-aec-admin-tags.php:38832 msgid "Tag"833 msgstr ""834 835 837 #: admin/class-aec-admin-tags.php:39 836 838 #: public/partials/events/aec-public-single-event-display.php:60 … … 886 888 msgstr "" 887 889 888 #: admin/class-aec-admin-venues.php:37 admin/class-aec-admin-venues.php:39 889 #: admin/class-aec-admin-venues.php:41 890 #: admin/class-aec-admin-venues.php:39 admin/class-aec-admin-venues.php:41 890 891 msgid "Venues" 891 892 msgstr "" 892 893 893 #: admin/class-aec-admin-venues.php: 38 admin/class-aec-admin-venues.php:40894 #: public/partials/events/aec-public-single-event-display.php:10 4894 #: admin/class-aec-admin-venues.php:40 895 #: public/partials/events/aec-public-single-event-display.php:105 895 896 msgid "Venue" 896 897 msgstr "" … … 916 917 msgstr "" 917 918 918 #: admin/class-aec-admin-venues.php:7 8919 #: public/partials/user/aec-public-edit-event-display.php:25 1919 #: admin/class-aec-admin-venues.php:79 920 #: public/partials/user/aec-public-edit-event-display.php:255 920 921 msgid "Venue Details" 921 922 msgstr "" 922 923 923 #: admin/class-aec-admin-venues.php:20 3924 #: admin/class-aec-admin-venues.php:204 924 925 msgid "Yes" 925 926 msgstr "" 926 927 927 #: admin/class-aec-admin-venues.php:20 3928 #: admin/class-aec-admin-venues.php:204 928 929 msgid "No" 929 930 msgstr "" 930 931 931 #: admin/class-aec-admin-venues.php:22 3932 #: admin/class-aec-admin-venues.php:224 932 933 msgid "Enter venue name" 933 934 msgstr "" 934 935 935 #: admin/class-aec-admin-venues.php:24 5936 #: public/partials/user/aec-public-edit-event-display.php:30 1936 #: admin/class-aec-admin-venues.php:246 937 #: public/partials/user/aec-public-edit-event-display.php:305 937 938 #: public/partials/user/aec-public-edit-venue-display.php:59 938 939 #: public/partials/user/aec-public-manage-venues-display.php:44 … … 940 941 msgstr "" 941 942 942 #: admin/class-aec-admin-venues.php:24 6943 #: admin/class-aec-admin-venues.php:247 943 944 msgid "Hide Map" 945 msgstr "" 946 947 #: admin/class-aec-admin.php:128 948 msgid "Documentation" 949 msgstr "" 950 951 #: admin/class-aec-admin.php:131 952 msgid "Support E-Mail" 953 msgstr "" 954 955 #: admin/class-aec-admin.php:134 956 msgid "Ask in our Forum" 944 957 msgstr "" 945 958 … … 954 967 955 968 #: admin/partials/events/aec-admin-events-display.php:12 956 #: public/partials/user/aec-public-edit-event-display.php:9 0969 #: public/partials/user/aec-public-edit-event-display.php:93 957 970 msgid "All Day Event" 958 971 msgstr "" 959 972 960 973 #: admin/partials/events/aec-admin-events-display.php:20 961 #: public/partials/user/aec-public-edit-event-display.php: 97974 #: public/partials/user/aec-public-edit-event-display.php:100 962 975 msgid "Start Date & Time" 963 976 msgstr "" 964 977 965 978 #: admin/partials/events/aec-admin-events-display.php:46 966 #: public/partials/user/aec-public-edit-event-display.php:12 4979 #: public/partials/user/aec-public-edit-event-display.php:127 967 980 msgid "End Date & Time" 968 981 msgstr "" 969 982 970 983 #: admin/partials/events/aec-admin-organizers-display.php:32 971 #: public/partials/user/aec-public-edit-event-display.php: 387984 #: public/partials/user/aec-public-edit-event-display.php:403 972 985 msgid "Add another Organizer" 973 986 msgstr "" 974 987 975 988 #: admin/partials/events/aec-admin-organizers-display.php:42 976 #: public/partials/user/aec-public-edit-event-display.php:4 01989 #: public/partials/user/aec-public-edit-event-display.php:417 977 990 #: public/partials/user/aec-public-edit-organizer-display.php:13 978 991 msgid "Organizer Name" … … 983 996 #: admin/partials/organizers/aec-admin-organizers-display.php:12 984 997 #: admin/partials/venues/aec-admin-venues-display.php:59 985 #: includes/helper-functions.php: 893998 #: includes/helper-functions.php:1320 986 999 #: public/partials/organizers/aec-public-organizer-header-display.php:24 987 #: public/partials/user/aec-public-edit-event-display.php:4 081000 #: public/partials/user/aec-public-edit-event-display.php:424 988 1001 #: public/partials/user/aec-public-edit-organizer-display.php:52 989 1002 #: public/partials/user/aec-public-edit-venue-display.php:82 … … 993 1006 994 1007 #: admin/partials/events/aec-admin-venues-display.php:16 995 #: public/partials/user/aec-public-edit-event-display.php:2 591008 #: public/partials/user/aec-public-edit-event-display.php:263 996 1009 msgid "Create New Venue" 997 1010 msgstr "" 998 1011 999 1012 #: admin/partials/events/aec-admin-venues-display.php:33 1000 #: public/partials/user/aec-public-edit-event-display.php:27 31013 #: public/partials/user/aec-public-edit-event-display.php:277 1001 1014 #: public/partials/user/aec-public-manage-venues-display.php:42 1002 1015 msgid "Venue Name" … … 1005 1018 #: admin/partials/events/aec-admin-venues-display.php:41 1006 1019 #: admin/partials/venues/aec-admin-venues-display.php:12 1007 #: public/partials/user/aec-public-edit-event-display.php:28 01020 #: public/partials/user/aec-public-edit-event-display.php:284 1008 1021 #: public/partials/user/aec-public-edit-venue-display.php:38 1009 1022 msgid "Address" … … 1012 1025 #: admin/partials/events/aec-admin-venues-display.php:49 1013 1026 #: admin/partials/venues/aec-admin-venues-display.php:20 1014 #: public/partials/user/aec-public-edit-event-display.php:2 871027 #: public/partials/user/aec-public-edit-event-display.php:291 1015 1028 #: public/partials/user/aec-public-edit-venue-display.php:45 1016 1029 msgid "City" … … 1019 1032 #: admin/partials/events/aec-admin-venues-display.php:57 1020 1033 #: admin/partials/venues/aec-admin-venues-display.php:28 1021 #: public/partials/user/aec-public-edit-event-display.php:29 41034 #: public/partials/user/aec-public-edit-event-display.php:298 1022 1035 #: public/partials/user/aec-public-edit-venue-display.php:52 1023 1036 #: public/partials/user/aec-public-manage-venues-display.php:43 … … 1029 1042 #: admin/partials/venues/aec-admin-venues-display.php:36 1030 1043 #: admin/partials/venues/aec-admin-venues-display.php:40 1031 #: public/partials/user/aec-public-edit-event-display.php:30 41044 #: public/partials/user/aec-public-edit-event-display.php:308 1032 1045 #: public/partials/user/aec-public-edit-venue-display.php:62 1033 1046 msgid "Select Country" … … 1036 1049 #: admin/partials/events/aec-admin-venues-display.php:80 1037 1050 #: admin/partials/venues/aec-admin-venues-display.php:51 1038 #: public/partials/user/aec-public-edit-event-display.php:3 161051 #: public/partials/user/aec-public-edit-event-display.php:320 1039 1052 #: public/partials/user/aec-public-edit-venue-display.php:75 1040 1053 msgid "Postal Code" … … 1043 1056 #: admin/partials/events/aec-admin-venues-display.php:105 1044 1057 #: admin/partials/venues/aec-admin-venues-display.php:76 1045 #: public/partials/user/aec-public-edit-event-display.php:3 511058 #: public/partials/user/aec-public-edit-event-display.php:365 1046 1059 msgid "Hide Google Map" 1047 1060 msgstr "" 1048 1061 1049 1062 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:12 1050 #: public/partials/user/aec-public-edit-event-display.php:1 591063 #: public/partials/user/aec-public-edit-event-display.php:162 1051 1064 msgid "Repeat type" 1052 1065 msgstr "" 1053 1066 1054 1067 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:16 1055 #: public/partials/user/aec-public-edit-event-display.php:16 41068 #: public/partials/user/aec-public-edit-event-display.php:167 1056 1069 msgid "No repeat" 1057 1070 msgstr "" 1058 1071 1059 1072 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:17 1060 #: public/partials/user/aec-public-edit-event-display.php:16 51073 #: public/partials/user/aec-public-edit-event-display.php:168 1061 1074 msgid "Daily" 1062 1075 msgstr "" 1063 1076 1064 1077 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:18 1065 #: public/partials/user/aec-public-edit-event-display.php:16 61078 #: public/partials/user/aec-public-edit-event-display.php:169 1066 1079 msgid "Weekly" 1067 1080 msgstr "" 1068 1081 1069 1082 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:19 1070 #: public/partials/user/aec-public-edit-event-display.php:1 671083 #: public/partials/user/aec-public-edit-event-display.php:170 1071 1084 msgid "Monthly" 1072 1085 msgstr "" … … 1074 1087 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:25 1075 1088 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:34 1076 #: public/partials/user/aec-public-edit-event-display.php:17 41077 #: public/partials/user/aec-public-edit-event-display.php:18 31089 #: public/partials/user/aec-public-edit-event-display.php:177 1090 #: public/partials/user/aec-public-edit-event-display.php:186 1078 1091 msgid "Repeat every" 1079 1092 msgstr "" 1080 1093 1081 1094 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:27 1082 #: public/partials/user/aec-public-edit-event-display.php:17 61095 #: public/partials/user/aec-public-edit-event-display.php:179 1083 1096 msgid "days" 1084 1097 msgstr "" 1085 1098 1086 1099 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:36 1087 #: public/partials/user/aec-public-edit-event-display.php:18 51100 #: public/partials/user/aec-public-edit-event-display.php:188 1088 1101 msgid "weeks" 1089 1102 msgstr "" 1090 1103 1091 1104 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:40 1092 #: public/partials/user/aec-public-edit-event-display.php:1 891105 #: public/partials/user/aec-public-edit-event-display.php:192 1093 1106 msgid "On Days" 1094 1107 msgstr "" … … 1097 1110 #: public/partials/calendar/aec-public-calendar-monthly-display.php:126 1098 1111 #: public/partials/calendar/aec-public-calendar-monthly-display.php:128 1099 #: public/partials/user/aec-public-edit-event-display.php:19 31112 #: public/partials/user/aec-public-edit-event-display.php:196 1100 1113 msgid "SUN" 1101 1114 msgstr "" … … 1103 1116 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:45 1104 1117 #: public/partials/calendar/aec-public-calendar-monthly-display.php:113 1105 #: public/partials/user/aec-public-edit-event-display.php:19 41118 #: public/partials/user/aec-public-edit-event-display.php:197 1106 1119 msgid "MON" 1107 1120 msgstr "" … … 1109 1122 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:46 1110 1123 #: public/partials/calendar/aec-public-calendar-monthly-display.php:114 1111 #: public/partials/user/aec-public-edit-event-display.php:19 51124 #: public/partials/user/aec-public-edit-event-display.php:198 1112 1125 msgid "TUE" 1113 1126 msgstr "" … … 1115 1128 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:47 1116 1129 #: public/partials/calendar/aec-public-calendar-monthly-display.php:115 1117 #: public/partials/user/aec-public-edit-event-display.php:19 61130 #: public/partials/user/aec-public-edit-event-display.php:199 1118 1131 msgid "WED" 1119 1132 msgstr "" … … 1121 1134 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:48 1122 1135 #: public/partials/calendar/aec-public-calendar-monthly-display.php:116 1123 #: public/partials/user/aec-public-edit-event-display.php: 1971136 #: public/partials/user/aec-public-edit-event-display.php:200 1124 1137 msgid "THU" 1125 1138 msgstr "" … … 1127 1140 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:49 1128 1141 #: public/partials/calendar/aec-public-calendar-monthly-display.php:117 1129 #: public/partials/user/aec-public-edit-event-display.php: 1981142 #: public/partials/user/aec-public-edit-event-display.php:201 1130 1143 msgid "FRI" 1131 1144 msgstr "" … … 1133 1146 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:50 1134 1147 #: public/partials/calendar/aec-public-calendar-monthly-display.php:118 1135 #: public/partials/user/aec-public-edit-event-display.php: 1991148 #: public/partials/user/aec-public-edit-event-display.php:202 1136 1149 msgid "SAT" 1137 1150 msgstr "" 1138 1151 1139 1152 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:64 1140 #: public/partials/user/aec-public-edit-event-display.php:21 41153 #: public/partials/user/aec-public-edit-event-display.php:217 1141 1154 msgid "Repeat Every" 1142 1155 msgstr "" 1143 1156 1144 1157 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:66 1145 #: public/partials/user/aec-public-edit-event-display.php:21 61158 #: public/partials/user/aec-public-edit-event-display.php:219 1146 1159 msgid "months" 1147 1160 msgstr "" 1148 1161 1149 1162 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:70 1150 #: public/partials/user/aec-public-edit-event-display.php:22 01163 #: public/partials/user/aec-public-edit-event-display.php:223 1151 1164 msgid "On Dates" 1152 1165 msgstr "" 1153 1166 1154 1167 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:79 1155 #: public/partials/user/aec-public-edit-event-display.php:2 281168 #: public/partials/user/aec-public-edit-event-display.php:231 1156 1169 msgid "Repeat until" 1157 1170 msgstr "" 1158 1171 1159 1172 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:85 1160 #: public/partials/user/aec-public-edit-event-display.php:23 51173 #: public/partials/user/aec-public-edit-event-display.php:238 1161 1174 msgid "Occurrences" 1162 1175 msgstr "" 1163 1176 1164 1177 #: admin/partials/recurring-events/aec-admin-recurring-settings-display.php:91 1165 #: public/partials/user/aec-public-edit-event-display.php:24 11178 #: public/partials/user/aec-public-edit-event-display.php:244 1166 1179 msgid "Date" 1167 1180 msgstr "" … … 1183 1196 msgstr "" 1184 1197 1185 #: includes/helper-functions.php: 701198 #: includes/helper-functions.php:395 1186 1199 msgid "Forgot your password?" 1187 1200 msgstr "" 1188 1201 1189 #: includes/helper-functions.php: 711202 #: includes/helper-functions.php:396 1190 1203 msgid "Create an account" 1191 1204 msgstr "" 1192 1205 1193 #: includes/helper-functions.php: 8931206 #: includes/helper-functions.php:1320 1194 1207 #: public/partials/organizers/aec-public-organizer-header-display.php:24 1195 1208 msgid "P" 1196 1209 msgstr "" 1197 1210 1198 #: includes/helper-functions.php:1 0271211 #: includes/helper-functions.php:1454 1199 1212 msgid "«" 1200 1213 msgstr "" 1201 1214 1202 #: includes/helper-functions.php:1 0281215 #: includes/helper-functions.php:1455 1203 1216 msgid "»" 1204 1217 msgstr "" 1205 1218 1206 #: includes/helper-functions.php:1 0401219 #: includes/helper-functions.php:1467 1207 1220 #, php-format 1208 1221 msgid "Page %d of %d" 1209 1222 msgstr "" 1210 1223 1211 #: includes/helper-functions.php:1 1621224 #: includes/helper-functions.php:1604 1212 1225 msgid "Google+" 1213 1226 msgstr "" 1214 1227 1215 #: includes/helper-functions.php:1 1701228 #: includes/helper-functions.php:1612 1216 1229 msgid "Pin It" 1217 1230 msgstr "" 1218 1231 1219 #: public/class-aec-public-categories.php:69 1220 #: public/class-aec-public-events.php:182 1221 #: public/class-aec-public-organizers.php:75 1222 #: public/class-aec-public-search.php:44 public/class-aec-public-search.php:179 1223 #: public/class-aec-public-tags.php:75 public/class-aec-public-venues.php:80 1232 #: public/class-aec-public-categories.php:53 1233 msgid "Event Categories disabled by the admin." 1234 msgstr "" 1235 1236 #: public/class-aec-public-categories.php:107 1237 #: public/class-aec-public-events.php:222 1238 #: public/class-aec-public-organizers.php:85 1239 #: public/class-aec-public-search.php:44 public/class-aec-public-search.php:186 1240 #: public/class-aec-public-tags.php:85 public/class-aec-public-venues.php:87 1224 1241 msgid "Sorry, no results matched your criteria." 1225 1242 msgstr "" 1226 1243 1227 #: public/class-aec-public-user.php:1 28 public/class-aec-public-user.php:7041228 #: public/class-aec-public-user.php:8 591244 #: public/class-aec-public-user.php:133 public/class-aec-public-user.php:722 1245 #: public/class-aec-public-user.php:882 1229 1246 msgid "You do not have sufficient permissions to access this page." 1247 msgstr "" 1248 1249 #: public/class-aec-public-user.php:671 public/class-aec-public-user.php:713 1250 msgid "Event Venues disabled by the admin." 1251 msgstr "" 1252 1253 #: public/class-aec-public-user.php:832 public/class-aec-public-user.php:873 1254 msgid "Event Organizers disabled by the admin." 1230 1255 msgstr "" 1231 1256 … … 1269 1294 #: public/partials/calendar/aec-public-calendar-daily-display.php:99 1270 1295 #: public/partials/calendar/aec-public-calendar-weekly-display.php:105 1271 #: public/partials/events/aec-public-events-blog-display.php:5 81296 #: public/partials/events/aec-public-events-blog-display.php:59 1272 1297 #: public/partials/events/aec-public-events-grid-display.php:62 1273 #: public/partials/events/aec-public-events-table-display.php:67 1274 #: public/partials/events/aec-public-single-event-display.php:15 1275 #: widgets/upcoming-events/views/widget.php:33 1276 msgid "See all" 1277 msgstr "" 1278 1279 #: public/partials/calendar/aec-public-calendar-daily-display.php:120 1280 #: public/partials/calendar/aec-public-calendar-weekly-display.php:126 1281 #: public/partials/events/aec-public-events-blog-display.php:87 1282 #: public/partials/events/aec-public-events-grid-display.php:86 1283 #: public/partials/events/aec-public-events-table-display.php:88 1298 #: public/partials/events/aec-public-events-table-display.php:68 1299 msgid "see all" 1300 msgstr "" 1301 1302 #: public/partials/calendar/aec-public-calendar-daily-display.php:137 1303 #: public/partials/calendar/aec-public-calendar-weekly-display.php:143 1304 #: public/partials/events/aec-public-events-blog-display.php:106 1305 #: public/partials/events/aec-public-events-grid-display.php:104 1306 #: public/partials/events/aec-public-events-table-display.php:106 1284 1307 msgid "Read more" 1285 1308 msgstr "" … … 1339 1362 #: public/partials/events/aec-public-events-blog-display.php:13 1340 1363 #: public/partials/events/aec-public-events-grid-display.php:13 1364 #: public/partials/events/aec-public-events-map-display.php:13 1341 1365 #: public/partials/events/aec-public-events-table-display.php:13 1342 1366 #, php-format … … 1344 1368 msgstr "" 1345 1369 1370 #: public/partials/events/aec-public-events-map-display.php:69 1371 #: public/partials/map/aec-public-map-display.php:38 1372 msgid "Event :" 1373 msgstr "" 1374 1375 #: public/partials/events/aec-public-events-map-display.php:73 1376 #: public/partials/map/aec-public-map-display.php:42 1377 msgid "Date :" 1378 msgstr "" 1379 1380 #: public/partials/events/aec-public-events-map-display.php:84 1381 #: public/partials/map/aec-public-map-display.php:53 1382 msgid "Venue :" 1383 msgstr "" 1384 1385 #: public/partials/events/aec-public-single-event-display.php:15 1386 #: widgets/past-events/views/widget.php:33 1387 #: widgets/upcoming-events/views/widget.php:33 1388 msgid "See all" 1389 msgstr "" 1390 1346 1391 #: public/partials/events/aec-public-single-event-display.php:31 1347 1392 msgid "Details" … … 1361 1406 msgstr "" 1362 1407 1363 #: public/partials/events/aec-public-single-event-display.php:11 01408 #: public/partials/events/aec-public-single-event-display.php:111 1364 1409 msgid "Show map" 1410 msgstr "" 1411 1412 #: public/partials/organizers/aec-public-organizer-header-display.php:35 1413 #: public/partials/venues/aec-public-venue-header-display.php:28 1414 msgid "Events" 1365 1415 msgstr "" 1366 1416 … … 1382 1432 msgstr "" 1383 1433 1384 #: public/partials/user/aec-public-edit-event-display.php: 591434 #: public/partials/user/aec-public-edit-event-display.php:60 1385 1435 msgid "Upload Image" 1386 1436 msgstr "" 1387 1437 1388 #: public/partials/user/aec-public-edit-event-display.php:6 61438 #: public/partials/user/aec-public-edit-event-display.php:68 1389 1439 #: public/partials/user/aec-public-edit-organizer-display.php:44 1390 1440 msgid "Delete" 1391 1441 msgstr "" 1392 1442 1393 #: public/partials/user/aec-public-edit-event-display.php:8 51443 #: public/partials/user/aec-public-edit-event-display.php:88 1394 1444 msgid "Event Date & Time" 1395 1445 msgstr "" 1396 1446 1397 #: public/partials/user/aec-public-edit-event-display.php:15 21447 #: public/partials/user/aec-public-edit-event-display.php:155 1398 1448 msgid "This is a recurring event" 1399 1449 msgstr "" 1400 1450 1401 #: public/partials/user/aec-public-edit-event-display.php:32 31451 #: public/partials/user/aec-public-edit-event-display.php:327 1402 1452 msgid "Phone:" 1403 1453 msgstr "" 1404 1454 1405 #: public/partials/user/aec-public-edit-event-display.php:441 1455 #: public/partials/user/aec-public-edit-event-display.php:350 1456 #: public/partials/user/aec-public-edit-venue-display.php:105 1457 msgid "Latitude" 1458 msgstr "" 1459 1460 #: public/partials/user/aec-public-edit-event-display.php:356 1461 #: public/partials/user/aec-public-edit-venue-display.php:111 1462 msgid "Longitude" 1463 msgstr "" 1464 1465 #: public/partials/user/aec-public-edit-event-display.php:458 1406 1466 #: public/partials/user/aec-public-edit-organizer-display.php:81 1407 #: public/partials/user/aec-public-edit-venue-display.php:1 261467 #: public/partials/user/aec-public-edit-venue-display.php:137 1408 1468 msgid "Save Changes" 1409 1469 msgstr "" 1410 1470 1411 #: public/partials/user/aec-public-edit-event-display.php:4 411471 #: public/partials/user/aec-public-edit-event-display.php:458 1412 1472 msgid "Submit Event" 1413 1473 msgstr "" … … 1430 1490 msgstr "" 1431 1491 1432 #: public/partials/user/aec-public-edit-venue-display.php:1 131492 #: public/partials/user/aec-public-edit-venue-display.php:123 1433 1493 msgid "Show / Hide Map" 1434 1494 msgstr "" 1435 1495 1436 #: public/partials/user/aec-public-edit-venue-display.php:1 261496 #: public/partials/user/aec-public-edit-venue-display.php:137 1437 1497 msgid "Submit Venue" 1438 1498 msgstr "" … … 1481 1541 msgstr "" 1482 1542 1483 #: public/partials/user/aec-public-manage-events-display.php:9 11543 #: public/partials/user/aec-public-manage-events-display.php:95 1484 1544 #: public/partials/user/aec-public-manage-organizers-display.php:69 1485 1545 #: public/partials/user/aec-public-manage-venues-display.php:69 … … 1487 1547 msgstr "" 1488 1548 1489 #: public/partials/user/aec-public-manage-events-display.php:9 31549 #: public/partials/user/aec-public-manage-events-display.php:97 1490 1550 #: public/partials/user/aec-public-manage-organizers-display.php:71 1491 1551 #: public/partials/user/aec-public-manage-venues-display.php:71 … … 1552 1612 msgstr "" 1553 1613 1614 #: widgets/past-events/past-events.php:34 1615 msgid "Display past events." 1616 msgstr "" 1617 1618 #: widgets/past-events/past-events.php:37 1619 #: widgets/past-events/past-events.php:134 1620 msgid "Past Events" 1621 msgstr "" 1622 1623 #: widgets/past-events/views/form.php:15 1624 #: widgets/upcoming-events/views/form.php:15 1625 msgid "Show image" 1626 msgstr "" 1627 1628 #: widgets/past-events/views/form.php:20 1629 #: widgets/upcoming-events/views/form.php:20 1630 msgid "Show date" 1631 msgstr "" 1632 1633 #: widgets/past-events/views/form.php:26 1634 #: widgets/upcoming-events/views/form.php:26 1635 msgid "Show Category" 1636 msgstr "" 1637 1638 #: widgets/past-events/views/form.php:32 1639 #: widgets/upcoming-events/views/form.php:32 1640 msgid "Show venue" 1641 msgstr "" 1642 1643 #: widgets/past-events/views/form.php:36 1644 #: widgets/upcoming-events/views/form.php:36 1645 msgid "Limit" 1646 msgstr "" 1647 1554 1648 #: widgets/search/search.php:34 1555 1649 msgid "Search events added through Another Events Calendar plugin." … … 1568 1662 msgstr "" 1569 1663 1570 #: widgets/search/views/form.php:2 31664 #: widgets/search/views/form.php:24 1571 1665 msgid "Search by Categories" 1572 1666 msgstr "" 1573 1667 1574 #: widgets/search/views/form.php: 281668 #: widgets/search/views/form.php:30 1575 1669 msgid "Search by Venues" 1576 1670 msgstr "" 1577 1671 1578 #: widgets/search/views/form.php:3 31672 #: widgets/search/views/form.php:35 1579 1673 msgid "Search by Single Date" 1580 1674 msgstr "" 1581 1675 1582 #: widgets/search/views/form.php: 381676 #: widgets/search/views/form.php:40 1583 1677 msgid "Search by Date Range" 1584 1678 msgstr "" … … 1605 1699 1606 1700 #: widgets/upcoming-events/upcoming-events.php:37 1607 #: widgets/upcoming-events/upcoming-events.php:13 11701 #: widgets/upcoming-events/upcoming-events.php:134 1608 1702 msgid "Upcoming Events" 1609 1703 msgstr "" 1610 1611 #: widgets/upcoming-events/views/form.php:151612 msgid "Show image"1613 msgstr ""1614 1615 #: widgets/upcoming-events/views/form.php:201616 msgid "Show date"1617 msgstr ""1618 1619 #: widgets/upcoming-events/views/form.php:251620 msgid "Show venue"1621 msgstr ""1622 1623 #: widgets/upcoming-events/views/form.php:291624 msgid "Limit"1625 msgstr "" -
another-events-calendar/trunk/public/class-aec-public-calendar.php
r1601299 r1678088 46 46 47 47 // Vars 48 $calendar_settings = get_option( 'aec_calendar_settings' ); 48 $general_settings = get_option( 'aec_general_settings' ); 49 $calendar_settings = get_option( 'aec_calendar_settings' ); 49 50 50 51 $view_options = $calendar_settings['view_options']; … … 101 102 'post_type' => 'aec_events', 102 103 'post_status' => 'publish', 103 'posts_per_page' => -1 104 'posts_per_page' => -1, 105 'meta_key' => 'start_date_time', 106 'orderby' => 'meta_value_datetime start_date_time', 107 'order' => 'ASC' 104 108 ); 105 109 … … 270 274 'post_status' => 'publish', 271 275 'posts_per_page' => -1, 272 'orderby' => 'start_date_time', 276 'meta_key' => 'start_date_time', 277 'orderby' => 'meta_value_datetime start_date_time', 273 278 'order' => 'ASC' 274 279 ); … … 414 419 'post_status' => 'publish', 415 420 'posts_per_page' => -1, 416 'orderby' => 'start_date_time', 421 'meta_key' => 'start_date_time', 422 'orderby' => 'meta_value_datetime start_date_time', 417 423 'order' => 'ASC' 418 424 ); -
another-events-calendar/trunk/public/class-aec-public-categories.php
r1601299 r1678088 44 44 wp_enqueue_style( AEC_PLUGIN_SLUG ); 45 45 46 ob_start(); 47 include AEC_PLUGIN_DIR.'public/partials/categories/aec-public-categories-display.php'; 48 return ob_get_clean(); 46 $general_settings = get_option( 'aec_general_settings' ); 47 48 if( ! empty( $general_settings['has_categories'] ) ) { 49 ob_start(); 50 include AEC_PLUGIN_DIR.'public/partials/categories/aec-public-categories-display.php'; 51 return ob_get_clean(); 52 } else { 53 return __( 'Event Categories disabled by the admin.', 'another-events-calendar' ); 54 } 49 55 50 56 } … … 62 68 wp_enqueue_style( AEC_PLUGIN_SLUG ); 63 69 70 wp_enqueue_script( AEC_PLUGIN_SLUG.'-google-map' ); 71 wp_enqueue_script( AEC_PLUGIN_SLUG.'-markercluster' ); 72 wp_enqueue_script( AEC_PLUGIN_SLUG.'-bootstrap' ); 73 wp_enqueue_script( AEC_PLUGIN_SLUG ); 74 64 75 // Vars 65 76 $general_settings = get_option( 'aec_general_settings' ); 66 77 $events_settings = get_option( 'aec_events_settings' ); 78 $map_settings = get_option( 'aec_map_settings' ); 79 $has_map = empty( $map_settings['enabled'] ) ? 0 : 1; 67 80 68 81 $atts = shortcode_atts( … … 159 172 break; 160 173 case 'event_start_date': 161 $args['meta_key'] = 'start_date_time'; 162 $args['orderby'] = 'meta_value ';174 $args['meta_key'] = 'start_date_time'; 175 $args['orderby'] = 'meta_value_datetime start_date_time'; 163 176 break; 164 177 } -
another-events-calendar/trunk/public/class-aec-public-events.php
r1544926 r1678088 43 43 * @params array $atts An associative array of attributes. 44 44 */ 45 public function shortcode_aec_events( $atts ) { 45 public function shortcode_aec_events( $atts ) { 46 46 47 47 // Load dependencies 48 48 wp_enqueue_style( AEC_PLUGIN_SLUG ); 49 50 wp_enqueue_script( AEC_PLUGIN_SLUG.'-google-map' ); 51 wp_enqueue_script( AEC_PLUGIN_SLUG.'-markercluster' ); 52 wp_enqueue_script( AEC_PLUGIN_SLUG.'-bootstrap' ); 53 wp_enqueue_script( AEC_PLUGIN_SLUG ); 49 54 50 55 // Vars 51 56 $general_settings = get_option( 'aec_general_settings' ); 52 57 $events_settings = get_option( 'aec_events_settings' ); 58 $map_settings = get_option( 'aec_map_settings' ); 59 $has_map = empty( $map_settings['enabled'] ) ? 0 : 1; 53 60 54 61 $atts = shortcode_atts( … … 57 64 'view' => $events_settings['default_view'], 58 65 'category' => '', 66 'tag' => '', 59 67 'venue' => '', 68 'organizer' => '', 69 'filterby' => '', 60 70 'past_events' => empty( $general_settings['show_past_events'] ) ? 0 : 1, 61 71 'orderby' => $events_settings['orderby'], … … 92 102 ); 93 103 104 $tax_queries = array(); 105 94 106 if( ! empty( $atts['category'] ) ) { 95 $args['tax_query'] = array( 96 array( 97 'taxonomy' => 'aec_categories', 98 'field' => 'term_id', 99 'terms' => (int) $atts['category'], 100 ), 101 ); 102 } 103 107 $tax_queries[] = array( 108 'taxonomy' => 'aec_categories', 109 'field' => 'term_id', 110 'terms' => (int) $atts['category'], 111 ); 112 } 113 114 if( ! empty( $atts['tag'] ) ) { 115 $tax_queries[] = array( 116 'taxonomy' => 'aec_tags', 117 'field' => 'term_id', 118 'terms' => (int) $atts['tag'], 119 ); 120 } 121 104 122 $meta_queries = array(); 105 123 106 124 if( ! empty( $atts['venue'] ) ) { 107 125 $meta_queries[] = array( 108 array( 109 'key' => 'venue_id', 110 'value' => (int) $atts['venue'], 111 'compare' => '=' 112 ) 126 'key' => 'venue_id', 127 'value' => (int) $atts['venue'], 128 'compare' => '=' 129 ); 130 } 131 132 if( ! empty( $atts['organizer'] ) ) { 133 $meta_queries[] = array( 134 'key' => 'organizers', 135 'value' => '"'.(int) $atts['organizer'].'"', 136 'compare' => 'LIKE' 113 137 ); 114 138 } … … 132 156 } 133 157 158 // Filter by past events 159 if( ! empty( $atts['filterby'] ) && 'past_events' == $atts['filterby'] ) { 160 $meta_queries[] = array( 161 'relation' => 'AND', 162 array( 163 'key' => 'start_date_time', 164 'value' => current_time('mysql'), 165 'compare' => '<', 166 'type' => 'DATETIME' 167 ), 168 array( 169 'key' => 'end_date_time', 170 'value' => current_time('mysql'), 171 'compare' => '<', 172 'type' => 'DATETIME' 173 ) 174 ); 175 } 176 134 177 if( $slug = get_query_var( 'aec_event' ) ) { 135 178 136 $queried_event = get_page_by_path( $slug, OBJECT, 'aec_events' ); 137 138 if( $queried_event ) { 139 140 $has_recurring_link = 0; 179 $queried_event = get_page_by_path( $slug, OBJECT, 'aec_recurring_events' ); 180 181 $meta_queries[] = array( 182 'key' => 'parent', 183 'value' => (int) $queried_event->ID, 184 'compare' => '=', 185 ); 141 186 142 $parent_id = get_post_meta( $queried_event->ID, 'parent', true );143 144 $meta_queries[] = array(145 'key' => 'parent',146 'value' => ! empty( $parent_id ) ? (int) $parent_id : 0,147 'compare' => '=',148 );149 150 }151 152 187 } 153 188 … … 155 190 if( $count_meta_queries ) { 156 191 $args['meta_query'] = ( $count_meta_queries > 1 ) ? array_merge( array( 'relation' => 'AND' ), $meta_queries ) : array( $meta_queries ); 192 } 193 194 $count_tax_queries = count( $tax_queries ); 195 if( $count_tax_queries ) { 196 $args['tax_query'] = ( $count_tax_queries > 1 ) ? array_merge( array( 'relation' => 'AND' ), $tax_queries ) : array( $tax_queries ); 157 197 } 158 198 … … 165 205 break; 166 206 case 'event_start_date': 167 $args['meta_key'] = 'start_date_time';168 $args['orderby'] = 'meta_value';207 $args['meta_key'] = 'start_date_time'; 208 $args['orderby'] = 'meta_value_datetime start_date_time'; 169 209 break; 170 210 } … … 209 249 210 250 if( is_singular('aec_events') && is_main_query() ) { 211 251 212 252 $post_id = get_the_ID(); 213 253 214 254 $general_settings = get_option( 'aec_general_settings' ); 215 255 $map_settings = get_option( 'aec_map_settings' ); 216 256 217 257 // Vars 218 258 $title = get_the_title(); … … 291 331 } 292 332 293 return $content;333 return $content; 294 334 295 335 } -
another-events-calendar/trunk/public/class-aec-public-organizers.php
r1601299 r1678088 46 46 wp_enqueue_style( AEC_PLUGIN_SLUG ); 47 47 48 wp_enqueue_script( AEC_PLUGIN_SLUG.'-google-map' ); 49 wp_enqueue_script( AEC_PLUGIN_SLUG.'-markercluster' ); 50 wp_enqueue_script( AEC_PLUGIN_SLUG.'-bootstrap' ); 51 wp_enqueue_script( AEC_PLUGIN_SLUG ); 52 48 53 // Vars 49 54 $general_settings = get_option( 'aec_general_settings' ); 50 55 $events_settings = get_option( 'aec_events_settings' ); 56 $map_settings = get_option( 'aec_map_settings' ); 57 $has_map = empty( $map_settings['enabled'] ) ? 0 : 1; 51 58 52 59 $atts = shortcode_atts( … … 112 119 113 120 $meta_queries[] = array( 114 array( 115 'key' => 'organizers', 116 'value' => '"'.$organizer->ID.'"', 117 'compare' => 'LIKE' 118 ) 121 'key' => 'organizers', 122 'value' => '"'.$organizer->ID.'"', 123 'compare' => 'LIKE' 119 124 ); 120 125 … … 151 156 case 'event_start_date': 152 157 $args['meta_key'] = 'start_date_time'; 153 $args['orderby'] = 'meta_value ';158 $args['orderby'] = 'meta_value_datetime start_date_time'; 154 159 break; 155 160 } -
another-events-calendar/trunk/public/class-aec-public-search.php
r1544926 r1678088 47 47 wp_enqueue_style( AEC_PLUGIN_SLUG ); 48 48 49 wp_enqueue_script( AEC_PLUGIN_SLUG.'-google-map' ); 50 wp_enqueue_script( AEC_PLUGIN_SLUG.'-markercluster' ); 51 wp_enqueue_script( AEC_PLUGIN_SLUG.'-bootstrap' ); 52 wp_enqueue_script( AEC_PLUGIN_SLUG ); 53 49 54 // Vars 50 55 $general_settings = get_option( 'aec_general_settings' ); 51 56 $events_settings = get_option( 'aec_events_settings' ); 57 $map_settings = get_option( 'aec_map_settings' ); 58 $has_map = empty( $map_settings['enabled'] ) ? 0 : 1; 52 59 53 60 $has_header = 1; … … 81 88 $tax_queries = array(); 82 89 83 if( ! empty( $_GET['venue'] ) ) {90 if( ! empty( $_GET['venue'] ) ) { 84 91 $meta_queries[] = array( 85 92 'key' => 'venue_id', … … 91 98 } 92 99 93 if( ! empty( $_GET['cat'] ) ) {100 if( ! empty( $_GET['cat'] ) ) { 94 101 $tax_queries[] = array( 95 102 'taxonomy' => 'aec_categories', … … 133 140 case 'event_start_date': 134 141 $args['meta_key'] = 'start_date_time'; 135 $args['orderby'] = 'meta_value';142 $args['orderby'] = 'meta_value_datetime start_date_time'; 136 143 break; 137 144 } -
another-events-calendar/trunk/public/class-aec-public-tags.php
r1601299 r1678088 46 46 wp_enqueue_style( AEC_PLUGIN_SLUG ); 47 47 48 wp_enqueue_script( AEC_PLUGIN_SLUG.'-google-map' ); 49 wp_enqueue_script( AEC_PLUGIN_SLUG.'-markercluster' ); 50 wp_enqueue_script( AEC_PLUGIN_SLUG.'-bootstrap' ); 51 wp_enqueue_script( AEC_PLUGIN_SLUG ); 52 48 53 // Vars 49 54 $general_settings = get_option( 'aec_general_settings' ); 50 55 $events_settings = get_option( 'aec_events_settings' ); 56 $map_settings = get_option( 'aec_map_settings' ); 57 $has_map = empty( $map_settings['enabled'] ) ? 0 : 1; 51 58 52 59 $atts = shortcode_atts( … … 144 151 case 'event_start_date': 145 152 $args['meta_key'] = 'start_date_time'; 146 $args['orderby'] = 'meta_value ';153 $args['orderby'] = 'meta_value_datetime start_date_time'; 147 154 break; 148 155 } -
another-events-calendar/trunk/public/class-aec-public-user.php
r1601299 r1678088 513 513 if( ! in_array( $date->format('w'), $meta['repeat_week_days'] ) ) continue; 514 514 515 if( $date->format('U') > $initial_start_date->format('U') ) {515 if( $date->format('U') >= $initial_start_date->format('U') ) { 516 516 $this->add_event( $main_event_id, $meta, $date ); 517 517 … … 538 538 foreach( $_period as $_date ) { 539 539 if( ! in_array( $_date->format('w'), $meta['repeat_week_days'] ) ) continue; 540 if( $_date->format('U') > $initial_start_date->format('U') && $_date->format('U') <= $end->format('U') ) $this->add_event( $main_event_id, $meta, $_date );540 if( $_date->format('U') >= $initial_start_date->format('U') && $_date->format('U') <= $end->format('U') ) $this->add_event( $main_event_id, $meta, $_date ); 541 541 } 542 542 … … 557 557 * @param int $occurences Number of Occurences. 558 558 */ 559 function process_monthly_events( $main_event_id, $meta, $start_date = '', $occurences = 0 ) {559 public function process_monthly_events( $main_event_id, $meta, $start_date = '', $occurences = 0 ) { 560 560 561 561 if( '' == $start_date ) { … … 575 575 if( ! in_array($date->format('j'), (array) $meta['repeat_month_days'] ) ) continue; 576 576 577 if( $date->format('U') > $initial_start_date->format('U') ) {577 if( $date->format('U') >= $initial_start_date->format('U') ) { 578 578 $this->add_event( $main_event_id, $meta, $date ); 579 579 … … 602 602 foreach( $_period as $_date ) { 603 603 if( ! in_array( $_date->format( 'j' ), (array) $meta['repeat_month_days'] ) ) continue; 604 if( $_date->format('U') > $initial_start_date->format('U') && $_date->format('U') <= $end->format('U') ) $this->add_event( $main_event_id, $meta, $_date );604 if( $_date->format('U') >= $initial_start_date->format('U') && $_date->format('U') <= $end->format('U') ) $this->add_event( $main_event_id, $meta, $_date ); 605 605 } 606 606 … … 664 664 } 665 665 666 // Load dependencies667 wp_enqueue_style( AEC_PLUGIN_SLUG );668 669 // Vars670 666 $general_settings = get_option( 'aec_general_settings' ); 671 667 $events_settings = get_option( 'aec_events_settings' ); 672 668 $page_settings = get_option( 'aec_page_settings' ); 673 669 670 if( empty( $general_settings['has_venues'] ) ) { 671 return __( 'Event Venues disabled by the admin.', 'another-events-calendar' ); 672 } 673 674 // Load dependencies 675 wp_enqueue_style( AEC_PLUGIN_SLUG ); 676 674 677 // Build query 675 678 $paged = aec_get_page_number(); … … 704 707 } 705 708 709 $general_settings = get_option( 'aec_general_settings' ); 710 $map_settings = get_option( 'aec_map_settings' ); 711 712 if( empty( $general_settings['has_venues'] ) ) { 713 return __( 'Event Venues disabled by the admin.', 'another-events-calendar' ); 714 } 715 706 716 $venue_id = get_query_var( 'aec_id' ) ? (int) get_query_var( 'aec_id' ) : 0; 707 717 $has_permission = true; … … 721 731 722 732 // Vars 723 $general_settings = get_option( 'aec_general_settings' );724 $map_settings = get_option( 'aec_map_settings' );725 726 733 $countries = aec_get_countries(); 727 734 $default_location = $general_settings['default_location']; … … 745 752 } 746 753 747 // ... 754 // ... 748 755 ob_start(); 749 756 include AEC_PLUGIN_DIR."public/partials/user/aec-public-edit-venue-display.php"; … … 818 825 } 819 826 820 // Load dependencies821 wp_enqueue_style( AEC_PLUGIN_SLUG );822 823 // Vars824 827 $general_settings = get_option( 'aec_general_settings' ); 825 828 $events_settings = get_option( 'aec_events_settings' ); 826 829 $page_settings = get_option( 'aec_page_settings' ); 827 830 831 if( empty( $general_settings['has_organizers'] ) ) { 832 return __( 'Event Organizers disabled by the admin.', 'another-events-calendar' ); 833 } 834 835 // Load dependencies 836 wp_enqueue_style( AEC_PLUGIN_SLUG ); 837 828 838 // Build query 829 839 $paged = aec_get_page_number(); … … 858 868 } 859 869 870 $general_settings = get_option( 'aec_general_settings' ); 871 872 if( empty( $general_settings['has_organizers'] ) ) { 873 return __( 'Event Organizers disabled by the admin.', 'another-events-calendar' ); 874 } 875 860 876 $organizer_id = get_query_var( 'aec_id' ) ? get_query_var( 'aec_id' ) : 0; 861 877 $has_permission = true; … … 871 887 wp_enqueue_script( AEC_PLUGIN_SLUG.'-bootstrap-validator' ); 872 888 873 wp_enqueue_style( AEC_PLUGIN_SLUG ); 889 wp_enqueue_style( AEC_PLUGIN_SLUG ); 874 890 875 891 // Vars … … 888 904 } 889 905 890 // ... 906 // ... 891 907 ob_start(); 892 908 include AEC_PLUGIN_DIR."public/partials/user/aec-public-edit-organizer-display.php"; … … 965 981 */ 966 982 public function ajax_callback_delete_attachment() { 967 983 968 984 if( isset( $_POST['attachment_id'] ) ) { 969 985 -
another-events-calendar/trunk/public/class-aec-public-venues.php
r1544926 r1678088 45 45 46 46 wp_enqueue_script( AEC_PLUGIN_SLUG.'-google-map' ); 47 wp_enqueue_script( AEC_PLUGIN_SLUG.'-bootstrap' ); 48 wp_enqueue_script( AEC_PLUGIN_SLUG ); 47 wp_enqueue_script( AEC_PLUGIN_SLUG.'-markercluster' ); 48 wp_enqueue_script( AEC_PLUGIN_SLUG.'-bootstrap' ); 49 wp_enqueue_script( AEC_PLUGIN_SLUG ); 49 50 50 51 // Vars … … 53 54 $map_settings = get_option( 'aec_map_settings' ); 54 55 56 $view = isset( $events_settings['default_view'] ) ? $events_settings['default_view'] : ''; 57 58 if( "map" == $view ) { 59 $view = $events_settings['view_options'][0]; 60 } 61 55 62 $atts = shortcode_atts( 56 63 array( 57 64 'header' => 1, 58 'view' => $ events_settings['default_view'],65 'view' => $view, 59 66 'venue' => '', 60 67 'past_events' => empty( $general_settings['show_past_events'] ) ? 0 : 1, … … 80 87 if( $error ) return __( 'Sorry, no results matched your criteria.', 'another-events-calendar' ); 81 88 82 $has_map = empty( $map_settings['enabled'] ) ? false : true;89 $has_map = empty( $map_settings['enabled'] ) ? 0 : 1; 83 90 $latitude = get_post_meta( $venue->ID, 'latitude', true ); 84 91 $longitude = get_post_meta( $venue->ID, 'longitude', true ); … … 88 95 89 96 $view_options = isset( $events_settings['view_options'] ) ? $events_settings['view_options'] : array(); 97 foreach( $view_options as $key => $value ) { 98 if( strpos( $value, "map" ) !== false ) { 99 unset( $view_options[ $key ] ); 100 } 101 } 90 102 $view_options[] = sanitize_text_field( $atts['view'] ); 91 103 $view_options = array_unique( $view_options ); 92 104 93 105 $view = isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view'] ) : sanitize_text_field( $atts['view'] ); 94 106 … … 151 163 case 'event_start_date': 152 164 $args['meta_key'] = 'start_date_time'; 153 $args['orderby'] = 'meta_value ';165 $args['orderby'] = 'meta_value_datetime start_date_time'; 154 166 break; 155 167 } -
another-events-calendar/trunk/public/class-aec-public.php
r1544926 r1678088 50 50 */ 51 51 public function add_rewrites() { 52 52 53 53 $page_settings = get_option( 'aec_page_settings' ); 54 54 $url = network_home_url(); … … 224 224 225 225 wp_register_script( AEC_PLUGIN_SLUG, AEC_PLUGIN_URL.'public/js/aec-public.js', $deps, AEC_PLUGIN_VERSION, true ); 226 226 227 227 wp_localize_script( 228 228 AEC_PLUGIN_SLUG, 229 'aec', 229 'aec', 230 230 array( 231 'ajaxurl' => admin_url( 'admin-ajax.php' ), 232 'zoom' => ! empty( $map_settings['zoom_level'] ) ? $map_settings['zoom_level'] : 5 231 'plugin_url' => AEC_PLUGIN_URL, 232 'ajaxurl' => admin_url( 'admin-ajax.php' ), 233 'zoom' => ! empty( $map_settings['zoom_level'] ) ? $map_settings['zoom_level'] : 5, 234 'i18n_organizer' => __( 'Organizer', 'another-events-calendar' ) 233 235 ) 234 236 ); 235 237 238 // Validator 236 239 wp_register_script( AEC_PLUGIN_SLUG.'-bootstrap-validator', AEC_PLUGIN_URL.'public/js/validator.js', array( 'jquery' ), AEC_PLUGIN_VERSION, false ); 237 240 241 // Marker Cluster 242 wp_register_script( AEC_PLUGIN_SLUG.'-markercluster', AEC_PLUGIN_URL.'public/js/markerclusterer.js', array( 'jquery' ), AEC_PLUGIN_VERSION, false ); 243 244 // Google Map 238 245 $api_key = ! empty( $map_settings['api_key'] ) ? '&key='.$map_settings['api_key'] : ''; 239 246 wp_register_script( AEC_PLUGIN_SLUG.'-google-map', '//maps.googleapis.com/maps/api/js?v=3.exp'.$api_key ); … … 431 438 } 432 439 440 /** 441 * Change the current page title if applicable. 442 * 443 * @since 1.7.0 444 * @access public 445 * 446 * @param string $title The document title. 447 * @param string $sep Title separator. 448 * @param string $seplocation Location of the separator (left or right). 449 * @return string The filtered title. 450 */ 451 public function wp_title( $title, $sep = '', $seplocation = '' ) { 452 453 global $post; 454 455 $page_settings = get_option( 'aec_page_settings' ); 456 $custom_title = ''; 457 $site_name = get_bloginfo( 'name' ); 458 459 // Change Recurring events page title 460 if( $post->ID == $page_settings['events'] ) { 461 if( $slug = get_query_var( 'aec_event' ) ) { 462 $page = get_page_by_path( $slug, OBJECT, 'aec_recurring_events' ); 463 $custom_title = $page->post_title; 464 } 465 } 466 467 // Change Category page title 468 if( $post->ID == $page_settings['category'] ) { 469 if( $slug = get_query_var( 'aec_category' ) ) { 470 $term = get_term_by( 'slug', $slug, 'aec_categories' ); 471 $custom_title = $term->name; 472 } 473 } 474 475 // Change Tag page title 476 if( $post->ID == $page_settings['tag'] ) { 477 if( $slug = get_query_var( 'aec_tag' ) ) { 478 $term = get_term_by( 'slug', $slug, 'aec_tags' ); 479 $custom_title = $term->name; 480 } 481 } 482 483 // Change Venue page title 484 if( $post->ID == $page_settings['venue'] ) { 485 if( $slug = get_query_var( 'aec_venue' ) ) { 486 $page = get_page_by_path( $slug, OBJECT, 'aec_venues' ); 487 $custom_title = $page->post_title; 488 } 489 } 490 491 // Change Organizer page title 492 if( $post->ID == $page_settings['organizer'] ) { 493 if( $slug = get_query_var( 'aec_organizer' ) ) { 494 $page = get_page_by_path( $slug, OBJECT, 'aec_organizers' ); 495 $custom_title = $page->post_title; 496 } 497 } 498 499 // ... 500 if( ! empty( $custom_title ) ) { 501 502 $title = ( 'left' == $seplocation ) ? "$site_name $sep $custom_title" : "$custom_title $sep $site_name"; 503 } 504 505 return $title; 506 507 } 508 509 /** 510 * Fix conflict with the YOAST plugin when updating the post/page title. 511 * 512 * @since 1.7.0 513 * @access public 514 * 515 * @param array $title The document title. 516 * @return Filtered title. 517 */ 518 public function pre_get_document_title( $title ) { 519 520 global $post; 521 522 if( ! isset( $post ) ) return $title; 523 524 $page_settings = get_option( 'aec_page_settings' ); 525 526 $aec_pages = array( 527 $page_settings['events'], 528 $page_settings['category'], 529 $page_settings['tag'], 530 $page_settings['venue'], 531 $page_settings['organizer'] 532 ); 533 534 if( in_array( $post->ID, $aec_pages ) ) { 535 $title = ''; 536 } 537 538 return $title; 539 540 } 541 542 /** 543 * Override the default post/page title. 544 * 545 * @since 1.7.0 546 * @access public 547 * 548 * @param array $title The document title parts. 549 * @return Filtered title parts. 550 */ 551 public function document_title_parts( $title ) { 552 553 global $post; 554 555 if( ! isset( $post ) ) return $title; 556 557 $page_settings = get_option( 'aec_page_settings' ); 558 559 // Change Recurring events page title 560 if( $post->ID == $page_settings['events'] ) { 561 if( $slug = get_query_var( 'aec_event' ) ) { 562 $page = get_page_by_path( $slug, OBJECT, 'aec_recurring_events' ); 563 $title['title'] = $page->post_title; 564 } 565 } 566 567 // Change Category page title 568 if( $post->ID == $page_settings['category'] ) { 569 if( $slug = get_query_var( 'aec_category' ) ) { 570 $term = get_term_by( 'slug', $slug, 'aec_categories' ); 571 $title['title'] = $term->name; 572 } 573 } 574 575 // Change Tag page title 576 if( $post->ID == $page_settings['tag'] ) { 577 if( $slug = get_query_var( 'aec_tag' ) ) { 578 $term = get_term_by( 'slug', $slug, 'aec_tags' ); 579 $title['title'] = $term->name; 580 } 581 } 582 583 // Change Venue page title 584 if( $post->ID == $page_settings['venue'] ) { 585 if( $slug = get_query_var( 'aec_venue' ) ) { 586 $page = get_page_by_path( $slug, OBJECT, 'aec_venues' ); 587 $title['title'] = $page->post_title; 588 } 589 } 590 591 // Change Organizer page title 592 if( $post->ID == $page_settings['organizer'] ) { 593 if( $slug = get_query_var( 'aec_organizer' ) ) { 594 $page = get_page_by_path( $slug, OBJECT, 'aec_organizers' ); 595 $title['title'] = $page->post_title; 596 } 597 } 598 599 // ... 600 return $title; 601 602 } 433 603 434 604 } -
another-events-calendar/trunk/public/css/aec-public.css
r1544926 r1678088 19 19 .aec-margin-right { 20 20 margin-right: 7px !important; 21 } 22 23 .aec-margin-left { 24 margin-left: 5px !important; 21 25 } 22 26 … … 128 132 } 129 133 134 /* Organizer fields */ 135 .aec-organizer-fields h3 { 136 padding: 5px; 137 } 138 130 139 /* Socialshare buttons */ 131 140 .aec-social-btn { … … 138 147 } 139 148 149 /* calendar page */ 150 .aec-monthly-calendar a { 151 display: inline-block; 152 padding: 2px 4px; 153 font-size: 10.998px; 154 font-weight: bold; 155 line-height: 14px; 156 color: #fff; 157 vertical-align: baseline; 158 white-space: normal; 159 text-shadow: 0 -1px 0 rgba(0,0,0,0.25); 160 background-color: #3a87ad; 161 } 162 140 163 .aec-social-btn:hover { 141 164 color: #FFF; … … 186 209 .aec-pinterest:active { 187 210 background: #bd081c; 211 } 212 213 .aec img { 214 width:100%; 188 215 } 189 216 … … 248 275 display:block; 249 276 } 250 } 277 278 .aec img { 279 width:100%; 280 } 281 } -
another-events-calendar/trunk/public/js/aec-public.js
r1601299 r1678088 10 10 11 11 // var 12 var $marker = $el.find('.marker');12 var $markers = $el.find('.marker'); 13 13 14 14 // vars … … 23 23 24 24 // add a marker reference 25 map.marker = ''; 26 27 // Add marker 28 var latitude = $('#aec-latitude').val(); 29 var longitude = $('#aec-longitude').val(); 30 var geocoder = new google.maps.Geocoder(); 31 32 if( '' != latitude && '' != longitude ) { 25 map.markers = []; 26 27 if( $el.data('type') == 'normal' ) { 28 29 // add markers 30 $markers.each(function(){ 31 32 aec_add_marker( $(this), map ); 33 aec_center_map( map ); 34 35 }); 36 37 } else { 38 39 // Add marker 40 var latitude = $('#aec-latitude').val(); 41 var longitude = $('#aec-longitude').val(); 42 var geocoder = new google.maps.Geocoder(); 43 44 if( '' != latitude && '' != longitude ) { 33 45 34 $marker.data( 'latitude', latitude ); 35 $marker.data( 'longitude', longitude ); 36 aec_add_marker( $marker, map ); 37 aec_center_map( map ); 38 39 } else { 40 41 var default_location = $el.data('default_location'); 42 geocoder.geocode( { 'address': default_location }, function( results, status ) { 43 if( status == google.maps.GeocoderStatus.OK ) { 44 aec_update_latlng( results[0].geometry.location.lat(), results[0].geometry.location.lng() ); 45 $marker.data( 'latitude', results[0].geometry.location.lat() ); 46 $marker.data( 'longitude', results[0].geometry.location.lng() ); 47 aec_add_marker( $marker, map ); 48 aec_center_map( map ); 49 } 50 }); 51 52 }; 46 $markers.data( 'latitude', latitude ); 47 $markers.data( 'longitude', longitude ); 48 aec_add_marker( $markers, map ); 49 aec_center_map( map ); 50 51 } else { 52 53 var default_location = $el.data('default_location'); 54 geocoder.geocode( { 'address': default_location }, function( results, status ) { 55 if( status == google.maps.GeocoderStatus.OK ) { 56 aec_update_latlng( results[0].geometry.location.lat(), results[0].geometry.location.lng() ); 57 $markers.data( 'latitude', results[0].geometry.location.lat() ); 58 $markers.data( 'longitude', results[0].geometry.location.lng() ); 59 aec_add_marker( $markers, map ); 60 aec_center_map( map ); 61 } 62 }); 63 64 }; 65 } 53 66 54 67 // Update marker position on address change … … 66 79 geocoder.geocode( { 'address': address}, function( results, status ) { 67 80 if( status == google.maps.GeocoderStatus.OK) { 68 map.marker .setPosition( results[0].geometry.location );81 map.markers[0].setPosition( results[0].geometry.location ); 69 82 aec_update_latlng( results[0].geometry.location.lat(), results[0].geometry.location.lng() ); 70 83 aec_center_map( map ); … … 100 113 * @since 1.0.0 101 114 */ 102 function aec_add_marker( $marker, map ) { 103 104 // var 105 var latlng = new google.maps.LatLng( $marker.data('latitude'), $marker.data('longitude') ); 106 115 function aec_add_marker( $markers, map ) { 116 117 // var 118 var latlng = new google.maps.LatLng( $markers.data( 'latitude' ), $markers.data( 'longitude' ) ); 119 120 // check to see if any of the existing markers match the latlng of the new marker 121 if( map.markers.length ) { 122 for( var i = 0; i < map.markers.length; i++ ) { 123 var existing_marker = map.markers[i]; 124 var pos = existing_marker.getPosition(); 125 126 // if a marker already exists in the same position as this marker 127 if( latlng.equals( pos ) ) { 128 // update the position of the coincident marker by applying a small multipler to its coordinates 129 var latitude = latlng.lat() + ( Math.random() - .5 ) / 1500; // * (Math.random() * (max - min) + min); 130 var longitude = latlng.lng() + ( Math.random() - .5 ) / 1500; // * (Math.random() * (max - min) + min); 131 latlng = new google.maps.LatLng( latitude, longitude ); 132 } 133 } 134 } 135 107 136 // create marker 108 137 var marker = new google.maps.Marker({ 109 position : latlng, 110 map : map, 111 draggable : false 112 }); 113 114 map.marker = marker; 115 138 position : latlng, 139 map : map, 140 draggable : ( map.type == 'form' ) ? true : false 141 }); 142 143 // add to array 144 map.markers.push( marker ); 145 116 146 // if marker contains HTML, add it to an infoWindow 117 if( $marker .html() ) {147 if( $markers.html() ) { 118 148 // create info window 119 149 var infowindow = new google.maps.InfoWindow({ 120 content : $marker.html() 121 150 content : $markers.html() 122 151 }); 123 152 … … 128 157 129 158 }); 130 131 } 159 }; 160 161 // update latitude and longitude values in the form when marker is moved 162 if( map.type == 'form' ) { 163 google.maps.event.addListener(marker, "dragend", function() { 164 165 var point = marker.getPosition(); 166 map.panTo(point); 167 update_latlng(point); 168 169 }); 170 }; 132 171 133 172 } … … 139 178 */ 140 179 function aec_center_map( map ) { 141 142 // vars 180 143 181 var bounds = new google.maps.LatLngBounds(); 144 182 145 // loop through all markers and create bounds 146 var latlng = new google.maps.LatLng( map.marker.position.lat(), map.marker.position.lng() ); 147 bounds.extend( latlng ); 148 149 map.setCenter( bounds.getCenter() ); 183 if( map.markers.length > 1 ) { 184 185 // fit to bounds 186 var listener = google.maps.event.addListener(map, 'idle', function() { 187 188 // loop through all markers and create bounds 189 $.each( map.markers, function( i, marker ){ 190 var latlng = new google.maps.LatLng( marker.position.lat(), marker.position.lng() ); 191 bounds.extend( latlng ); 192 }); 193 194 map.setZoom( parseInt( aec.zoom ) ); 195 map.fitBounds( bounds ); 196 197 // Marker Cluster 198 var markerCluster = new MarkerClusterer( map, map.markers, { imagePath : aec.plugin_url+'public/images/m' } ); 199 200 google.maps.event.removeListener(listener); 201 202 }); 203 204 } else { 205 206 // loop through all markers and create bounds 207 $.each( map.markers, function( i, marker ){ 208 var latlng = new google.maps.LatLng( marker.position.lat(), marker.position.lng() ); 209 bounds.extend( latlng ); 210 }); 211 212 map.setCenter( bounds.getCenter() ); 213 map.setZoom( parseInt( aec.zoom ) ); 214 215 } 150 216 151 217 } … … 177 243 // Add map in custom post type 'aec_venues' 178 244 $( '.aec-map' ).each(function() { 179 aec_map( $(this) ); 245 var data = { 246 'type' : $(this).data('type'), 247 }; 248 aec_map( $(this), data['type'] ); 180 249 }); 181 250 … … 257 326 $( '#aec-add-new-organizer' ).on( 'click', function() { 258 327 259 $( '#aec-organizer-fields' ).find( '.aec-organizer-fields .aec-organizer-group-id' ).html( '#' + $( '.aec-organizer-fields' ).length );328 $( '#aec-organizer-fields' ).find( '.aec-organizer-fields .aec-organizer-group-id' ).html( aec.i18n_organizer + ' #' + $( '.aec-organizer-fields' ).length ); 260 329 var $clone = $( '#aec-organizer-fields' ).find( '.aec-organizer-fields' ).clone( false ); 261 330 $( '#aec-organizer-fields-container' ).append( $clone ); -
another-events-calendar/trunk/public/partials/calendar/aec-public-calendar-daily-display.php
r1544926 r1678088 100 100 </small> 101 101 <?php endif; ?> 102 103 <?php $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); ?> 104 <?php if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 105 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 106 <span class="glyphicon glyphicon-map-marker"></span> 107 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 108 </p> 109 <?php endif; ?> 102 103 <?php 104 if( ! empty( $general_settings['has_categories'] ) ) { 105 $categories = get_the_terms( get_the_ID(), 'aec_categories' ); 106 if( ! empty( $categories ) ) { 107 $meta = array(); 108 foreach( $categories as $category ) { 109 $meta[] = sprintf( '<a class="text-primary aec-margin-left" href="%s">%s</a>', aec_category_page_link( $category ), $category->name ); 110 } 111 echo '<p class="aec-margin-top aec-no-margin-bottom text-muted"><span class="glyphicon glyphicon-folder-open"></span> '.implode( ', ', $meta ).'</p>'; 112 } 113 } 114 ?> 115 116 <?php 117 if( ! empty( $general_settings['has_venues'] ) ) { 118 $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); 119 if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 120 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 121 <span class="glyphicon glyphicon-map-marker"></span> 122 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 123 </p> 124 <?php endif; 125 } 126 ?> 110 127 111 128 <p class="aec-margin-top"><?php echo wp_kses_post( wp_trim_words( get_the_content(), 20 ) ); ?></p> … … 131 148 </div> 132 149 133 <?php wp_reset_postdata(); ?> 134 <?php the_aec_socialshare_buttons(); ?> 150 <?php 151 wp_reset_postdata(); 152 the_footer_text(); 153 the_aec_socialshare_buttons(); -
another-events-calendar/trunk/public/partials/calendar/aec-public-calendar-monthly-display.php
r1601299 r1678088 206 206 </div> 207 207 208 <?php the_aec_socialshare_buttons(); ?> 208 <?php 209 the_footer_text(); 210 the_aec_socialshare_buttons(); -
another-events-calendar/trunk/public/partials/calendar/aec-public-calendar-weekly-display.php
r1544926 r1678088 107 107 <?php endif; ?> 108 108 109 <?php $venue_id = get_post_meta( $event->ID, 'venue_id', true ); ?> 110 <?php if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 111 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 112 <span class="glyphicon glyphicon-map-marker"></span> 113 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 114 </p> 115 <?php endif; ?> 109 <?php 110 if( ! empty( $general_settings['has_categories'] ) ) { 111 $categories = get_the_terms( $event->ID, 'aec_categories' ); 112 if( ! empty( $categories ) ) { 113 $meta = array(); 114 foreach( $categories as $category ) { 115 $meta[] = sprintf( '<a class="text-primary aec-margin-left" href="%s">%s</a>', aec_category_page_link( $category ), $category->name ); 116 } 117 echo '<p class="aec-margin-top aec-no-margin-bottom text-muted"><span class="glyphicon glyphicon-folder-open"></span> '.implode( ', ', $meta ).'</p>'; 118 } 119 } 120 ?> 121 122 <?php 123 if( ! empty( $general_settings['has_venues'] ) ) { 124 $venue_id = get_post_meta( $event->ID, 'venue_id', true ); 125 if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 126 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 127 <span class="glyphicon glyphicon-map-marker"></span> 128 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 129 </p> 130 <?php endif; 131 } 132 ?> 116 133 117 134 <p class="aec-margin-top"><?php echo wp_kses_post( wp_trim_words( $event->post_content, 20 ) ); ?></p> … … 139 156 </div> 140 157 141 <?php the_aec_socialshare_buttons(); ?> 158 <?php 159 the_footer_text(); 160 the_aec_socialshare_buttons(); -
another-events-calendar/trunk/public/partials/categories/aec-public-categories-display.php
r1476408 r1678088 10 10 </div> 11 11 12 <?php the_aec_socialshare_buttons(); ?> 12 <?php 13 the_footer_text(); 14 the_aec_socialshare_buttons(); -
another-events-calendar/trunk/public/partials/categories/aec-public-category-header-display.php
r1476408 r1678088 8 8 <?php if( ! empty( $category->description ) ) : ?> 9 9 <p><?php echo $category->description; ?></p> 10 <?php endif; ?>10 <?php endif; -
another-events-calendar/trunk/public/partials/events/aec-public-events-blog-display.php
r1601299 r1678088 72 72 <?php echo aec_get_event_date( get_the_ID() ); ?> 73 73 </p> 74 74 75 <!-- Event Category --> 76 <?php 77 if( ! empty( $general_settings['has_categories'] ) ) { 78 $categories = get_the_terms( get_the_ID(), 'aec_categories' ); 79 if( ! empty( $categories ) ) { 80 $meta = array(); 81 foreach( $categories as $category ) { 82 $meta[] = sprintf( '<a class="text-primary aec-margin-left" href="%s">%s</a>', aec_category_page_link( $category ), $category->name ); 83 } 84 echo '<p class="aec-margin-top aec-no-margin-bottom text-muted"><span class="glyphicon glyphicon-folder-open"></span> '.implode( ', ', $meta ).'</p>'; 85 } 86 } 87 ?> 88 75 89 <!-- Event Venue --> 76 <?php $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); ?> 77 <?php if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 78 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 79 <span class="glyphicon glyphicon-map-marker"></span> 80 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 81 </p> 82 <?php endif; ?> 90 <?php 91 if( ! empty( $general_settings['has_venues'] ) ) { 92 $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); 93 if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 94 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 95 <span class="glyphicon glyphicon-map-marker"></span> 96 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 97 </p> 98 <?php endif; 99 } 100 ?> 83 101 84 102 <!-- Description --> … … 102 120 </div> 103 121 104 <?php wp_reset_postdata(); ?> 105 <?php the_aec_socialshare_buttons(); ?> 122 <?php 123 wp_reset_postdata(); 124 the_footer_text(); 125 the_aec_socialshare_buttons(); -
another-events-calendar/trunk/public/partials/events/aec-public-events-grid-display.php
r1601299 r1678088 70 70 </p> 71 71 72 <!-- Event Category --> 73 <?php 74 if( ! empty( $general_settings['has_categories'] ) ) { 75 $categories = get_the_terms( get_the_ID(), 'aec_categories' ); 76 if( ! empty( $categories ) ) { 77 $meta = array(); 78 foreach( $categories as $category ) { 79 $meta[] = sprintf( '<a class="text-primary aec-margin-left" href="%s">%s</a>', aec_category_page_link( $category ), $category->name ); 80 } 81 echo '<p class="aec-margin-top aec-no-margin-bottom text-muted"><span class="glyphicon glyphicon-folder-open"></span> '.implode( ', ', $meta ).'</p>'; 82 } 83 } 84 ?> 85 72 86 <!-- Event Venue --> 73 <?php $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); ?> 74 <?php if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 75 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 76 <span class="glyphicon glyphicon-map-marker"></span> 77 <a href=" <?php echo aec_venue_page_link( $venue_id ); ?> "><?php echo get_the_title( $venue_id ); ?> </a> 78 </p> 79 <?php endif; ?> 87 <?php 88 if( ! empty( $general_settings['has_venues'] ) ) { 89 $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); 90 if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 91 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 92 <span class="glyphicon glyphicon-map-marker"></span> 93 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 94 </p> 95 <?php endif; 96 } 97 ?> 80 98 81 99 <!-- Description --> … … 113 131 </div> 114 132 115 <?php wp_reset_postdata(); ?> 116 <?php the_aec_socialshare_buttons(); ?> 133 <?php 134 wp_reset_postdata(); 135 the_footer_text(); 136 the_aec_socialshare_buttons(); -
another-events-calendar/trunk/public/partials/events/aec-public-events-table-display.php
r1601299 r1678088 69 69 </small> 70 70 <?php endif; ?> 71 72 <?php $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); ?> 73 <?php if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 74 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 75 <span class="glyphicon glyphicon-map-marker"></span> 76 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 77 </p> 78 <?php endif; ?> 71 72 <?php 73 if( ! empty( $general_settings['has_categories'] ) ) { 74 $categories = get_the_terms( get_the_ID(), 'aec_categories' ); 75 if( ! empty( $categories ) ) { 76 $meta = array(); 77 foreach( $categories as $category ) { 78 $meta[] = sprintf( '<a class="text-primary aec-margin-left" href="%s">%s</a>', aec_category_page_link( $category ), $category->name ); 79 } 80 echo '<p class="aec-margin-top aec-no-margin-bottom text-muted"><span class="glyphicon glyphicon-folder-open"></span> '.implode( ', ', $meta ).'</p>'; 81 } 82 } 83 ?> 84 85 <?php 86 if( ! empty( $general_settings['has_venues'] ) ) { 87 $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); 88 if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 89 <p class="aec-margin-top aec-no-margin-bottom text-muted"> 90 <span class="glyphicon glyphicon-map-marker"></span> 91 <a href="<?php echo aec_venue_page_link( $venue_id ); ?>"><?php echo get_the_title( $venue_id ); ?></a> 92 </p> 93 <?php endif; 94 } 95 ?> 79 96 80 97 <p class="aec-margin-top"><?php echo wp_kses_post( wp_trim_words( get_the_content(), 20 ) ); ?></p> … … 100 117 </div> 101 118 102 <?php wp_reset_postdata(); ?> 103 <?php the_aec_socialshare_buttons(); ?> 119 <?php 120 wp_reset_postdata(); 121 the_footer_text(); 122 the_aec_socialshare_buttons(); -
another-events-calendar/trunk/public/partials/events/aec-public-single-event-display.php
r1601299 r1678088 45 45 <?php endif; ?> 46 46 47 <?php if( $categories) : ?>47 <?php if( ! empty( $general_settings['has_categories'] ) && ! empty( $categories) ) : ?> 48 48 <p class="aec-no-margin"><strong><?php _e( 'Event Categories', 'another-events-calendar' ); ?></strong> 49 49 <?php … … 57 57 <?php endif; ?> 58 58 59 <?php if( $tags) :?>59 <?php if( ! empty( $general_settings['has_tags'] ) && ! empty( $tags ) ) :?> 60 60 <p class="aec-no-margin"><strong><?php _e( 'Event Tags', 'another-events-calendar' ); ?></strong> 61 61 <?php … … 72 72 73 73 <!-- Organizer meta box --> 74 <?php if( ! empty( $ organizers ) ) : ?>74 <?php if( ! empty( $general_settings['has_organizers'] ) && ! empty( $organizers ) ) : ?> 75 75 <div class="panel panel-default"> 76 76 <div class="panel-heading"> … … 99 99 100 100 <!-- Venue meta box --> 101 <?php if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 102 <div class="panel panel-default"> 103 <div class="panel-heading"> 104 <?php _e( 'Venue', 'another-events-calendar' ); ?> 105 </div> 106 <div class="panel-body"> 107 <?php the_aec_address( $venue_id ); ?> 108 <?php if( $has_map ) : ?> 109 <span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span> 110 <a href="" data-toggle="modal" data-target="#aec-map-modal"><?php _e( 'Show map', 'another-events-calendar' ); ?></a> 111 112 <!-- Modal --> 113 <div class="modal" id="aec-map-modal"> 114 <div class="modal-dialog"> 115 <div class="modal-content"> 116 <div class="modal-body"> 117 <div class="embed-responsive embed-responsive-16by9"> 118 <div class="aec-map embed-responsive-item"> 119 <div class="marker" data-latitude="<?php echo $latitude; ?>" data-longitude="<?php echo $longitude; ?>"> 120 <?php the_aec_address( $venue_id ); ?> 121 </div> 122 </div> 101 <?php if( ! empty( $general_settings['has_venues'] ) ) { ?> 102 <?php if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) : ?> 103 <div class="panel panel-default"> 104 <div class="panel-heading"> 105 <?php _e( 'Venue', 'another-events-calendar' ); ?> 106 </div> 107 <div class="panel-body"> 108 <?php the_aec_address( $venue_id ); ?> 109 <?php if( $has_map ) : ?> 110 <span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span> 111 <a href="" data-toggle="modal" data-target="#aec-map-modal"><?php _e( 'Show map', 'another-events-calendar' ); ?></a> 112 113 <!-- Modal --> 114 <div class="modal" id="aec-map-modal"> 115 <div class="modal-dialog"> 116 <div class="modal-content"> 117 <div class="modal-body"> 118 <div class="embed-responsive embed-responsive-16by9"> 119 <div class="aec-map embed-responsive-item"> 120 <div class="marker" data-latitude="<?php echo $latitude; ?>" data-longitude="<?php echo $longitude; ?>"> 121 <?php the_aec_address( $venue_id ); ?> 122 </div> 123 </div> 124 </div> 123 125 </div> 124 </div> 125 </div> 126 </div> 127 </div> 128 <?php endif; ?> 129 </div> 130 </div> 131 <?php endif; ?> 132 126 </div> 127 </div> 128 </div> 129 <?php endif; ?> 130 </div> 131 </div> 132 <?php endif; ?> 133 <?php } ?> 133 134 </div> 134 135 </div> 135 136 </div> 136 137 137 <?php if( ! empty( $general_settings['show_credit_link'] ) ) : ?> 138 <p style="font-size:12px; margin-top:10px;">Powered by <a href="https://yendif.com/wordpress/item/another-events-calendar.html" target="_blank">Another Events Calendar</a></p> 139 <?php endif; ?> 140 141 <?php the_aec_socialshare_buttons(); ?> 138 <?php 139 the_footer_text(); 140 the_aec_socialshare_buttons(); -
another-events-calendar/trunk/public/partials/tags/aec-public-tag-header-display.php
r1476408 r1678088 8 8 <?php if( ! empty( $tag->description ) ) : ?> 9 9 <p><?php echo $tag->description; ?></p> 10 <?php endif; ?>10 <?php endif; -
another-events-calendar/trunk/public/partials/user/aec-public-edit-event-display.php
r1601299 r1678088 40 40 41 41 <div class="panel-body"> 42 43 <div class="form-group"> 44 <label class="col-sm-3 control-label"><?php _e( 'Select Category', 'another-events-calendar' ); ?></label> 45 <div class="col-sm-9"> 46 <div class="aec-multi-checkbox"> 47 <?php 48 $terms = get_terms( 'aec_categories', array( 'hide_empty' => false ) ); 49 foreach( $terms as $term ) { 50 $checked = isset( $categories ) && in_array( $term->term_id, $categories ) ? 'checked="checked"' : ''; 51 printf( '<label><input type="checkbox" name="categories[]" value="%s" %s/>%s</label>', $term->name, $checked, $term->name ); 52 } 53 ?> 54 </div> 55 </div> 56 </div> 42 <?php if( ! empty( $general_settings['has_categories'] ) && aec_current_user_can( 'edit_aec_event' ) ) : ?> 43 <div class="form-group"> 44 <label class="col-sm-3 control-label"><?php _e( 'Select Category', 'another-events-calendar' ); ?></label> 45 <div class="col-sm-9"> 46 <div class="aec-multi-checkbox"> 47 <?php 48 $terms = get_terms( 'aec_categories', array( 'hide_empty' => false ) ); 49 foreach( $terms as $term ) { 50 $checked = isset( $categories ) && in_array( $term->term_id, $categories ) ? 'checked="checked"' : ''; 51 printf( '<label><input type="checkbox" name="categories[]" value="%s" %s/>%s</label>', $term->name, $checked, $term->name ); 52 } 53 ?> 54 </div> 55 </div> 56 </div> 57 <?php endif; ?> 57 58 58 59 <div class="form-group"> … … 149 150 </div> 150 151 </div> 151 152 <?php if( ! $event_id) : ?>152 153 <?php if( ! $event_id && ! empty( $general_settings['has_recurring_events'] ) && aec_current_user_can( 'edit_aec_event' ) ) : ?> 153 154 <div class="form-group"> 154 155 <label for="aec-recurring-event" class="col-sm-3 control-label"><?php _e( 'This is a recurring event', 'another-events-calendar' )?></label> … … 250 251 251 252 <!-- Event Venue --> 252 <?php if( aec_current_user_can( 'edit_aec_venue' ) ) : ?>253 <?php if( ! empty( $general_settings['has_venues'] ) && aec_current_user_can( 'edit_aec_venue' ) ) : ?> 253 254 <div class="panel panel-default form-horizontal"> 254 255 <div class="panel-heading"><?php _e( 'Venue Details', 'another-events-calendar' ); ?></div> … … 262 263 <option value="-1"><?php _e( 'Create New Venue', 'another-events-calendar' ); ?></option> 263 264 <?php 264 $venues = get_posts( array( 'post_type' => 'aec_venues', 'posts_per_page' => -1 ) );265 $venues = get_posts( array( 'post_type' => 'aec_venues', 'posts_per_page' => -1 ,'orderby' => 'title', 'order' => 'ASC' ) ); 265 266 $venue_id = isset( $venue_id ) ? $venue_id : 0; 266 267 foreach( $venues as $venue ) { … … 342 343 <div class="col-sm-9"> 343 344 <div class="embed-responsive embed-responsive-16by9"> 344 <div class="aec-map embed-responsive-item" data-default_location="<?php echo $default_location; ?>" >345 <div class="aec-map embed-responsive-item" data-default_location="<?php echo $default_location; ?>" data-type="form"> 345 346 <div class="marker"></div> 346 347 </div> … … 375 376 376 377 <!-- Event Organizer --> 377 <?php if( aec_current_user_can( 'edit_aec_organizer' ) ) : ?>378 <?php if( ! empty( $general_settings['has_organizers'] ) && aec_current_user_can( 'edit_aec_organizer' ) ) : ?> 378 379 <div class="panel panel-default form-horizontal"> 379 380 <div class="panel-heading"><?php _e( 'Organizer Details', 'another-events-calendar' ); ?></div> … … 386 387 <div class="aec-multi-checkbox"> 387 388 <?php 388 $organizers_list = get_posts( array( 'post_type' => 'aec_organizers' ) );389 $organizers_list = get_posts( array( 'post_type' => 'aec_organizers', 'posts_per_page' => -1 ,'orderby' => 'title', 'order' => 'ASC' ) ); 389 390 $organizers = isset( $organizers ) ? $organizers : array(); 390 391 foreach( $organizers_list as $organizer ) { … … 409 410 <label class="col-sm-3 control-label"></label> 410 411 <div class="col-sm-9"> 411 <h3 class="aec-organizer-group-id "></h3>412 <h3 class="aec-organizer-group-id bg-success"></h3> 412 413 </div> 413 414 </div> … … 461 462 </form> 462 463 </div> 464 465 <?php 466 the_footer_text(); -
another-events-calendar/trunk/public/partials/user/aec-public-edit-organizer-display.php
r1544926 r1678088 85 85 </form> 86 86 </div> 87 88 <?php 89 the_footer_text(); -
another-events-calendar/trunk/public/partials/user/aec-public-edit-venue-display.php
r1601299 r1678088 98 98 <div class="col-sm-9"> 99 99 <div class="embed-responsive embed-responsive-16by9"> 100 <div class="aec-map embed-responsive-item" data-default_location="<?php echo $default_location; ?>" >100 <div class="aec-map embed-responsive-item" data-default_location="<?php echo $default_location; ?>" data-type="form"> 101 101 <div class="marker"></div> 102 102 </div> … … 142 142 </form> 143 143 </div> 144 145 <?php 146 the_footer_text(); -
another-events-calendar/trunk/public/partials/user/aec-public-manage-events-display.php
r1544926 r1678088 56 56 57 57 // Categories 58 $categories = get_the_terms( get_the_ID(), 'aec_categories' ); 59 $meta_categories = array(); 60 if( $categories ) { 61 foreach( $categories as $category ) { 62 $meta_categories[] = sprintf( '<a class="text-primary" href="%s">%s</a>', aec_category_page_link( $category ), $category->name ); 63 } 64 if( count( $meta_categories ) ) $meta[] = '<span class="glyphicon glyphicon-folder-open"></span> '.implode( ', ', $meta_categories ); 65 } 58 if( ! empty( $general_settings['has_categories'] ) ) { 59 $categories = get_the_terms( get_the_ID(), 'aec_categories' ); 60 if( ! empty( $categories ) ) { 61 $meta_categories = array(); 62 foreach( $categories as $category ) { 63 $meta_categories[] = sprintf( '<a class="text-primary" href="%s">%s</a>', aec_category_page_link( $category ), $category->name ); 64 } 65 if( count( $meta_categories ) ) $meta[] = '<span class="glyphicon glyphicon-folder-open"></span> '.implode( ', ', $meta_categories ); 66 } 67 } 66 68 67 69 // Venue 68 $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); 69 if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) { 70 $meta[] = sprintf( '<span class="glyphicon glyphicon-map-marker"></span> <a href="%s">%s</a>', aec_venue_page_link( $venue_id ), get_the_title( $venue_id ) ); 71 } 70 if( ! empty( $general_settings['has_venues'] ) ) { 71 $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); 72 if( $venue_id > 0 && is_string( get_post_status( $venue_id ) ) ) { 73 $meta[] = sprintf( '<span class="glyphicon glyphicon-map-marker"></span> <a href="%s">%s</a>', aec_venue_page_link( $venue_id ), get_the_title( $venue_id ) ); 74 } 75 } 72 76 73 77 // ... … … 104 108 105 109 </div> 110 111 <?php 112 the_footer_text(); -
another-events-calendar/trunk/public/partials/user/aec-public-manage-organizers-display.php
r1544926 r1678088 82 82 83 83 </div> 84 85 <?php 86 the_footer_text(); -
another-events-calendar/trunk/public/partials/user/aec-public-manage-venues-display.php
r1544926 r1678088 82 82 83 83 </div> 84 85 <?php 86 the_footer_text(); -
another-events-calendar/trunk/public/partials/venues/aec-public-venue-header-display.php
r1476408 r1678088 17 17 <div class="col-md-8"> 18 18 <div class="embed-responsive embed-responsive-16by9"> 19 <div class="aec-map embed-responsive-item" >19 <div class="aec-map embed-responsive-item" data-type="form"> 20 20 <div class="marker" data-latitude="<?php echo $latitude; ?>" data-longitude="<?php echo $longitude; ?>"></div> 21 21 </div> -
another-events-calendar/trunk/uninstall.php
r1601299 r1678088 18 18 19 19 // Delete all the Custom Post Types 20 $post_types = array( 'aec_events', 'aec_ venues', 'aec_organizers' );20 $post_types = array( 'aec_events', 'aec_recurring_events', 'aec_venues', 'aec_organizers' ); 21 21 22 22 foreach( $post_types as $post_type ) { -
another-events-calendar/trunk/widgets/mini-calender/mini-calendar.php
r1476408 r1678088 48 48 * @since 1.0.0 49 49 */ 50 function enqueue_styles_scripts() {50 public function enqueue_styles_scripts() { 51 51 52 52 if( is_active_widget( false, false, $this->id_base, true ) ) { -
another-events-calendar/trunk/widgets/search/search.php
r1476408 r1678088 46 46 * @since 1.0.0 47 47 */ 48 function enqueue_styles_scripts() {48 public function enqueue_styles_scripts() { 49 49 50 50 if( is_active_widget( false, false, $this->id_base, true ) ) { … … 83 83 // Get Search page id 84 84 $page_settings = get_option( 'aec_page_settings' ); 85 $search_id = $page_settings['search']; 85 $general_settings = get_option( 'aec_general_settings' ); 86 87 $search_id = $page_settings['search']; 86 88 87 89 // Get Categories … … 96 98 'post_type' => 'aec_venues', 97 99 'post_status' => 'publish', 98 'posts_per_page' => '-1' 100 'posts_per_page' => '-1', 101 'orderby' => 'title', 102 'order' => 'ASC' 99 103 ) 100 104 ); … … 115 119 */ 116 120 public function form( $instance ) { 121 122 $general_settings = get_option( 'aec_general_settings' ); 117 123 118 124 $title = isset( $instance['title'] ) ? $instance['title'] : __( 'Search Events', 'another-events-calendar' ); -
another-events-calendar/trunk/widgets/search/views/form.php
r1476408 r1678088 19 19 </p> 20 20 21 <p> 22 <input class="checkbox" type="checkbox" <?php checked( $search_by_category, 1 ); ?> id="<?php echo $this->get_field_id( 'search_by_category' ); ?>" name="<?php echo $this->get_field_name( 'search_by_category' ); ?>" value="1" /> 23 <label for="<?php echo $this->get_field_id( 'search_by_category' ); ?>"><?php _e( 'Search by Categories', 'another-events-calendar' ); ?></label> 24 </p> 21 <?php if( ! empty( $general_settings['has_categories'] ) ) : ?> 22 <p> 23 <input class="checkbox" type="checkbox" <?php checked( $search_by_category, 1 ); ?> id="<?php echo $this->get_field_id( 'search_by_category' ); ?>" name="<?php echo $this->get_field_name( 'search_by_category' ); ?>" value="1" /> 24 <label for="<?php echo $this->get_field_id( 'search_by_category' ); ?>"><?php _e( 'Search by Categories', 'another-events-calendar' ); ?></label> 25 </p> 26 <?php endif; ?> 25 27 26 28 <p> -
another-events-calendar/trunk/widgets/search/views/widget.php
r1544926 r1678088 17 17 </div> 18 18 19 <?php if( $search_by_category ) : ?>19 <?php if( ! empty( $general_settings['has_categories'] ) && $search_by_category ) : ?> 20 20 <div class="form-group"> 21 21 <select name="cat" class="form-control"> … … 31 31 <?php endif; ?> 32 32 33 <?php if( $search_by_venue ) : ?>33 <?php if( ! empty( $general_settings['has_venues'] ) && $search_by_venue ) : ?> 34 34 <div class="form-group"> 35 35 <select name="venue" class="form-control"> -
another-events-calendar/trunk/widgets/upcoming-events/upcoming-events.php
r1514741 r1678088 46 46 * @since 1.0.0 47 47 */ 48 function enqueue_styles_scripts() {48 public function enqueue_styles_scripts() { 49 49 50 50 if( is_active_widget( false, false, $this->id_base, true ) ) { … … 69 69 $events_settings = get_option( 'aec_events_settings' ); 70 70 71 $show_image = isset( $instance['show_image'] ) ? $instance['show_image'] : 0; 72 $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : 0; 73 $show_venue = isset( $instance['show_venue'] ) ? $instance['show_venue'] : 0; 74 $limit = ! empty( $instance['limit'] ) ? (int) $instance['limit'] : -1; 71 $show_image = isset( $instance['show_image'] ) ? $instance['show_image'] : 0; 72 $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : 0; 73 $show_category = isset( $instance['show_category'] ) ? $instance['show_category'] : 0; 74 $show_venue = isset( $instance['show_venue'] ) ? $instance['show_venue'] : 0; 75 $limit = ! empty( $instance['limit'] ) ? (int) $instance['limit'] : -1; 75 76 $has_recurring_link = ! empty( $general_settings['has_recurring_events'] ) ? 1 : 0; 76 77 … … 85 86 'posts_per_page' => $limit, 86 87 'meta_key' => 'start_date_time', 87 'orderby' => 'meta_value ',88 'orderby' => 'meta_value_datetime start_date_time', 88 89 'order' => 'asc', 89 90 'post_status' => 'publish', … … 129 130 public function form( $instance ) { 130 131 132 $general_settings = get_option( 'aec_general_settings' ); 133 131 134 $title = isset( $instance['title'] ) ? $instance['title'] : __( 'Upcoming Events', 'another-events-calendar' ); 132 135 133 $show_image = isset( $instance['show_image'] ) ? $instance['show_image'] : 1; 134 $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : 1; 135 $show_venue = isset( $instance['show_venue'] ) ? $instance['show_venue'] : 1; 136 $limit = isset( $instance['limit'] ) ? $instance['limit'] : 5; 136 $show_image = isset( $instance['show_image'] ) ? $instance['show_image'] : 1; 137 $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : 1; 138 $show_category = isset( $instance['show_category'] ) ? $instance['show_category'] : 1; 139 $show_venue = isset( $instance['show_venue'] ) ? $instance['show_venue'] : 1; 140 $limit = isset( $instance['limit'] ) ? $instance['limit'] : 5; 137 141 138 142 include AEC_PLUGIN_DIR.'widgets/upcoming-events/views/form.php'; … … 150 154 $instance = array(); 151 155 152 $instance['title'] = isset( $new_instance['title'] ) ? strip_tags( $new_instance['title'] ) : ''; 153 $instance['show_image'] = isset( $new_instance['show_image'] ) ? 1 : 0; 154 $instance['show_date'] = isset( $new_instance['show_date'] ) ? 1 : 0; 155 $instance['show_venue'] = isset( $new_instance['show_venue'] ) ? 1 : 0; 156 $instance['limit'] = isset( $new_instance['limit'] ) ? (int) $new_instance['limit'] : ''; 156 $instance['title'] = isset( $new_instance['title'] ) ? strip_tags( $new_instance['title'] ) : ''; 157 $instance['show_image'] = isset( $new_instance['show_image'] ) ? 1 : 0; 158 $instance['show_date'] = isset( $new_instance['show_date'] ) ? 1 : 0; 159 $instance['show_category'] = isset( $new_instance['show_category'] ) ? 1 : 0; 160 $instance['show_venue'] = isset( $new_instance['show_venue'] ) ? 1 : 0; 161 $instance['limit'] = isset( $new_instance['limit'] ) ? (int) $new_instance['limit'] : ''; 157 162 158 163 return $instance; -
another-events-calendar/trunk/widgets/upcoming-events/views/form.php
r1476408 r1678088 21 21 </p> 22 22 23 <?php if( ! empty( $general_settings['has_categories'] ) ) : ?> 24 <p> 25 <input class="checkbox" type="checkbox" <?php checked( $show_category, 1 ); ?> id="<?php echo $this->get_field_id( 'show_category' ); ?>" name="<?php echo $this->get_field_name( 'show_category' ); ?>" value="1" /> 26 <label for="<?php echo $this->get_field_id( 'show_category' ); ?>"><?php _e( 'Show Category', 'another-events-calendar' ); ?></label> 27 </p> 28 <?php endif; ?> 29 23 30 <p> 24 31 <input class="checkbox" type="checkbox" <?php checked( $show_venue, 1 ); ?> id="<?php echo $this->get_field_id( 'show_venue' ); ?>" name="<?php echo $this->get_field_name( 'show_venue' ); ?>" value="1" /> -
another-events-calendar/trunk/widgets/upcoming-events/views/widget.php
r1601299 r1678088 42 42 <?php endif; ?> 43 43 44 <?php $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); ?> 45 <?php if( $show_venue && $venue_id > 0 ) : ?> 46 <p class="aec-no-margin text-muted"> 47 <span class="glyphicon glyphicon-map-marker"></span> 48 <a href="<?php echo aec_venue_page_link( $venue_id );?>"><?php echo get_the_title( $venue_id ); ?> </a> 49 </p> 50 <?php endif; ?> 44 <?php 45 if( ! empty( $general_settings['has_categories'] ) && $show_category ) { 46 $categories = get_the_terms( get_the_ID(), 'aec_categories' ); 47 $meta = array(); 48 if( ! empty( $categories ) ) { 49 foreach( $categories as $category ) { 50 $meta[] = sprintf( '<a class="text-primary aec-margin-left" href="%s">%s</a>', aec_category_page_link( $category ), $category->name ); 51 } 52 echo '<p class="aec-no-margin-bottom text-muted"><span class="glyphicon glyphicon-folder-open"></span> '.implode( ', ', $meta ).'</p>'; 53 } 54 } 55 ?> 56 57 <?php 58 if( ! empty( $general_settings['has_venues'] ) ) { 59 $venue_id = get_post_meta( get_the_ID(), 'venue_id', true ); 60 if( $show_venue && $venue_id > 0 ) : ?> 61 <p class="aec-no-margin text-muted"> 62 <span class="glyphicon glyphicon-map-marker"></span> 63 <a href="<?php echo aec_venue_page_link( $venue_id );?>"><?php echo get_the_title( $venue_id ); ?></a> 64 </p> 65 <?php endif; 66 } 67 ?> 51 68 </div> 52 69 </div>
Note: See TracChangeset
for help on using the changeset viewer.