该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

HK Exif Tags

描述

This plugin is very compact and simple, it just adds two hooks.
One to store the extra exif tag “make” in the database, which is missing in the standard word press database.
The database format itself will not be touched!
The manufacturer of the camera will only be visible on new uploaded images.

The second hook parses all posts before sending it to the browser, looking for images and adds just one
html tag () with the line of EXIF information.

To suppress the line with the EXIF information, add “hk_noexif” anywhere in the <img> tag like
<img class=”hk_noexif …”…>

屏幕截图

  • This is how it looks like

安装

  1. Upload the hk_exif_tags.php file to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

How can i change the style of the new line?

Just go to edit plugin in your admin panel. And find the lines:

    // ****************************************************************************************************************************
    // **
    // ** the follwing code defines the layout of the inserted line
    // **
    // ****************************************************************************************************************************

    $result = $matches[0] . '<br><span style="color:#888; font-size:small; font-weight:normal;">';
    $result = $result . $pmake . ' ' . $pcamera . ' (' . $pfocal_length . ', ' . $paperature . ', ' . $pshutter . ', ' . $piso . ')';
    $result = $result . '<br></span>';

    // ****************************************************************************************************************************

With basic html and php knowledge, you can change here the looking of the inserted line.

Why is the manufacturer of the camera not visible?

The “make” EXIF-tag is not imported in the database by word press. After activating this plugin, also the make tag is imported in the database. The manufacturer will be visible below all new uploaded photos.

评价

此插件暂无评价。

贡献者及开发者

“HK Exif Tags” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“HK Exif Tags”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

First stable release

1.1

readme.xt updated

1.2

screenshot added

1.3

screenshot changed

1.4

support for themes which have no link on photos

1.5

added <br> tag for better positioning

1.6

FIX: check if each field exists

1.7

support for themes which don`t include attachment id in class

1.8

eliminate long make names like “NIKON CORPORATION”
eliminate duplicate brand names in make and model field, like “Canon Canon EOS 5D”

1.9

if <img> tag contains “hk_noexif” than do nothing

1.10

support themes which add extra url parameters to image urls

1.11

eliminate long make names like “PENTAX RICOH IMAGING”

1.12

security issue fixed (prevent code injections)