[wordpress插件] Better Admin Pointers更好的管理指针

wordpress 插件 文章 2020-03-03 15:30 485 0 全屏看文

AI助手支持GPT4.0

评分
84
描述

This plugin will allow creation of admin pointers on any screen in the WordPress admin area, or any front end page, or on all pages.

此插件将允许在WordPress管理区域,任何前端页面或所有页面上的任何屏幕上创建管理指针。

It creates a custom post type called Pointers to store information.

它创建一个名为Pointers的自定义帖子类型来存储信息。

You need to add the following info to make it work:

您需要添加以下信息以使其起作用:

    1. Title – the part in the blue title bar
    2. 标题 –蓝色标题栏中的部分

    3. Main content area
    4. 主要内容区域

    5. Pointer id – A unique id so that it can be tracked in the WP DB as dismissed
    6. 指针ID –唯一ID,以便可以在WP DB中对其进行跟踪

    7. Screen (or Page/Post ID) – What page/screen it should appear on (if in admin) or what is the post ID (if showing on the front end).

    8. 屏幕(或页面/帖子ID)–应该显示在哪个页面/屏幕上(如果在admin中)或帖子ID是什么(如果在前端显示)。

      OR you have the ability to show on all admin or all front end pages (using ALL_ADMIN or ALL_FRONT)

    9. 或者您可以在所有管理页面或所有前端页面上显示(使用ALL_ADMIN或ALL_FRONT)

    10. Target – CSS id or class we want the pointer to attach to on the screen or post above
    11. 目标 –我们希望指针附加到屏幕上或上方发布的CSS ID或类

    12. Position Edge – Which edge should be adjacent to the target?

    13. 位置边缘 –哪个边缘应与目标相邻?

      (left, right, top, or bottom)

    14. (左,右,顶部或底部)

    15. Position Align – How should the pointer be aligned on this edge, relative to the target?

    16. 位置对齐 –指针应如何相对于目标在此边缘对齐?

      (top, bottom, left, right, or middle)

    17. (顶部,底部,左侧,右侧或中间)

    18. (OPTIONAL) Nudge Horizontal – How much should we nudge the pointer horizontally?

    19. (可选)水平微移 –我们应该水平微移指针多少?

      (Value in pixels. ex: -50, from edge value above, only works if edge above is left or right)

    20. (以像素为单位的值。例如:从上方边缘值开始,-50,仅在上方边缘为左或右时有效)

    21. (OPTIONAL) Nudge Vertical – How much should we nudge the pointer vertically?

    22. (可选)垂直微移 –我们应该垂直微移指针多少?

      (Value in pixels. ex: -50, from align value above, only works if align above is top or bottom)

    23. (以像素为单位的值。例如:从上面的对齐值开始的-50,仅在上面的对齐是顶部或底部时有效)

    24. (OPTIONAL) Z-index – What should the depth of the pointer be along the z-axis (in case you want some of them to sit higher/lower than others or higher/lower than

    25. (可选) Z索引 –指针在z轴上的深度应该是多少(以防您希望其中一些指针比其他指针高/低或高/低

      other elements on the page)

    26. 页面上的其他元素)

    EXAMPLE:

    示例:

    Let’s say I want to add a pointer on the edit plugin page that tells a user to notice which plugin they are editing.

    假设我要在“编辑插件”页面上添加一个指针,告诉用户注意他们正在编辑哪个插件。

    I would use:

    我会用:

      1. “Which Plugin am I Editing?”
      2. “我正在编辑哪个插件?”

      3. “This is the file you are editing, duh”
      4. “这是您正在编辑的文件,du”

      5. “ss_editplugs”
      6. “ ss_editplugs”

      7. “plugin-editor”
      8. “插件编辑器”

      9. “.fileedit-sub”
      10. “。fileedit-sub”

      11. “top”
      12. “顶部”

      13. “right”
      14. “正确”

      15. “-50”
      16. “-50”

      17. “-5”
      18. “-5”

      19. “50000”
      20. “ 50000”

      NOTE: This will only work for logged in users, whether on front end or back end.

      注意:这仅适用于登录用户,无论是在前端还是后端。

      NOTE: I also have a plugin that does help tabs, if you are interested in that one you can find it here: https://wordpress.org/plugins/better-admin-help-tabs/

      注意:我也有一个插件,里面有帮助标签,如果您对此感兴趣,可以在这里找到:https://wordpress.org/plugins/better-admin-help-tabs/

      This plugin leverages the great work done by others here:

      此插件利用了其他人在这里所做的出色工作:

      For configuring metaboxes on the custom post type:

      用于在自定义帖子类型上配置元框:

      https://github.com/WebDevStudios/CMB2

      https://github.com/WebDevStudios/CMB2

      For base class and code to allow pointers to display properly:

      用于基类和代码以允许指针正确显示:

      https://gist.github.com/brasofilo/6947539

      https://gist.github.com/brasofilo/6947539

安装步骤

It is always a good idea to make a backup of your database before installing any plugin.

在安装任何插件之前备份数据库总是一个好主意。

There are 3 ways to install this plugin:

有3种方法可以安装此插件:

    1. Search for it in your WordPress Admin (Plugins/Add New/Search) area and install from there

      在您的WordPress管理员(插件/添加新内容/搜索)区域中搜索它,然后从那里安装

    2. Download the zip file from https://wordpress.org/plugins/better-admin-pointers/ and then go to Plugins/Add New/Upload and then upload and activate it.

      从https://wordpress.org/plugins/better-admin-pointers/下载zip文件,然后转到Plugins / Add New / Upload,然后上传并激活它。

    3. Upload the folder “better-admin-pointers” to “/wp-content/plugins/”, then activate the plugin through the “Plugins” menu in WordPress

      将文件夹“ better-admin-pointers”上传到“ / wp-content / plugins /”,然后通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/better-admin-pointers.2.0.3.zip
-EOF-

AI助手支持GPT4.0