[wordpress插件] JSM's Adobe XMP / IPTC for WordPressJSM的适用于WordPress的Adobe XMP / IPTC

wordpress 插件 文章 2020-02-05 01:40 703 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Retrieve the following Adobe XMP / IPTC information from images in the WordPress Media Library and NextGEN Galleries:

从WordPress媒体库和NextGEN画廊中的图像中检索以下Adobe XMP / IPTC信息:

    • Creator Email
    • 创作者电子邮件

    • Owner Name
    • 所有者名称

    • Creation Date
    • 创建日期

    • Modification Date
    • 修改日期

    • Label
    • 标签

    • Credit
    • 信用

    • Source
    • 来源

    • Headline
    • 标题

    • City
    • 城市

    • State
    • 状态

    • Country
    • 国家

    • Country Code
    • 国家代码

    • Location
    • 位置

    • Title
    • 标题

    • Description
    • 说明

    • Creator
    • 创作者

    • Keywords
    • 关键字

    • Hierarchical Keywords
    • 分层关键字

    The extracted XMP / IPTC data is cached on disk to improve performance and is refreshed if / when the original image is modified.

    提取的XMP / IPTC数据被缓存在磁盘上,以提高性能,如果修改了原始映像,则刷新该文件。

    You can use the plugin in one of two ways;

    您可以通过以下两种方式之一使用该插件:

    calling a method in your theme template(s) or using the [xmp] shortcode in your content.

    在主题模板中调用方法,或在内容中使用 [xmp] 简码。

    There are no plugin settings — simply install and activate the plugin.

    没有插件设置-只需 install activate 插件即可。

    Retrieve XMP Data as an Array

    将XMP数据检索为数组

    $adobeXMP =& adobeXMPforWP::get_instance();

      $ adobeXMP =&adobeXMPforWP :: get_instance();

    /** 

    / ** 

    * Some default class properties can be modified. 

    *一些默认的类属性可以修改。 

    */

    * /

    $adobeXMP->use_cache = true;

    $ adobeXMP-> use_cache = true;

    // default

    //默认

    $adobeXMP->max_size = 512000;

    $ adobeXMP-> max_size = 512000;

    // default

    //默认

    $adobeXMP->chunk_size = 65536;

    $ adobeXMP-> chunk_size = 65536;

    // default

    //默认

    /** 

    / ** 

    * The $id can be a WordPress Media Library image ID, 

    * $ id可以是WordPress媒体库的图像ID, 

    * or NextGEN Gallery image ID in the form of ngg-##. 

    *或以ngg-##形式的NextGEN Gallery图像ID。 

    */

    * /

    $image_xmp = $adobeXMP->get_xmp( $id );

    $ image_xmp = $ adobeXMP-> get_xmp($ id);

    echo '

    Photograph by '.$image_xmp['Creator'].'

    ';

    回显“

    由.. $ image_xmp ['Creator']拍摄的照片。” ';

    You can also hook the ‘adobe_xmp_cache_dir’ filter to modify the default cache directory.

    您还可以挂钩“ adobe_xmp_cache_dir”过滤器来修改默认的缓存目录。

    Include a Shortcode in your Post or Page

    在帖子或页面中包含简码

    [xmp id="101,ngg-201"]

      [xmp id =“ 101,ngg-201”]

    This shortcode prints all the XMP information for Media Library image ID “101” and NextGEN Gallery image ID “201”.

    此简码打印媒体库图像ID“ 101”和NextGEN Gallery图像ID“ 201”的所有XMP信息。

    The XMP information is printed as a definition list

    with a class name of xmp_shortcode that you can style for your needs.

    XMP信息被打印为定义列表

    ,其类名称为 xmp_shortcode ,您可以根据需要对其进行样式设置。

    Each

    and
    element also has a style corresponding to it's title – for example, the “Creator” list element has an xmp_creator

    每个

    元素也具有与其标题相对应的样式-例如,“ Creator”列表元素具有一个 xmp_creator

    > class name.

    >类名。

    Here’s an example of the definition list HTML:

    这是定义列表HTML的示例:

      

    Credit

    信用

    JS Morisset

    JS Morisset

    Source

    Underwater Focus

    水下焦点

    Hierarchical Keywords

    分级关键字

    What >

    什么>

    Photography >    

    摄影>    

    Field of View >

    视场>

    Wide-Angle >

    广角>

    Fish-Eye

    鱼眼

    The shortcode can also take a few additional arguments:

    简码也可以使用其他一些参数:

      • include (defaults to “all”)
      • include (默认为“全部”)

      Define which XMP elements to include, for example:

      定义要包括的XMP元素,例如:

      [xmp id="101" include="creator,creator email"]

        [xmp id =“ 101” include =“创建者,创建者电子邮件”]

        • exclude (defaults to none)
        • 排除(默认为无)

        Exclude some XMP elements, for example to print all XMP elements, except for the “creator email”:

        排除一些XMP元素,例如打印所有XMP元素,但“创建者电子邮件”除外:

        [xmp id="101" exclude="creator email"]

          [xmp id =“ 101” exclude =“创建者电子邮件”]

          • show_title (defaults to “yes”)
          • show_title (默认为“是”)

          Include / exclude the

          definition titles.

          包括/排除

          定义标题。

          [xmp id="101" show_title="no"]

            [xmp id =“ 101” show_title =“ no”]

            • show_empty (defaults to “no”)
            • show_empty (默认为“ no”)

            Include / exclude empty

            definition values.

            包含/排除空的

            定义值。

              • not_keyword (defaults to none)
              • not_keyword (默认为无)

              Exclude a list of (case incensitive) keywords, for example:

              排除(区分大小写)关键字的列表,例如:

              [xmp id="101" not_keyword="who,what,where"]

                [xmp id =“ 101” not_keyword =“ who,what,where”]

              To exclude a hierarchical keyword list, use hyphens between the keywords, for example:

              要排除分层关键字列表,请在关键字之间使用连字符,例如:

              [xmp id="101" not_keyword="who,what,where,who-people-unknown"]

                [xmp id =“ 101” not_keyword =“ who,what,where,who-people-unknown”]

