页头菜单配置【勿删】

  • Register
Shop

测试页面内容-标题H3

测试页面的正文 P

[wordpress_file_upload] [wordpress_file_upload_browser]

基本

文本

这是测试文本。。。。其实是 input

文本段

这是文本段,textarea

号码

17788770181

Range 范围

84

电子邮件

test@email.com

地址(就是网址)

https://www.autel.com

密码

R#UnQiDDx7vVhBNLFN@Y%Dl4

内容

图像

{"ID":616,"id":616,"title":"pl34232943-remark","filename":"pl34232943-remark.jpg","filesize":"27392","url":"https:\/\/www.autelrobotics.com\/wp-content\/uploads\/2022\/08\/pl34232943-remark.jpg","link":"https:\/\/www.autelrobotics.com\/pl34232943-remark\/","alt":"\u76f8\u518c\u56fe\u7247-1-Alt Text","author":"2","description":"\u76f8\u518c\u56fe\u7247-1-\u63cf\u8ff0","caption":"\u76f8\u518c\u56fe\u7247-1-Caption","name":"pl34232943-remark","status":"inherit","uploaded_to":0,"date":"2022-08-10 08:34:07","modified":"2023-04-21 02:09:06","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/www.autelrobotics.com\/wp-includes\/images\/media\/default.png","width":630,"height":630,"sizes":{"thumbnail":"https:\/\/www.autelrobotics.com\/wp-content\/uploads\/2022\/08\/pl34232943-remark-150x150.jpg","thumbnail-width":150,"thumbnail-height":150,"medium":"https:\/\/www.autelrobotics.com\/wp-content\/uploads\/2022\/08\/pl34232943-remark-300x300.jpg","medium-width":300,"medium-height":300,"medium_large":"https:\/\/www.autelrobotics.com\/wp-content\/uploads\/2022\/08\/pl34232943-remark.jpg","medium_large-width":630,"medium_large-height":630,"large":"https:\/\/www.autelrobotics.com\/wp-content\/uploads\/2022\/08\/pl34232943-remark.jpg","large-width":630,"large-height":630,"1536x1536":"https:\/\/www.autelrobotics.com\/wp-content\/uploads\/2022\/08\/pl34232943-remark.jpg","1536x1536-width":630,"1536x1536-height":630,"2048x2048":"https:\/\/www.autelrobotics.com\/wp-content\/uploads\/2022\/08\/pl34232943-remark.jpg","2048x2048-width":630,"2048x2048-height":630}}
  • ID 616
  • id 616
  • title pl34232943-remark
  • filename pl34232943-remark.jpg
  • filesize 27392
  • url https://www.autelrobotics.com/wp-content/uploads/2022/08/pl34232943-remark.jpg
  • link https://www.autelrobotics.com/pl34232943-remark/
  • alt 相册图片-1-Alt Text
  • author 2
  • description 相册图片-1-描述
  • caption 相册图片-1-Caption
  • name pl34232943-remark
  • status inherit
  • uploaded_to 0
  • date 2022-08-10 08:34:07
  • modified 2023-04-21 02:09:06
  • menu_order 0
  • mime_type image/jpeg
  • type image
  • subtype jpeg
  • icon https://www.autelrobotics.com/wp-includes/images/media/default.png
  • width 630
  • height 630
  • sizes Array

文件

Array
  • ID 749
  • id 749
  • title 道通科技23.2.13报价Feng 更新2
  • filename 道通科技23.2.13报价Feng-更新2.pdf
  • filesize 87875
  • url https://www.autelrobotics.com/wp-content/uploads/2023/04/道通科技23.2.13报价Feng-更新2.pdf
  • link https://www.autelrobotics.com/test/%e9%81%93%e9%80%9a%e7%a7%91%e6%8a%8023-2-13%e6%8a%a5%e4%bb%b7feng-%e6%9b%b4%e6%96%b02/
  • alt
  • author 3
  • description
  • caption
  • name %e9%81%93%e9%80%9a%e7%a7%91%e6%8a%8023-2-13%e6%8a%a5%e4%bb%b7feng-%e6%9b%b4%e6%96%b02
  • status inherit
  • uploaded_to 668
  • date 2023-04-20 09:57:45
  • modified 2023-04-20 09:57:45
  • menu_order 0
  • mime_type application/pdf
  • type application
  • subtype pdf
  • icon https://www.autelrobotics.com/wp-includes/images/media/document.png

可视化编辑器

段落

链接

abc

script、style 标签都支持,但是 script 标签会自动包一层 p 标签

p 标签不会自动过滤掉,某些富文本编辑器p标签不添加 class 会被自动删除

oEmbed

oEmbed 是一种允许第三方站点上 URL 的嵌入式表示的格式……当用户发布一个到某资源的链接时,[它]允许网站显示此嵌入式内容(比如照片或视频),无需直接解析该资源。

填写链接,会生成一个带链接文本的 a 标签

相册

Array
  • 0 pl34232943-remark
  • 1 pl34246101-remark
  • 2 pl34247491-remark

图片的 keys:

ID

id

title

filename

filesize

url

link

alt

author

description

caption

name

status

uploaded_to

date

modified

menu_order

mime_type

type

subtype

icon

width

height

sizes

选项

Select

Array
{"value":"blue","label":"\u84dd\u8272"}
1 blue
2 蓝色
3
4

