[wordpress插件] Browser Body Classes with Shortcodes带短代码的浏览器主体类

wordpress 插件 文章 2020-03-11 20:30 480 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Adds browser-specific body classes for styling, and shortcodes to show or hide content to/from specified browsers and devices.

添加用于样式设置的特定于浏览器的主体类,以及用于在指定的浏览器和设备之间显示或隐藏内容的简码。

    • As of v1.6, compatible with WordPress 3.9.

      从v1.6开始,与WordPress 3.9兼容。

    • As of v1.5, includes new body classes, including catch-alls like: desktop, handheld, mobile, and tablet.

      从v1.5开始,包括新的身体类别,包括台式机,手持设备,移动设备和平板电脑之类的万能物品。

    • As of v1.4, includes Shortcode Generator Modal Window, and 16 new Browser Body Classes, for a total of 33.

      从v1.4开始,包括Shortcode Generator Modal Window(短代码生成器模态窗口)和16个新的Browser Body类,总计33个。

    • As of v1.3, includes Shortcode Generator Meta Box, and an Options page, with the option to restrict access to the Meta Box according to user capability, or disable it altogether.

      从v1.3开始,包括Shortcode Generator Meta Box(短代码生成器元框)和一个Options(选项)页面,该选项页可以根据用户能力限制对Meta Box的访问,或者完全禁用它。

      >

      >

    Browser Body Classes with Shortcodes provides more than 40 browser-specific body classes to make styling your site for different platforms and devices a cinch.

    带有短代码的浏览器主体类提供了40多种特定于浏览器的主体类,以使您为不同平台和设备设计的网站样式更加轻松。

    The plugin also comes with two powerful, yet simple, shortcodes to specify which browsers/devices to show content to, and which to hide it from.

    该插件还带有两个功能强大但简单的短代码,用于指定向哪些浏览器/设备显示内容以及从哪个浏览器/设备隐藏内容。

    Still don’t feel like typing all those browser names?

    还是不想输入所有这些浏览器名称?

    No worries!

    别担心!

    Browser Body Classes with Shortcodes comes with two different shortcode generators, with options to control who gets to use them.

    带有短代码的浏览器主体类带有两个不同的短代码生成器,并带有控制谁可以使用它们的选项。

    The two shortcodes each have just one required attribute: [showto browser=””][/showto] and [hidefrom browser=””][/hidefrom]

    这两个短代码仅具有一个必需的属性:[showto browser =“”] [/ showto]和[hidefrom browser =””] [/ hidefrom]

      • Example: [showto browser=”firefox ie10″] Your Content [/showto]
      • 示例:[showto browser =“ firefox ie10”]您的内容[/ showto]

      This will show the content only to Firefox and IE10.

      这将仅向Firefox和IE10显示内容。

        • Example: [hidefrom browser=”opera safari chrome”] Your Content [/hidefrom]
        • 示例:[hidefrom浏览器=” opera safari chrome”]您的内容[/ hidefrom]

        This will hide the content only from Opera, Chrome, and Safari.

        这只会隐藏Opera,Chrome和Safari中的内容。

          • Example: [hidefrom browser=”unknown”] Your Content [/hidefrom]
          • 示例:[hidefrom浏览器=“未知”]您的内容[/ hidefrom]

          This will hide the content from any browser not in the list of browser options below.

          这将隐藏以下浏览器选项列表之外的所有浏览器中的内容。

          Note: You can use other shortcodes inside these shortcodes.

          注意:您可以在这些简码中使用其他简码。

          You can also put a [hidefrom] shortcode inside a [showto] shortcode, but not the other way around.

          您也可以在[showto]短代码中放入[hidefrom]短代码,但反之则不行。

            • Example: [showto browser=”firefox chrome”]Chrome and Firefox will see this.

            • 示例:[showto browser =“ firefox chrome”] Chrome和Firefox将看到此信息。

              [hidefrom browser=”firefox”]Firefox won’t see this but Chrome will.[/hidefrom][/showto]

            • [hidefrom browser =“ firefox”] Firefox不会看到,但是Chrome会看到。[/ hidefrom] [/ showto]

            Browser options must be all lowercase and must contain a space or a comma between them if multiple are used.

            浏览器选项必须全部为小写,并且如果使用多个,则选项之间必须包含空格或逗号。

            Acceptable Browser options are:

            可接受的浏览器选项包括:

              • desktop

                桌面

              • handheld

                手持式

              • tablet

                平板电脑

              • mobile

                移动

              • ios

                ios

              • firefox

                firefox

              • chrome

                chrome

              • safari

                野生动物园

              • opera

                歌剧

              • maxthon

                maxthon

              • msie

                msie

              • ie5

                ie5

              • ie6

                ie6

              • ie7

                ie7

              • ie8

                ie8

              • ie9

                ie9

              • ie10

                ie10

              • ie11

                ie11

              • ns4

                ns4

              • lynx

                山猫

              • samsunggalaxytablet

                samsunggalaxytablet

              • kindlefire

                kindlefire

              • kindlesilk

                真丝

              • ipad

                ipad

              • iphone

                iphone

              • ipod

                ipod

              • android

                android

              • blackberry

                黑莓

              • skyfire

                skyfire

              • operamobile

                operamobile

              • operamini

                operamini

              • samsung

                三星

              • winmobile

                winmobile

              • iemobile

                iemobile

              • nokia

                诺基亚

              • motorola

                摩托罗拉

              • palm

                手掌

              • symbian

                symbian

              • lg

                lg

              • blazer

                开拓者

              • bolt

                螺栓

              • unknown

                未知

              Requirements

              要求

                • PHP 5.2+

                  PHP 5.2 +

                • WordPress 3.3+

                  WordPress 3.3 +

安装步骤

    1. Upload ‘browser-body-classes-with-shortcodes/’ to the ‘/wp-content/plugins/’ directory.

      将“ browser-body-classes-with-shortcodes /”上传到“ / wp-content / plugins /”目录。

    2. Activate the plugin through the ‘Plugins’ menu in WordPress.

      通过WordPress中的“插件”菜单激活插件。

    3. Configure your Options at Settings > Browser Body Classes Options

      在“设置”>“浏览器主体类选项”中配置选项

    4. Use the provided shortcodes on your pages and posts, or use the provided body classes to style your own browser-specific and device-specific content.

      在页面和帖子上使用提供的简码,或使用提供的正文类设置您自己的特定于浏览器和特定于设备的内容的样式。

下载地址
https://downloads.wordpress.org/plugin/browser-body-classes-with-shortcodes.zip
-EOF-

AI助手支持GPT4.0