Plugin Directory

Changeset 2385164


Ignore:
Timestamp:
09/20/2020 10:32:27 AM (6 years ago)
Author:
devlloplugins
Message:

1.0.1

Location:
devllo-events/trunk
Files:
1 added
5 edited

Legend:

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

    r2384230 r2385164  
    55 *   Description: This is a simple Event Management plugin for adding and listing your events, show event locations on map, link to online Event locations. It also integrates with FullCalendar to show a calendar with all events.
    66 *   Author: Devllo Plugins
    7  *   Version: 1.0.0
     7 *   Version: 1.0.1
    88 *   Author URI: https://devllo.com/
    99 *   License:    GPL-2.0+
     
    2222 * Current plugin version.
    2323 */
    24 define( 'DEVLLO_EVENTS_VERSION', '1.0.0' );
     24define( 'DEVLLO_EVENTS_VERSION', '1.0.1' );
    2525
    2626/**
  • devllo-events/trunk/readme.txt

    r2384230 r2385164  
    55Tested up to: 5.5
    66Requires PHP: 5.5
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99
     
    4646
    4747== Changelog ==
    48 = 1.0.0 - =
     48= 1.0.1 - 20/09/2020 =
     49BUG FIX: Fix styling error from Bootstrap on WooCpmmerce pages
     50
     51= 1.0.0 - 19/09/2020 =
    4952ENHANCEMENT: Add Event Organiser Checkbox Option on Settings Page
    5053ENHANCEMENT: Add Event Comments Checkbox Option on Settings Page
  • devllo-events/trunk/templates/calendar-event.php

    r2384230 r2385164  
    55    public function __construct(){ 
    66        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
    7             add_shortcode('devllo-calendar', array($this, 'display_calendar'));
     7        add_shortcode('devllo-calendar', array($this, 'display_calendar'));
    88
    99    }
     
    1515
    1616      wp_register_script( 'fullcalendar_min_js', DEVLLO_EVENTS_INC_URI. 'assets/js/main.min.js' );
    17       wp_enqueue_script( 'fullcalendar_min_js'); 
     17      wp_enqueue_script( 'fullcalendar_min_js');
     18     
     19      global $post;
     20      if ( has_shortcode( $post->post_content, 'devllo-calendar' ) ) {
     21        wp_enqueue_style( 'full_calendar_bootstrap', DEVLLO_EVENTS_INC_URI. 'assets/css/bootstrap.css');
    1822
    19       wp_enqueue_style( 'calendar_css', DEVLLO_EVENTS_INC_URI. 'assets/css/main.css'); 
     23        wp_enqueue_style( 'calendar_css', DEVLLO_EVENTS_INC_URI. 'assets/css/main.css');   
    2024
    21       wp_enqueue_style( 'font_css', DEVLLO_EVENTS_INC_URI. 'assets/css/all.css');   
     25        wp_enqueue_style( 'font_css', DEVLLO_EVENTS_INC_URI. 'assets/css/all.css');
     26       }
    2227
    23       wp_enqueue_style( 'full_calendar_bootstrap', DEVLLO_EVENTS_INC_URI. 'assets/css/bootstrap.css'); 
    2428    }
    25    
    26 
     29   
    2730    function display_calendar($content=null){
    2831            if (!is_admin()){
  • devllo-events/trunk/templates/single-devllo_event.php

    r2384230 r2385164  
    1414wp_enqueue_script( 'map_api_script');
    1515
     16if( get_post_type() == 'devllo_event' ) {
     17  wp_enqueue_style( 'full_calendar_bootstrap', DEVLLO_EVENTS_INC_URI. 'assets/css/bootstrap.css'); 
     18 }
    1619
    1720get_header( );
     
    204207
    205208<?php get_footer( );
    206 
    207 
  • devllo-events/trunk/templates/template-events.php

    r2384230 r2385164  
    1717      wp_enqueue_script( 'fullcalendar_min_js'); 
    1818
    19       wp_enqueue_style( 'calendar_css', DEVLLO_EVENTS_INC_URI. 'assets/css/main.css'); 
     19      global $post;
     20      if ( has_shortcode( $post->post_content, 'devllo-events' ) ) {
     21        wp_enqueue_style( 'full_calendar_bootstrap', DEVLLO_EVENTS_INC_URI. 'assets/css/bootstrap.css');
     22         
     23        wp_enqueue_style( 'calendar_css', DEVLLO_EVENTS_INC_URI. 'assets/css/main.css');   
    2024
    21       wp_enqueue_style( 'font_css', DEVLLO_EVENTS_INC_URI. 'assets/css/all.css');   
    22 
    23       wp_enqueue_style( 'full_calendar_bootstrap', DEVLLO_EVENTS_INC_URI. 'assets/css/bootstrap.css'); 
     25        wp_enqueue_style( 'font_css', DEVLLO_EVENTS_INC_URI. 'assets/css/all.css');
     26       }
    2427
    2528    }
Note: See TracChangeset for help on using the changeset viewer.