1. 根据配置,返回值形式不一样,需要根据情况来取值

2. 数组 Array 直接用 [key] 来取值,箭头 -> 无法对数组Array取值,箭头->是对象获取属性的方式

复选框

Array
[{"value":"sex","label":"\u6027\u522b"},{"value":"age","label":"\u5e74\u9f84"}]
1 Array
2 sex
3 性别
  • 0 性别 - sex
  • 1 年龄 - age

1. 根据配置,返回值形式不一样,需要根据情况来取值

单选按钮

Array
{"value":"other","label":"\u5176\u4ed6"}
其他
other

1. 直接取值

Button Group

Array
{"value":"ok","label":"\u786e\u8ba4"}
确认
ok

1. 按钮组和 Radio 类似,只是样式不一样

真/假

1.
2. false

1. 真:输出 1,假输出 空串

关系

Link

1. Array
2. {"title":"\u9053\u901a\u5b98\u7f51","url":"https:\/\/www.autel.com","target":"_blank"}

1. 添加一个超链接,可以输入 url、链接文字、以及是否新打开窗口,可以使用本站链接,或者外部链接

文章对象

1.

页面链接

1.
2. ""

返回 Array ['xxx', 'xxxx22']

关系

1. Array

选择网站内容:页面、文章、媒体、表单等。。支持筛选、搜索, 返回一个文章列表,列表项是文章对象

分类法

1.
2. false

一个树形结构,选择网站地图,勾选页面、文章

用户

1. Array
2. {"ID":3,"user_firstname":"","user_lastname":"","nickname":"brisk","user_nicename":"brisk","display_name":"brisk","user_email":"manager@briskvape.com","user_url":"","user_registered":"2022-08-11 03:58:07","user_description":"","user_avatar":false}
  • ID 3
  • user_firstname
  • user_lastname
  • nickname brisk
  • user_nicename brisk
  • display_name brisk
  • user_email manager@briskvape.com
  • user_url
  • user_registered 2022-08-11 03:58:07
  • user_description
  • user_avatar

单选用户,获取用户信息

jQuery

谷歌地图

后台管理显示地图界面,服务不可用

日期选择

1. 08/04/2023
2. "08\/04\/2023"

直接获取时间字符串

Date Time Picker

1. 21/04/2023 2:25 下午
2. "21\/04\/2023 2:25 \u4e0b\u5348"

直接获取时间字符串

Time Picker

1. 2:30 下午
2. "2:30 \u4e0b\u5348"

直接获取时间字符串

颜色选择

1. #35dbf4
2. "#35dbf4"

直接获取 #xxxxx 色值字符串

样式

消息

只在后台显示文本,不作为输入工具

Accordion

只在后台显示文本,不作为输入工具

选项卡

只在后台显示文本,不作为输入工具

Group

1. Array
2. {"hardware":"\u9065\u63a7\u5668","software":"Sky Fly App","images":{"big_img":"https:\/\/www.autelrobotics.cn\/userfiles\/images\/2023\/02\/27\/2023022717236640.png","small_img":"https:\/\/www.autelrobotics.cn\/userfiles\/images\/2023\/03\/15\/2023031509406740.jpg"}}

返回一个 Array , Group 的子表项,也可以使用 Group 嵌套

重复器

1. Array
2. [{"menu_01":"a1","menu_02":"b1","menu_03":[{"menu_03_01":"c1-1-1","menu_03_02":"c1-2-1"},{"menu_03_01":"c1-1-2","menu_03_02":"c1-2-2"}]},{"menu_01":"a2","menu_02":"b2","menu_03":[{"menu_03_01":"c2-1","menu_03_02":"c2-2"}]}]

test_repeator

大段内容

1. Array
2. [{"acf_fc_layout":"--\u540d\u79f0--","extends_1":"\u5b57\u6bb51\u7684\u5185\u5bb91"},{"acf_fc_layout":"--\u540d\u79f0--","extends_1":"\u5b57\u6bb51\u7684\u5185\u5bb92"}]

test_long_text

Clone

1. Array
2. {"test_input_text":"\u8fd9\u662f\u6d4b\u8bd5\u6587\u672c\u3002\u3002\u3002\u3002\u5176\u5b9e\u662f input","test_textarea":"\u8fd9\u662f\u6587\u672c\u6bb5\uff0ctextarea"}

直接在后台页面编辑里,克隆了多个配置的字段

PHP 语法

基础

PHP 很有趣!

图片的标题是 pl34232943-remark
图片的URL是 https://www.autelrobotics.com/wp-content/uploads/2022/08/pl34232943-remark.jpg
I like Volvo, BMW and Toyota.数组数量:3

PHP 关联数组

Peter is 35 years old.live at 深圳

遍历关联数组

Key=Peter, Value=35
Key=Ben, Value=37
Key=Joe, Value=43

数组排序

sort() - 对数组进行升序排列
rsort() - 对数组进行降序排列
asort() - 根据关联数组的值,对数组进行升序排列
ksort() - 根据关联数组的键,对数组进行升序排列
arsort() - 根据关联数组的值,对数组进行降序排列
krsort() - 根据关联数组的键,对数组进行降序排列

PHP 函数

1 + 16 = 17

PHP 魔术常量

这是第 " 690 " 行
该文件位于 " /opt/wordpress2/wp-content/themes/autel/template-test.php "
该文件位于 " /opt/wordpress2/wp-content/themes/autel "