Giter Club home page Giter Club logo

annonces's Introduction

Annonces

Annonces is a WordPress plugin. It display announces posted in your WordPress interface on a Google map.

Getting Started

Prerequisites

Installing

  • In your backadmin, go to "Plugins" panel
  • Install the plugin Annonces
  • Install required plugin : ACF Free and update it to version 5.x.x
  • Activate plugins Annonces and ACF

How to use

  • Active the plugin
  • Follow the informations
  • Create your first annonce
  • Choose the category, pin-color
  • View you annonce
  • View all the annonces put the shortcode in a page

Shortcodes

[annonces] : Display the Google Map in a page with the shortcode :

Filters

Change metadatas in infowindow of map

add_filter('set_marker_data', 'mytheme_set_marker_data', 10, 2);
function mytheme_set_marker_data($microdata, $annonce_id) {
    // datas
    return $microdata;
}

Change title of filter bloc over the map

add_filter('bloc_filter_title', 'mytheme_set_filter_title', 10, 1);
function mytheme_set_filter_title($filter_title) {
    // datas
    return $filter_title;
}

Template

You can create single-announces.php in your child theme to edit the single page of announce : code for the single-annouce.php

ACF

  • Width the ACF plugin, you can create or import fields to personalize your announces.
  • Edit the templates as explain above.
  • You will obtain custom announces which will suit your project

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

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.