安装步骤

Automated Install

自动安装

    1. Go to the wp-admin/ section of your website.
    2. 转到网站的wp-admin /部分。

    3. Select the Plugins menu item.
    4. 选择插件菜单项。

    5. Select the Add New sub-menu item.
    6. 选择添加新子菜单项。

    7. In the Search box, enter the plugin name.
    8. 搜索框中,输入插件名称。

    9. Click the Search Plugins button.
    10. 点击搜索插件按钮。

    11. Click the Install Now link for the plugin.
    12. 点击立即安装链接以获取插件。

    13. Click the Activate Plugin link.
    14. 点击激活插件链接。

    Semi-Automated Install

    半自动安装

      1. Download the plugin ZIP file.
      2. 下载插件ZIP文件。

      3. Go to the wp-admin/ section of your website.
      4. 转到网站的wp-admin /部分。

      5. Select the Plugins menu item.
      6. 选择插件菜单项。

      7. Select the Add New sub-menu item.
      8. 选择添加新子菜单项。

      9. Click on Upload link (just under the Install Plugins page title).
      10. 点击上传链接(位于“安装插件”页面标题下方)。

      11. Click the Browse… button.
      12. 点击浏览... 按钮。

      13. Navigate your local folders / directories and choose the ZIP file you downloaded previously.
      14. 浏览您的本地文件夹/目录,然后选择您先前下载的ZIP文件。

      15. Click on the Install Now button.
      16. 点击立即安装按钮。

      17. Click the Activate Plugin link.
      18. 点击激活插件链接。

下载地址

https://downloads.wordpress.org/plugin/adobe-xmp-for-wp.1.3.3.zip

https://downloads.wordpress.org/plugin/adobe-xmp-for-wp.1.3.3.zip

-EOF-

AI助手支持GPT4.0


三叔工具箱

摸鱼人热门新闻聚合

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Custom Dolly定制多莉
[wordpress插件] All in One Addons For WPBakery Page Builder (formerly Visual Composer)WPBakery页面构建器的多合一附件(以前为Visual Composer)
[wordpress插件] Active User活跃用户
[wordpress插件] BuddyPress Group Topic TagsBuddyPress组主题标签
[wordpress插件] Car Rental Booking Engine by Ionoleggioauto.comIonoleggioauto.com的汽车租赁预订引擎
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 7942
问题? 7168
如何快速搭建抽奖助手小程序(无需代码知识) 4975
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5930
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5459
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5158
如何解决渲染层网络错误Failed to load media? 16510
小程序找号找回 释放昵称? 2393
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2477
删除部分微信用户个人数据的通知,怎么删除? 5506