Add The Events Calendar support to Sage 10.

Related tags

Laravel sage10
Overview

The Events Calendar support for Sage 10

Latest Version Total Downloads

Add The Events Calendar support to Sage 10.

For the time being there can only be a blade view, the default-template.blade.php file, that allows the events page to work loading the Sage blade layout.

The template parts are not available yet as blade templates. If you need to override a template part, say for instance:

the-events-calendar/src/views/v2/components/events-bar.php

just copy the file in the folder root folder of your theme

your-sage10-theme/tribe/events/v2/components/events-bar.php

You won't have the blade functionality but at least you can use the plugin.

Requirements

Installation

Install the composer package (in the theme folder).

$ composer require supermundano/sage-the-events-calendar

Add the package to the cached package manifest.

$ wp acorn package:discover

Publish the required template-default.blade.php view

$ wp acorn vendor:publish --tag="TheEventsCalendar Templates"

Bug Reports

If you discover a bug in Sage The Events Calendar, please open an issue.

Todo

What we need to have full Sage10 coverage:

  • [] Allow blade templates for template parts

What I've found so far:

The templates are rendered by the function template here the-events-calendar/common/src/Tribe/Template.php

We need to figure out how to:

License

Sage The Events Calendar is provided under the MIT License.

Comments
  • Switch to the filter used in tribe for internal template files

    Switch to the filter used in tribe for internal template files

    I found that the filter that was used template_include wasn't fired for every template in v2, in fact it only ran for default-template

    Using tribe_template_file with the same signature and logic worked though. It seems to be an updated internal filter for the new theme system.

    opened by EHLOVader 2
  • error with resource_path function call

    error with resource_path function call

    Hi,

    there's an error in src/TheEventsCalendar.php on line 39 that results in fatal error.

    Changing resource_path() to \Roots\resource_path() fixed the error in my case.

    opened by amakkonen 2
  • Add sage view paths for tribe events path list

    Add sage view paths for tribe events path list

    This adds the sage theme resources view path to the paths list for extending themes in Tribe events.

    Based on the other PR here but I found that the v2 in the path was redundant, and didn't want the output buffering that was added later on.

    opened by EHLOVader 0
  • How to include different files based on Single event view?

    How to include different files based on Single event view?

    I was facing this question earlier and figured it out. I'm sharing the answer below in case anyone else needs to know this information.

    As per the instructions in this repo, a single blade template is broadcast into our resources folder at <theme>/resources/views/tribe/events/v2/default-template.blade.php.

    This template is used for both the monthly/list events view and single events views. In order to determine which view we are in, we call the method is_single_event on the class Template_Bootstrap (for the full method docs see here). This method returns a boolean value. We can evaluate this value using an if conditional statement to include different files depending on whether we are in a single event view.

    @php
    use Tribe\Events\Views\V2\Template_Bootstrap;
    @endphp
    
    @extends('layouts.app')
    
    @section('content')
    
        @if(tribe( Template_Bootstrap::class )->is_single_event())
            {{-- Conditionally display something if we are in a single event --}}
        @else
            {{-- Conditionally display something if we are *not* in a single event --}} 
        @endif
        
        {!! tribe( Template_Bootstrap::class )->get_view_html(); !!}
        
    @endsection
    
    opened by ASDWcodes 0
  • point paths to 'resources/views/tribe/[..]'

    point paths to 'resources/views/tribe/[..]'

    Hi,

    Thanks for sharing this package. I try to make it work with blade files, but have not found a way to get this working. However I found a way to point the paths to 'resources/views/tribe/[..]'.

    help wanted question 
    opened by huubl 5
Owner
Supermundano
Supermundano
Add eloquent model events fired after a transaction is committed or rolled back

Laravel Transactional Model Events Add transactional events to your eloquent models. Will automatically detect changes in your models within a transac

Mark van Duijker 62 Dec 22, 2022
The Most Popular JavaScript Calendar as a Filament Widget 💛

The Most Popular JavaScript Calendar as a Filament Widget ?? Features Accepts all configurations from FullCalendar Event click and drop events Upcomin

Guilherme Saade 62 Dec 31, 2022
A minimalistic event calendar Tool for Laravel's Nova 4

