#1 2020-04-19 16:48:25

SEO Women Power
Администратор
Здесь с 2020-02-15
Сообщений: 0
Windows 7Chrome 79.0

act_if_mobile - определение просмотра сайта с мобильного устройства

Этот плагин добавляет условный тег для определения, если пользователь просматривает с мобильного устройства или нет (использующий 'else' пункт).


Скрытый текст

# Name: act_if_mobile v0.1
# Type: Client side plugin
# This plugin adds conditional tag to determine, if user is browsing from mobile device, or not
# Author: Andrew Ilin (and Andy Moore)
# URL: www.angrycat.info

# .....................................................................
# This is a plugin for Textpattern - textpattern.com
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

YTo5OntzOjQ6Im5hbWUiO3M6MTM6ImFjdF9pZl9tb2JpbGUiO3M6NjoiYXV0aG9yIjtzOjI4
OiJBbmRyZXcgSWxpbiAoYW5kIEFuZHkgTW9vcmUpIjtzOjEwOiJhdXRob3JfdXJpIjtzOjI0
OiJodHRwOi8vd3d3LmFuZ3J5Y2F0LmluZm8iO3M6NzoidmVyc2lvbiI7czozOiIwLjEiO3M6
MTE6ImRlc2NyaXB0aW9uIjtzOjkzOiJUaGlzIHBsdWdpbiBhZGRzIGNvbmRpdGlvbmFsIHRh
ZyB0byBkZXRlcm1pbmUsIGlmIHVzZXIgaXMgYnJvd3NpbmcgZnJvbSBtb2JpbGUgZGV2aWNl
LCBvciBub3QiO3M6NDoiY29kZSI7czozNDg0OiIvLyDQo9GB0LvQvtCy0L3Ri9C5INGC0Y3Q
syDQtNC70Y8g0L7Qv9GA0LXQtNC10LvQtdC90LjRjyDQt9Cw0YjQtdC7INC70Lgg0L/QvtC7
0LHQt9C+0LLQsNGC0LXQu9GMINGBINC80L7QsdC40LvRjNC90L7Qs9C+INGD0YHRgtGA0L7Q
udGB0YLQstCwINC40LvQuCDRgSDQsdC+0LvRjNGI0L7Qs9C+INCx0YDQsNGC0LANCi8vINCk
0YPQvdC60YbQuNGPINC+0L/RgNC10LTQtdC70LXQvdC40Y8g0L7RgiBBbmR5IE1vb3JlIC0g
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XMgYSBrZXkgaW4gdGhlIGFycmF5DQoJaWYoaXNzZXQoJGFbc3Vic3RyKCRf
U0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXSwwLDQpXSkpew0KCQlyZXR1cm4gdHJ1ZTsNCgl9
DQp9IjtzOjQ6InR5cGUiO3M6MToiMCI7czo0OiJoZWxwIjtzOjQ5ODoiPGgxPiAmbHQ7dHhw
OmFjdF9pZl9tb2JpbGUgLyZndDsgPC9oMT4KCjxwPlRoaXMgcGx1Z2luIGFkZHMgY29uZGl0
aW9uYWwgdGFnIHRvIGRldGVybWluZSwgaWYgdXNlciBpcyBicm93c2luZyBmcm9tIG1vYmls
ZSBkZXZpY2UsIG9yIG5vdCAodXNpbmcgImVsc2UiIGNsYXVzZSkuIEJyb3dzZXIgZGV0ZWN0
aW9uIGZ1bmN0aW9uIGJ5IDxhIGhyZWY9Imh0dHA6Ly93d3cuYW5keW1vb3JlLmluZm8vIj5B
bmR5IE1vb3JlPC9hPiAtIGRvdE1vYmkgQ2VydGlmaWVkIE1vYmlsZSBXZWIgRGV2ZWxvcGVy
LiBJJ3ZlIGp1c3Qgd3JhcGVkIGl0IGludG8gVHhQIHBsdWdpbi48L3A+Cgo8cHJlPjxjb2Rl
PgombHQ7dHhwOmFjdF9pZl9tb2JpbGUmZ3Q7PGJyLz4KCUNvbnRlbnQgZm9yIG1vYmlsZSBi
cm93c2VyPGJyLz4KJmx0O3R4cDplbHNlLyZndDs8YnIvPgoJQ29udGVudCBmb3Igb3RoZXIg
YnJvd3NlcnM8YnIvPgombHQ7L3R4cDphY3RfaWZfbW9iaWxlJmd0Owo8L2NvZGU+PC9wcmU+
IjtzOjM6Im1kNSI7czozMjoiZjdmODY4NzdjY2ZlNDVjZTdjZWE2ZmVlNDExMWY3ZjYiO30=

Вне форума

Сейчас в этой теме пользователей: 0, гостей: 1
[Bot] CCBot

Подвал форума

Под управлением FluxBB
Модифицировал Visman

[ Сгенерировано за 0.015 сек, 7 запросов выполнено - Использовано памяти: 596.33 Кбайт (Пик: 640.03 Кбайт) ]