AI助手支持GPT4.0
Adds browser-specific body classes for styling, and shortcodes to show or hide content to/from specified browsers and devices.
添加用于样式设置的特定于浏览器的主体类,以及用于在指定的浏览器和设备之间显示或隐藏内容的简码。 p>
As of v1.6, compatible with WordPress 3.9.
从v1.6开始,与WordPress 3.9兼容。 strong> p>
li>
As of v1.5, includes new body classes, including catch-alls like: desktop, handheld, mobile, and tablet.
从v1.5开始,包括新的身体类别,包括台式机,手持设备,移动设备和平板电脑之类的万能物品。 strong> p>
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个。 strong> p>
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的访问,或者完全禁用它。 strong> p >>
>
ul>
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.
带有短代码的浏览器主体类 em>提供了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.带有短代码的浏览器主体类 em>带有两个不同的短代码生成器,并带有控制谁可以使用它们的选项。 p>The two shortcodes each have just one required attribute: [showto browser=””][/showto] and [hidefrom browser=””][/hidefrom]这两个短代码仅具有一个必需的属性:[showto browser =“”] [/ showto]和[hidefrom browser =””] [/ hidefrom] p>Example: [showto browser=”firefox ie10″] Your Content [/showto] 示例:[showto browser =“ firefox ie10”]您的内容[/ showto] li> ul>This will show the content only to Firefox and IE10.这将仅向Firefox和IE10显示内容。 p>Example: [hidefrom browser=”opera safari chrome”] Your Content [/hidefrom]示例:[hidefrom浏览器=” opera safari chrome”]您的内容[/ hidefrom] li> ul>This will hide the content only from Opera, Chrome, and Safari.这只会隐藏Opera,Chrome和Safari中的内容。 p>Example: [hidefrom browser=”unknown”] Your Content [/hidefrom]示例:[hidefrom浏览器=“未知”]您的内容[/ hidefrom] li> ul>This will hide the content from any browser not in the list of browser options below.这将隐藏以下浏览器选项列表之外的所有浏览器中的内容。 p>Note: You can use other shortcodes inside these shortcodes. 注意 strong>:您可以在这些简码中使用其他简码。You can also put a [hidefrom] shortcode inside a [showto] shortcode, but not the other way around.您也可以在[showto]短代码中放入[hidefrom]短代码,但反之则不行。 p>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] li> ul>Browser options must be all lowercase and must contain a space or a comma between them if multiple are used.浏览器选项必须全部为小写,并且如果使用多个,则选项之间必须包含空格或逗号。Acceptable Browser options are:可接受的浏览器选项包括: p>desktop桌面 p> li>handheld手持式 p> li>tablet平板电脑 p> li>mobile移动 p> li>ios ios p> li>firefox firefox p> li>chrome chrome p> li>safari野生动物园 p> li>opera歌剧 p> li>maxthon maxthon p> li>msie msie p> li>ie5 ie5 p> li>ie6 ie6 p> li>ie7 ie7 p> li>ie8 ie8 p> li>ie9 ie9 p> li>ie10 ie10 p> li>ie11 ie11 p> li>ns4 ns4 p> li>lynx山猫 p> li>samsunggalaxytablet samsunggalaxytablet p> li>kindlefire kindlefire p> li>kindlesilk真丝 p> li>ipad ipad p> li>iphone iphone p> li>ipod ipod p> li>android android p> li>blackberry黑莓 p> li>skyfire skyfire p> li>operamobile operamobile p> li>operamini operamini p> li>samsung三星 p> li>winmobile winmobile p> li>iemobile iemobile p> li>nokia诺基亚 p> li>motorola摩托罗拉 p> li>palm手掌 p> li>symbian symbian p> li>lg lg p> li>blazer开拓者 p> li>bolt螺栓 p> li>unknown未知 p> li> ul>Requirements要求 h3>PHP 5.2+ PHP 5.2 + p> li>WordPress 3.3+ WordPress 3.3 + p> li> ul>
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.
带有短代码的浏览器主体类 em>带有两个不同的短代码生成器,并带有控制谁可以使用它们的选项。 p>The two shortcodes each have just one required attribute: [showto browser=””][/showto] and [hidefrom browser=””][/hidefrom]这两个短代码仅具有一个必需的属性:[showto browser =“”] [/ showto]和[hidefrom browser =””] [/ hidefrom] p>Example: [showto browser=”firefox ie10″] Your Content [/showto] 示例:[showto browser =“ firefox ie10”]您的内容[/ showto] li> ul>This will show the content only to Firefox and IE10.这将仅向Firefox和IE10显示内容。 p>Example: [hidefrom browser=”opera safari chrome”] Your Content [/hidefrom]示例:[hidefrom浏览器=” opera safari chrome”]您的内容[/ hidefrom] li> ul>This will hide the content only from Opera, Chrome, and Safari.这只会隐藏Opera,Chrome和Safari中的内容。 p>Example: [hidefrom browser=”unknown”] Your Content [/hidefrom]示例:[hidefrom浏览器=“未知”]您的内容[/ hidefrom] li> ul>This will hide the content from any browser not in the list of browser options below.这将隐藏以下浏览器选项列表之外的所有浏览器中的内容。 p>Note: You can use other shortcodes inside these shortcodes. 注意 strong>:您可以在这些简码中使用其他简码。You can also put a [hidefrom] shortcode inside a [showto] shortcode, but not the other way around.您也可以在[showto]短代码中放入[hidefrom]短代码,但反之则不行。 p>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] li> ul>Browser options must be all lowercase and must contain a space or a comma between them if multiple are used.浏览器选项必须全部为小写,并且如果使用多个,则选项之间必须包含空格或逗号。Acceptable Browser options are:可接受的浏览器选项包括: p>desktop桌面 p> li>handheld手持式 p> li>tablet平板电脑 p> li>mobile移动 p> li>ios ios p> li>firefox firefox p> li>chrome chrome p> li>safari野生动物园 p> li>opera歌剧 p> li>maxthon maxthon p> li>msie msie p> li>ie5 ie5 p> li>ie6 ie6 p> li>ie7 ie7 p> li>ie8 ie8 p> li>ie9 ie9 p> li>ie10 ie10 p> li>ie11 ie11 p> li>ns4 ns4 p> li>lynx山猫 p> li>samsunggalaxytablet samsunggalaxytablet p> li>kindlefire kindlefire p> li>kindlesilk真丝 p> li>ipad ipad p> li>iphone iphone p> li>ipod ipod p> li>android android p> li>blackberry黑莓 p> li>skyfire skyfire p> li>operamobile operamobile p> li>operamini operamini p> li>samsung三星 p> li>winmobile winmobile p> li>iemobile iemobile p> li>nokia诺基亚 p> li>motorola摩托罗拉 p> li>palm手掌 p> li>symbian symbian p> li>lg lg p> li>blazer开拓者 p> li>bolt螺栓 p> li>unknown未知 p> li> ul>Requirements要求 h3>PHP 5.2+ PHP 5.2 + p> li>WordPress 3.3+ WordPress 3.3 + p> li> ul>
The two shortcodes each have just one required attribute: [showto browser=””][/showto] and [hidefrom browser=””][/hidefrom]
这两个短代码仅具有一个必需的属性:[showto browser =“”] [/ showto]和[hidefrom browser =””] [/ hidefrom] p>
This will show the content only to Firefox and IE10.
这将仅向Firefox和IE10显示内容。 p>
This will hide the content only from Opera, Chrome, and Safari.
这只会隐藏Opera,Chrome和Safari中的内容。 p>
This will hide the content from any browser not in the list of browser options below.
这将隐藏以下浏览器选项列表之外的所有浏览器中的内容。 p>
Note: You can use other shortcodes inside these shortcodes.
注意 strong>:您可以在这些简码中使用其他简码。You can also put a [hidefrom] shortcode inside a [showto] shortcode, but not the other way around.您也可以在[showto]短代码中放入[hidefrom]短代码,但反之则不行。 p>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] li> ul>Browser options must be all lowercase and must contain a space or a comma between them if multiple are used.浏览器选项必须全部为小写,并且如果使用多个,则选项之间必须包含空格或逗号。Acceptable Browser options are:可接受的浏览器选项包括: p>desktop桌面 p> li>handheld手持式 p> li>tablet平板电脑 p> li>mobile移动 p> li>ios ios p> li>firefox firefox p> li>chrome chrome p> li>safari野生动物园 p> li>opera歌剧 p> li>maxthon maxthon p> li>msie msie p> li>ie5 ie5 p> li>ie6 ie6 p> li>ie7 ie7 p> li>ie8 ie8 p> li>ie9 ie9 p> li>ie10 ie10 p> li>ie11 ie11 p> li>ns4 ns4 p> li>lynx山猫 p> li>samsunggalaxytablet samsunggalaxytablet p> li>kindlefire kindlefire p> li>kindlesilk真丝 p> li>ipad ipad p> li>iphone iphone p> li>ipod ipod p> li>android android p> li>blackberry黑莓 p> li>skyfire skyfire p> li>operamobile operamobile p> li>operamini operamini p> li>samsung三星 p> li>winmobile winmobile p> li>iemobile iemobile p> li>nokia诺基亚 p> li>motorola摩托罗拉 p> li>palm手掌 p> li>symbian symbian p> li>lg lg p> li>blazer开拓者 p> li>bolt螺栓 p> li>unknown未知 p> li> ul>Requirements要求 h3>PHP 5.2+ PHP 5.2 + p> li>WordPress 3.3+ WordPress 3.3 + p> li> ul>
You can also put a [hidefrom] shortcode inside a [showto] shortcode, but not the other way around.
您也可以在[showto]短代码中放入[hidefrom]短代码,但反之则不行。 p>
[hidefrom browser=”firefox”]Firefox won’t see this but Chrome will.[/hidefrom][/showto]
[hidefrom browser =“ firefox”] Firefox不会看到,但是Chrome会看到。[/ hidefrom] [/ showto] li>
Browser options must be all lowercase and must contain a space or a comma between them if multiple are used.
浏览器选项必须全部为小写,并且如果使用多个,则选项之间必须包含空格或逗号。
Acceptable Browser options are:
可接受的浏览器选项包括: p>
desktop
桌面 p>
handheld
手持式 p>
tablet
平板电脑 p>
mobile
移动 p>
ios
ios p>
firefox
firefox p>
chrome
chrome p>
safari
野生动物园 p>
opera
歌剧 p>
maxthon
maxthon p>
msie
msie p>
ie5
ie5 p>
ie6
ie6 p>
ie7
ie7 p>
ie8
ie8 p>
ie9
ie9 p>
ie10
ie10 p>
ie11
ie11 p>
ns4
ns4 p>
lynx
山猫 p>
samsunggalaxytablet
samsunggalaxytablet p>
kindlefire
kindlefire p>
kindlesilk
真丝 p>
ipad
ipad p>
iphone
iphone p>
ipod
ipod p>
android
android p>
blackberry
黑莓 p>
skyfire
skyfire p>
operamobile
operamobile p>
operamini
operamini p>
samsung
三星 p>
winmobile
winmobile p>
iemobile
iemobile p>
nokia
诺基亚 p>
motorola
摩托罗拉 p>
palm
手掌 p>
symbian
symbian p>
lg
lg p>
blazer
开拓者 p>
bolt
螺栓 p>
unknown
未知 p>
PHP 5.2+
PHP 5.2 + p>
WordPress 3.3+
WordPress 3.3 + p>
Upload ‘browser-body-classes-with-shortcodes/’ to the ‘/wp-content/plugins/’ directory.
将“ browser-body-classes-with-shortcodes /”上传到“ / wp-content / plugins /”目录。 p>
Activate the plugin through the ‘Plugins’ menu in WordPress.
通过WordPress中的“插件”菜单激活插件。 p>
Configure your Options at Settings > Browser Body Classes Options
在“设置”>“浏览器主体类选项”中配置选项 p>
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.
在页面和帖子上使用提供的简码,或使用提供的正文类设置您自己的特定于浏览器和特定于设备的内容的样式。 p>
ol>
原文出处:http://www.sanshu.cn/a/5596.html
群主管理都是支付大佬