[wordpress插件] AddFunc Adaptive ContentAddFunc自适应内容

wordpress 插件 文章 2020-02-01 03:40 513 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

With all of the new web enabled devices springing up in the market and with the wide range of screen sizes and data transfer speeds, a website can no longer serve the same content upon every request (not without some degree of limitation and/

随着所有新的启用Web的设备涌入市场,并且屏幕尺寸和数据传输速度范围广泛,网站无法再根据每个请求提供相同的内容(并非没有一定程度的限制和/

or traffic-loss).

或流量损失)。

This lightweight plugin lets content writers and theme authors choose when WordPress should or shouldn’t show any give content item using shortcodes and quicktags or theme elements using functions.

这个轻巧的插件使内容作者和主题作者可以选择何时或应该不使用WordPress使用功能强大的短代码和快速标签或主题元素来显示任何给定内容项目。

It uses Mobile Detect (a PHP script) to identify the website visitor's device as either mobile, tablet or desktop, enabling you to

它使用移动检测(PHP脚本)将网站访问者的设备标识为移动设备,平板电脑或台式机,从而使您能够

allow or disallow content to be output.

允许或禁止输出内容。

Use it to prevent large files such as images from outputting to devices that generally have a lower data transfer speed available to them (e.g. mobile devices).

使用它可以防止将诸如图像之类的大文件输出到通常具有较低数据传输速度的设备(例如移动设备)上。

Serve more extensive copy and more elaborate userinterfaces to desktop devices and laptops.

为台式设备和笔记本电脑提供更广泛的副本和更精致的用户界面。

Target tablets to market a tablet oriented product or service.

定位平板电脑以销售面向平板电脑的产品或服务。

You can also detect iOS, iPhone, iPad, Android OS and Windows Mobile OS.

您还可以检测到iOS,iPhone,iPad,Android操作系统和Windows Mobile操作系统。

Example of a shortcode: [notmobile]Write anything you want between these two tags and WordPress will only output it when the visitor is viewing your website with a desktop/laptop or tablet and not with a mobile device.[otmobile]

简码示例:[notmobile]在这两个标记之间写任何您想要的内容,并且只有当访问者使用台式机/笔记本电脑或平板电脑而非移动设备查看您的网站时,WordPress才会输出该内容。[/ notmobile]

Easily add these shortcodes using the Quicktags in Text view.

使用“文本”视图中的“快速标记”轻松添加这些短代码。

All shortcodes also exist as functions (prefixed with aFAC_ for namespacing), which can be used in your theme as needed.

所有短代码也都作为函数存在(以aFAC_前缀命名空间),可以根据需要在您的主题中使用它们。

See the FAQs for more detail.

有关更多详细信息,请参见常见问题解答

Each function is a boolean and simply returns true or false.

每个函数都是布尔值,仅返回true或false。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

e.g.

例如

    1. Upload the addfunc-adaptive-content folder to the /wp-content/plugins/ directory
    2. addfunc-adaptive-content 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Start using the shortcodes in your content and/or the functions in your theme
    6. 开始使用内容中的简码和/或主题中的功能

下载地址

https://downloads.wordpress.org/plugin/addfunc-adaptive-content.2.0.zip

https://downloads.wordpress.org/plugin/addfunc-adaptive-content.2.0.zip

-EOF-

AI助手支持GPT4.0