fgms / wp-plugin-directory
用于创建目录的Wordpress插件
0.0.2
2017-08-26 00:07 UTC
Requires
- php: >=5.4
- composer/installers: ~1.0
- sturple/wordpress-utilities: ~1.0
- wpackagist-plugin/piklist: >0.9
This package is not auto-updated.
Last update: 2024-09-15 02:37:53 UTC
README
共有六个部分:服务、启用、侧边栏、按钮、配置和模块。
设置部分
Settings -> Guest Directory
服务
这里您可以添加服务,使用重复字段
启用
这里您可以允许哪些自定义帖子类型可以用于目录。
- 目录公告(GD更新)
- 目录活动(GD活动)
- 目录餐饮(GD餐饮)
重要 保存启用或进行更改后,您需要转到 设置 -> 永久链接
并保存更改,以确保更改允许自定义帖子类型链接。
侧边栏
这里可以添加侧边栏图片。
按钮
这里创建主要部分的按钮。例如 Facebook 或浏览网络
配置
- 选择客户端目录的页面
- 选择标志。
- 选择目录标题
- 覆盖CSS
模块
在这里创建部分、排序,如果需要的话添加任何内容。
模块类型
- 公告
- 服务
- 活动
- 餐饮
- 交通
- 房地产
- 联系
- 自定义
短代码
[guest_directory]
[guest_directory]
设置
- 添加到
composer.json
{ "require": { ... "fgms/wp-plugin-directory": "@dev" } }
- 为客户端目录创建一个新的页面。
- 添加短代码 [guest_directory]。
- 将模板设置为基本模板。
- 为客户端目录自定义帖子类型设置启用。
- 在
设置 -> 客户端目录
设置设置 - 设置服务、侧边栏、按钮、配置和模块
文件结构
├── 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.