sturple/wp-plugin-directory

Wordpress 插件,用于创建目录

安装: 3

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

语言:CSS

类型:wordpress-plugin

0.0.2 2017-08-26 00:07 UTC

This package is not auto-updated.

Last update: 2024-09-15 01:42:38 UTC


README

  • 此插件一旦激活,将在 设置 -> 客户目录 下创建新的设置页面
  • 此插件使用了 piklist
  • 安装 WP-Less 插件以启用样式

共有六个部分:服务、启用、侧边栏、按钮、配置和模块。

设置部分

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.