2017 © Pedro Pelรกez
 

wordpress-plugin wp-plugin-directory

Wordpress plugin to create directory

image

fgms/wp-plugin-directory

Wordpress plugin to create directory

  • Friday, September 1, 2017
  • by sturple
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Guest Directory Plugin

  • This plugin once active creates a new settings pages under Settings -> Guest Directory
  • This plugin uses piklist
  • Install WP-Less plugin to enable styles

There is six sections Services, Enables, Sidebar, Buttons, Configuration and Modules., (*1)

Settings Section

Settings -> Guest Directory

Services

This is where you add the services using the repeater fields, (*2)

Enables

This is where you allow which custom post types you are allowed for the directory., (*3)

  • Directory Announcements (GD Update)
  • Directory Activities (GD Activities)
  • Directory Dining (GD Dining)

Important After saving the enables or making changes you have to go to Settings -> Permalinks and save changes to ensure changes are allow for custom post type links., (*4)

This is where the sidebar images are added., (*5)

Buttons

This is where the Main section buttons are created. ie Facebook or Browse the web, (*6)

Configuration

  • Select page for guest directory
  • select logo.
  • select Directory title
  • css overrides

Modules

This is where you create the sections and order and add any content if required., (*7)

Module Types:, (*8)

  • Announcements
  • Services
  • Activities
  • Dining
  • Transportation
  • Real Estate
  • Contact
  • Custom

Shortcodes

[guest_directory]

[guest_directory]

Setup

  • Add to composer.json
{
    "require": {
    ...
        "fgms/wp-plugin-directory": "@dev"
    }
}
  • Create a new page for guest directory.
  • add shortcode [guest_directory].
  • set template to Basic Template.
  • setup enables for Guest Directory custom post types.
  • setup settings at Settings -> Guest Directory
  • setup Services, Sidebar, Buttons, Configuration, and Modules

File structure

โ”œโ”€โ”€ assets
โ”‚ย ย  โ”œโ”€โ”€ css
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ style2.css
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ style.css  -- styles default if wp-less plugin is not loaded
โ”‚ย ย  โ”œโ”€โ”€ images
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ background-accordian-shadow.jpg
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ background.jpg
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ glyphs.png
โ”‚ย ย  โ”œโ”€โ”€ js
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ script.js -- main plugin javascript file.
โ”‚ย ย  โ””โ”€โ”€ less
โ”‚ย ย      โ”œโ”€โ”€ activities.less
โ”‚ย ย      โ”œโ”€โ”€ bootstrap.less
โ”‚ย ย      โ”œโ”€โ”€ condominium.less
โ”‚ย ย      โ”œโ”€โ”€ dining.less
โ”‚ย ย      โ”œโ”€โ”€ home.less
โ”‚ย ย      โ”œโ”€โ”€ mixins
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ 3l.less
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ mixins.less
โ”‚ย ย      โ”œโ”€โ”€ old.less
โ”‚ย ย      โ”œโ”€โ”€ site.less
โ”‚ย ย      โ”œโ”€โ”€ style.less
โ”‚ย ย      โ”œโ”€โ”€ variables.less
โ”‚ย ย      โ””โ”€โ”€ widgets.less
โ”œโ”€โ”€ composer.json  -- used for composer
โ”œโ”€โ”€ parts -- this is used by PIKLIST
โ”‚ย ย  โ”œโ”€โ”€ meta-boxes
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ gd-activites.php -- GD Activities custom fields
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ gd-dining.php -- GD Dining custom fields
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ gd-dining-special-offer.php GD Dining (specials) custom fields
โ”‚ย ย  โ””โ”€โ”€ settings  -- this is used by PIKLIST for Settings -> Guest Directory
โ”‚ย ย      โ”œโ”€โ”€ directory-ads.php
โ”‚ย ย      โ”œโ”€โ”€ directory-buttons.php
โ”‚ย ย      โ”œโ”€โ”€ directory-config.php
โ”‚ย ย      โ”œโ”€โ”€ directory-layout.php
โ”‚ย ย      โ”œโ”€โ”€ directory-services.php
โ”‚ย ย      โ””โ”€โ”€ directory-settings.php
โ”œโ”€โ”€ README.md -- this file
โ”œโ”€โ”€ shortcodes
โ”‚ย ย  โ””โ”€โ”€ guest-directory.php -- shortcode which loads resources and templates.  It also removes resources.
โ”œโ”€โ”€ src
โ”‚ย ย  โ””โ”€โ”€ Fgms
โ”‚ย ย      โ””โ”€โ”€ Directory
โ”‚ย ย          โ””โ”€โ”€ Controller.php -- Controller
โ”œโ”€โ”€ twig-templates  -- twig templates, to override these templates you need to create a plugin directory in your theme.
โ”‚ย ย  โ”œโ”€โ”€ activities.twig
โ”‚ย ย  โ”œโ”€โ”€ announcements.twig
โ”‚ย ย  โ”œโ”€โ”€ contact.twig
โ”‚ย ย  โ”œโ”€โ”€ dining.twig
โ”‚ย ย  โ”œโ”€โ”€ guest-directory-base.twig
โ”‚ย ย  โ”œโ”€โ”€ realestate.twig
โ”‚ย ย  โ”œโ”€โ”€ services.twig
โ”‚ย ย  โ””โ”€โ”€ transportation.twig
โ””โ”€โ”€ wp-plugin-directory.php -- plugin file.

The Versions

01/09 2017

dev-pdion

dev-pdion https://github.com/fgms/wp-plugin-directory

Wordpress plugin to create directory

  Sources   Download

GPL-3.0

The Requires

 

plugin wordpress fgms

01/09 2017

dev-pdion-style-fix

dev-pdion-style-fix https://github.com/fgms/wp-plugin-directory

Wordpress plugin to create directory

  Sources   Download

GPL-3.0

The Requires

 

plugin wordpress fgms

27/08 2017

dev-master

9999999-dev https://github.com/fgms/wp-plugin-directory

Wordpress plugin to create directory

  Sources   Download

GPL-3.0

The Requires

 

plugin wordpress fgms

26/08 2017

0.0.2

0.0.2.0 https://github.com/fgms/wp-plugin-directory

Wordpress plugin to create directory

  Sources   Download

GPL-3.0

The Requires

 

plugin wordpress fgms