跳至内容
  • 关于WordPress
    • 关于WordPress
    • WordPress.org
    • 文档
    • 支持
    • 反馈
  • 登录
  • 注册
WordPress.org
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 最新消息
  • 支持
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress

插件

  • 我的收藏
  • Beta测试
  • 开发者

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

下载

Daily logo

作者Andrea Landonio
  • 详情
  • 评价
  • 安装
  • 技术支持
  • 开发进展

描述

Daily logo is a simple and flexible plugin which allow users to display a different header/logo in their site every day. If you need to have a different logo every day or during a particular event with this plugin you can completely customize your site header/logo management.

When you install and activate the plugin, an admin section is added. The section is composed by 2 pages, in the first one are automatically listed all your configured daily logos, in the second one, you can see a small legend and you can setup default look & feel templates.
You can provide a starting time and an ending time for every logo. By default the start time is 00:00 and the end time is 23:59.

You can provide 2 different templates for the header/logo HTML snippet. Imagine having different layout for desktop or mobile. The algorithm for choosing the templates is demanded to you.

There is 2 different actions that you can use:

  • daily_logo_show_today / daily_logo_show_today_alternative (display daily logo)
  • daily_logo_show_date / daily_logo_show_date_alternative (display a custom date logo)

Here you can find and example of template detection in a PHP template file (e.g. header.php):

$is_mobile = false;
if ($is_mobile) do_action( 'daily_logo_show_today_alternative' );
else do_action( 'daily_logo_show_today' );


$is_mobile = false;
if ($is_mobile) do_action( 'daily_logo_show_date_alternative', 2015, 5, 12 );
else do_action( 'daily_logo_show_date', 2015, 5, 12 );

The action with the “alternative” suffix is used for the second template layout.

用法

  1. Go to WP-Admin -> Daily Logo.
  2. Add, modify, clone or delete a daily logo or configure the default templates.
  3. Replace in your the logo HTML snippet with the following code do_action( 'daily_logo_show_today' ).

Links: Author’s Site

屏幕截图

  • Daily logo items management
  • Settings admin page

安装

  1. Unzip the downloaded daily-logo zip file
  2. Upload the daily-logo folder and its contents into the wp-content/plugins/ directory of your WordPress installation
  3. Activate daily-logo from Plugins page

常见问题

Works on multisite?

No

Can I use my custom image sizes on widget?

No, it’s better to upload for every daily logo an image with the right (or your desired) size.

How works with different layout?

The plugin provides 2 different fields to upload 2 different image, with different size. In this way you can use one layout for you first template (for example the desktop site) and the other layout for an alternative template (for example the mobile version of your site)

How works with logos scheduled in the same day?

With logos on the same day, the plugin uses the older and valid one and then first to expire (note that with overlapped dates the plugin may fail, it is advised not to use overlapped dates)

评价

此插件暂无评价。

贡献者及开发者

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

贡献者
  • Andrea Landonio

将“Daily logo”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

2.1.4 – 2021-03-14

  • Tested up with WordPress 5.7 release

2.1.3 – 2020-12-09

  • Tested up to latest WordPress releases

2.1.1 – 2019-05-22

  • Updated WordPress requirements

2.1.0 – 2017-01-02

  • Added “HAS_IMAGE_ALTERNATIVE” and “IMAGE_ALTERNATIVE” tags management

2.0.1 – 2016-07-15

  • Fixed JS date picker errors

2.0.0 – 2016-07-15

  • Added start/end time management

1.2.0 – 2016-06-29

  • Added “load more” in logos list

1.1.0 – 2015-10-25

  • Added clone logo row option

1.0.0 – 2015-06-01

  • First release

元信息

  • 版本:2.1.4
  • 最后更新:1年前
  • 有效安装数量:30+
  • WordPress版本: 4.0或更高
  • 最高兼容版本:5.7.6
  • 语言:
    English (US)
  • 标签:
    dailydoodlelogoorganizeswitch
  • 高级视图

评级

查看所有评价
  • 5星 2
  • 4星 0
  • 3星 0
  • 2星 0
  • 1星 0
登录以提交评价。

贡献者

  • Andrea Landonio

技术支持

最近两个月解决的问题:

总计 1,已解决 0

查看支持论坛

  • 关于
  • 最新消息
  • 主机
  • 捐助
  • 支持
  • 开发者
  • 参与
  • 学习
  • 展示站点
  • 插件
  • 主题
  • 区块样板
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隐私
  • 公共代码
WordPress.org
WordPress.org

China 简体中文

  • 访问我们的 Facebook 公共主页
  • 关注我们的 Twitter 账号
代码如诗