[wordpress插件] Ava The ShortcodeAva简码

wordpress 插件 文章 2020-02-26 00:50 623 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Ava is a minimal shortcode which allows you to easily display an avatar.

Ava是最小的短代码,可让您轻松显示化身。

All you need to do is type [ava] into a WordPress post or page.

您需要做的就是在WordPress帖子或页面中键入 [ava]

Doing this will display the currently logged in user’s avatar.

这样做会显示当前登录用户的头像。

To show a specific user, do this:
    

要显示特定用户,请执行以下操作:
    

[ava id=”1″]

[ava id =” 1”]

To change the size and add an alt attribute do this:
    

要更改大小并添加alt属性,请执行以下操作:
    

[ava size=”32″ alt=”me”] or [ava id="1" size="32" alt="me"]

[ava size =“ 32” alt =“ me”]或 [ava id =“ 1” size =“ 32” alt =“ me”]

If you are comfortable editing your theme and with PHP you may also utilize this shortcode by using:

如果您方便地编辑主题并使用PHP,还可以通过以下方式使用此短代码: <?php echo do_shortcode('[ava]');

?>

?>

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/ava directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / ava 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress.
    4. 通过WordPress中的“插件”屏幕激活插件。

    5. Place [ava] in a page.

    6. 在页面中放置[ava]。

    7. Use CSS to make it pretty.
    8. 使用CSS使其美观。

下载地址
https://downloads.wordpress.org/plugin/ava-the-shortcode.1.0.zip
-EOF-

AI助手支持GPT4.0