Linux 软件免费装
Banner图

SS Device Detector

开发者 vladiiancu
peterbuga
更新时间 2015年3月11日 23:36
捐献地址: 去捐款
PHP版本: 3.2 及以上
WordPress版本: 4.1.1
版权: GPLv2 or later
版权网址: 版权信息

标签

responsive shortcode content adaptive RESS

下载

1.0.2 1.0.3 1.0.4

详情介绍:

The purpose of the plugin is to help both WordPress users and developers with shortcodes and function respectively, to implement a server side responsive solution for their theme. The difference is substantial compared to solutions like display:none. When using the "display" CSS instruction on, let's say, an image, the browser actually downloads the entire image and then it hides it. With this solution the image is no longer downloaded. SS comes from 'server-side'.

安装:

This section describes how to install the plugin and get it working.
  1. Activate the plugin (SS Device Detector) through the 'Plugins' menu in WordPress.
  2. Once activated you can use the shortcodes and functions provided by the plugin (see documentation).

常见问题:

What shortcodes are available?

You can use [stp_phone]Content here...[/stp_phone], [stp_tablet]Content for tablet...[/stp_tablet], [stp_desktop]Content for desktop...[/stp_desktop] and [stp_mobile] Content for phones and tablets alike [/stp_mobile].

What functions are available?

You can use:

  • stp_phone() returns true if the users are using a phone to view the content, while stp_notphone() returns true if the user is NOT using a phone to view the content;
  • stp_tablet() returns true if the users are using a tablet to view the content. Vice-versa stp_nottablet();
  • stp_desktop() returns true for desktop users. You get it by now. Aliases: stp_notdevice() and stp_notmobile();
  • stp_mobile() returns true for phone and tablet users.

更新日志:

1.0.4 1.0.3 1.0.2 1.0.1 1.0