Giter Site home page Giter Site logo

wp_allgenda's Introduction

wp_allgenda

WordPress plugin to display an Allgenda widget

Installation

Simply put all 4 wp-allgenda*.php files in a subfolder of your WordPress plugin directory. Example: /wp-content/plugins/wp-allgenda

Note: curl must be enabled to use this plugin

Setup

Now, open your dashboard, enable Allgenda widget in your Plugins list. Once activated, settings will be available by accessing Settings > Allgenda widget.

You should now see the following options:

  • Group ID: the group ID as you can find on Allgenda group settings' page
  • Number of events: quantity of upcoming events you want to appear in the widget list
  • Widget caption: Widget title in your sidebar
  • Timezone: the timezone you want to display events start & end time

Lastly, go to your widgets setup (Appearance > Widgets) and place Allgenda in the sidebar you want it in :)

Dev info

wp-allgenda will register the following options:

  • wp_allgenda_gid: Allgenda groupid
  • wp_allgenda_noe: The number of upcoming events to retrieve from allgenda (default: 5)
  • wp_allgenda_timezone: timezone to interpret Allgenda times (default: WordPress timezone)
  • wp_allgenda_widget_caption: Caption for sidebar widget (default: Allgenda)
  • wp_allgenda_offline_since: "hidden" option; used to tag Allgenda as offline and not generate any new requests for the next 10 minutes (avoid WordPress visitors having to wait curl timeout, 3s currently).

A transient is used to cache allgenda query results for 3 minutes (see get_json_allgenda_info). The cached request is proper to each group ID and number of events.

i18n: displayed strings should be found in the wp_allgenda_trdom domain

Dependancy: curl [mandatory]

wp_allgenda's People

Watchers

Denys Bulant avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.