[wordpress插件] CC Lexicon LiteCC词典精简版

wordpress 插件 文章 2020-03-19 14:10 500 0 全屏看文

AI助手支持GPT4.0

评分
60
描述

Lexicon Entries consist of a “Term” and a “Definition” (if you are creating FAQs, this equates to a “Question” and an “Answer”), and can be managed in exactly the same way as standard WordPress posts

词典条目由“术语”和“定义”组成(如果您要创建常见问题解答,则相当于“问题”和“答案”),并且可以按照与标准WordPress帖子完全相同的方式进行管理

.

The Lexicon Entries can also be organised into Categories.

词典条目也可以组织为类别。

The Lexicon Entries are displayed using a shortcode, allowing you to display all entries or those for certain categories.

“词典条目”使用短代码显示,允许您显示所有条目或某些类别的条目。

The terms are indexed alphabetically, and initially only the terms are displayed – clicking on any term will expand the entry to show the definition.

这些术语按字母顺序索引,并且最初仅显示这些术语-单击任何术语将展开条目以显示定义。

Using the shortcode

使用简码

The simplest usage would be to use the shortcode with no parameters:

最简单的用法是使用不带参数的简码:

[lexicon]

  [词典]

This would show all Lexicon Entries in all Categories with the default styling.

这将显示具有默认样式的所有类别中的所有词典条目。

To show the Lexicon Entries for a single category, you would specify the category slug using the category parameter:

要显示单个类别的词典条目,您可以使用 category 参数指定类别标签:

[lexicon category="general-entries"]

  [词典类别=“通用条目”]

To show Lexicon Entries for a number of categories, simply supply a comma-separated list of category slugs:

要显示许多类别的词典条目,只需提供以逗号分隔的类别标签列表即可:

[lexicon category="general-entries,specialist-subjects,misc-entries"]

  [词典类别=“一般条目,专家主题,其他条目”]

You can change the styling of the Lexicon Entries using the before_heading, after_heading, before_title and after_title parameters

您可以使用 before_heading after_heading before_title after_title 参数来更改Lexicon条目的样式。

:

The before_heading and after_heading parameters specify the HTML used before and after the indexation heading.

before_heading after_heading 参数指定索引标题之前和之后使用的HTML。

By default, before_heading is set to

and after_heading is set to

.

默认情况下, before_heading 设置为

,而 after_heading 设置为

p>

>

If you wanted to have these items displayed at a larger size you could use something like:

如果您想以更大的尺寸显示这些项目,则可以使用类似的方法:

[lexicon before_heading="

" after_heading="

"]

  [词典before_heading =“ 

” after_heading =“ ”]

Similarly, the before_title and after_title parameters specify the HTML used before and after the actual Lexicon Term.

类似地, before_title after_title 参数指定实际Lexicon术语之前和之后使用的HTML。

By default, before_title is set to

and after_title is set to
.

默认情况下, before_title 设置为

,而 after_title 设置为

p>

>

If you wanted to have these items displayed at a larger size you could use something like:

如果您想以更大的尺寸显示这些项目,则可以使用类似的方法:

[lexicon before_title="

" after_title="

"]

  [词典before_title =“ 

” after_title =“ ”]

The default instructions that are displayed above the entries by the plugin read: “Click on any term below to reveal the description.”

插件条目上方显示的默认说明为:“单击下面的任何术语以显示说明。”

… you can change these instructions by specifying the instructions parameter:

…您可以通过指定 instructions 参数来更改这些指令:

[lexicon instructions="Click on any item below to reveal more ..."]

  [词典说明=“单击下面的任何项目以显示更多...”]

You can change how the instructions are displayed by specifying the before_instructions and after_instructions parameters.

您可以通过指定 before_instructions after_instructions 参数来更改指令的显示方式。

The default value for before_instructions is

, and for after_instructions is
.

before_instructions 的默认值为

,而 after_instructions 的默认值为

>

>

For example, you could specify that the instructions are displayed in a

element as follows:

例如,您可以指定将指令显示在

元素中,如下所示:

[lexicon before_instructions="
" after_instructions="
"]

  [词典before_instructions =“ 
” after_instructions =“ ”]

You can specify a skin parameter, which will apply some standard styling to the Lexicon entries.

您可以指定 skin 参数,该参数将对Lexicon条目应用一些标准样式。

This parameter can take the following values: simple (the default value), red, greenand blue.<

此参数可以采用以下值: simple (默认值), red green blue

/p>

/ p>

For example, the following would display the Lexicon entries in blue [lexicon skin="blue".

例如,以下内容将以蓝色 [lexicon skin =“ blue” ”显示词典条目。

If you want to add your own styling to the Lexicon entries, you can specify the class parameter to add your own class to the Lexicon entries for styling with CSS.

如果要将自己的样式添加到Lexicon条目,则可以指定 class 参数,以将自己的类添加到Lexicon条目以使用CSS进行样式设置。

Specifying the class parameter will cause the skin parameter to be ignored.

指定 class 参数将导致忽略 skin 参数。

For example, you could use:

例如,您可以使用:

[lexicon class="myclass"]

  [词典类=“ myclass”]

安装步骤

    1. Upload the plugin to the /wp-content/plugins/ directory
    2. 将插件上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/cc-lexicon-lite.1.0.1.zip
-EOF-

AI助手支持GPT4.0