Event calendar for Laravel Nova 4 An event calendar that displays Nova resources or other time-related data in your Nova 4 project on a monthly calend

wdelfuego 44 Jan 1, 2023
Inertia.js Events for Laravel Dusk

Inertia.js Events for Laravel Dusk Requirements PHP 7.4+ Vue Laravel 8.0 and higher Support We proudly support the community by developing Laravel pac

Protone Media 23 Sep 29, 2022
🔥 Fire events on attribute changes of your Eloquent model

class Order extends Model { protected $dispatchesEvents = [ 'status:shipped' => OrderShipped::class, 'note:*' => OrderNoteChanged:

Jan-Paul Kleemans 252 Dec 7, 2022
Public API for the project coding.events. Made in PHP 8.0 with Lumen 8, PHP-FPM, NGINX and MySQL 8.

coding.events API Uma API feita apenas para passar o tempo, montando uma API para o site <coding.events>. Sinta-se livre para usar esse código como es

Kaique Garcia 3 Oct 9, 2022
Add tags and taggable behaviour to your Laravel app

Add tags and taggable behaviour to a Laravel app This package offers taggable behaviour for your models. After the package is installed the only thing

Spatie 1.4k Dec 29, 2022
cybercog 996 Dec 28, 2022
This package lets you add uuid as primary key in your laravel applications

laravel-model-uuid A Laravel package to add uuid to models Table of contents Installation Configuration Model Uuid Publishing files / configurations I

salman zafar 10 May 17, 2022
Add variables to the payload of all jobs in a Laravel app

Inject extra info to the payloads of all jobs in a Laravel app This package makes it easy to inject things in every job. Imagine that you want to have

Spatie 62 Dec 9, 2022
A Laravel package helps you add a complete real-time messaging system to your new / existing application with only one command.

A Laravel package helps you add a complete real-time messaging system to your new / existing application with only one command.

Munaf Aqeel Mahdi 1.7k Jan 5, 2023
Add Server-Timing header information from within your Laravel apps.

Laravel Server Timings Add Server-Timing header information from within your Laravel apps. Installation You can install the package via composer: comp

Beyond Code 498 Dec 15, 2022
`dd` is a helper method in Laravel. This package will add the `dd` to your application.

dd dd is a helper method in Laravel. This package will add the dd to your application. Install Run composer require larapack/dd 1.* For Laravel Larave

Larapack 109 Dec 26, 2022
Add Webhooks to your Laravel app, arrr

# Captain Hook ## Add Webhooks to your Laravel app, arrr Implement multiple webhooks into your Laravel app using the Laravel Event system. A webhook i

Marcel Pociot 334 Dec 12, 2022
This package is to add a web interface for Laravel 5 and earlier Artisan.

Nice Artisan This package is to add a web interface for Laravel 5 and earlier Artisan. Installation Add Nice Artisan to your composer.json file : For

null 218 Nov 29, 2022
Add settings to any Laravel model.

Laravel Property Bag Simple settings for Laravel apps. Easily give multiple resources settings Simple to add additional settings as your app grows Set

Zach Leigh 80 Aug 8, 2022
Add transparent versioning to Laravel 5's Eloquent ORM

Eloquent Versioned Adds transparent versioning support to Laravel 5.2's Eloquent ORM. WARNING: This repository is currently super-duper experimental.

Seb Barre 30 Jun 21, 2022
Laravel Breadcrumbs - An easy way to add breadcrumbs to your @Laravel app.

Introduction Breadcrumbs display a list of links indicating the position of the current page in the whole site hierarchy. For example, breadcrumbs lik

Alexandr Chernyaev 269 Dec 21, 2022
Laravel 2-Step Verification is a package to add 2-Step user authentication to any Laravel project easily.

Laravel 2-Step verification is a package to add 2-Step user authentication to any Laravel project easily. It is configurable and customizable. It uses notifications to send the user an email with a 4-digit verification code. Laravel 2-Step Authentication Verification for Laravel. Can be used in out the box with Laravel's authentication scaffolding or integrated into other projects.

Jeremy Kenedy 204 Dec 23, 2022