Skip to content

Commit ec69a0c

Browse files
committed
Merge branch 'master' of github.com:serbanghita/Mobile-Detect into devel
2 parents 1b4f444 + 2f240d4 commit ec69a0c

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ Mobile attributes include type of device, Operating System, Browser, etc. Exampl
139139
.is-tablet, .is-ios, .is-not-ios, .is-androidos, .is-chromebrowser.
140140
Made by [wescleveland56](https://github.com/wescleveland56).
141141

142+
* [Adaptive Content](https://wordpress.org/plugins/addfunc-adaptive-content/) for WordPress provides the most
143+
intuitive set of shortcodes for including/excluding content on mobile devices, tablets desktops and other
144+
more specific device parameters. This lightweight plugin lets content writers and theme authors choose when
145+
WordPress should or shouldn’t show any give content item using shortcodes and quicktags or theme elements using functions.
146+
Made by [AddFunc](https://profiles.wordpress.org/addfunc).
147+
148+
* [AddFunc Mobile Detect](https://wordpress.org/plugins/addfunc-mobile-detect/) for WordPress redirects
149+
mobile traffic to your mobile website and, basically, gives you loads of control over your mobile redirects.
150+
Made by [AddFunc](https://profiles.wordpress.org/addfunc).
151+
142152
**Drupal**
143153

144154
* [Drupal Mobile Switch](https://www.drupal.org/project/mobile_switch) - The Mobile Switch Drupal module provides a
@@ -320,3 +330,8 @@ Made by [Frédéric Robinet](https://github.com/robinef).
320330

321331
* [mobile-detect](https://github.com/validide/mobile-detect) is a .Net partial port written in C#.
322332
Made by [Valentin Dide](https://github.com/validide).
333+
334+
**ColdFusion**
335+
336+
* [MobileDetect](https://github.com/GiancarloGomez/ColdFusion-MobileDetect) is a CFC port of the
337+
Mobile_Detect PHP Library. Made by [Giancarlo Gomez](https://github.com/GiancarloGomez).

examples/session_example.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function initLayoutType()
121121

122122
<!-- example page #1 -->
123123
<h1>Demo page number one.</h1>
124-
<p>You can go to page <a href="<?php echo $_SERVER['PHP_SELF']; ?>?page=two">two</a>.</p>
124+
<p>You can go to page <a href="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>?page=two">two</a>.</p>
125125
<p>Showing you the <b><?php echo $layoutType; ?></b> version.</p>
126126
<p><b>Note:</b> When running this test using the same browser with multiple User-Agents, clear your cookies/session before each test.</p>
127127

@@ -131,7 +131,7 @@ function initLayoutType()
131131

132132
<!-- example page #2 -->
133133
<h1>Demo page number two.</h1>
134-
<p>You can go back to page <a href="<?php echo $_SERVER['PHP_SELF']; ?>">one</a>.</p>
134+
<p>You can go back to page <a href="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>">one</a>.</p>
135135
<p>Showing you the <b><?php echo $layoutType; ?></b> version.</p>
136136

137137
<?php endif; ?>
@@ -141,6 +141,6 @@ function initLayoutType()
141141
<?php if($_layoutType == $layoutType): ?>
142142
<?php echo strtoupper($_layoutType); ?>
143143
<?php else: ?>
144-
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?layoutType=<?php echo $_layoutType; ?>"><?php echo strtoupper($_layoutType); ?></a>
144+
<a href="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>?layoutType=<?php echo $_layoutType; ?>"><?php echo strtoupper($_layoutType); ?></a>
145145
<?php endif; ?>
146146
<?php endforeach;

0 commit comments

Comments
 (0)