Exemple #1
0
        echo is_chrome();
        echo '</pre>';
        echo '<pre>is_opera() = ';
        echo is_opera();
        echo '</pre>';
        echo '<pre>is_ie() = ';
        echo is_ie();
        echo '</pre>';
        ?>
						</div>

						<div style="padding:5px; margin:10px 0; border-radius:5px; background:#E6E6E6">
							<p>Test for mobile/iphone/ipad:</p>
							<?php 
        echo '<pre>is_desktop() = ';
        echo is_desktop();
        echo '</pre>';
        echo '<pre>is_tablet() = ';
        echo is_tablet();
        echo '</pre>';
        echo '<pre>is_mobile() = ';
        echo is_mobile();
        echo '</pre>';
        echo '<pre>is_ipad() = ';
        echo is_ipad();
        echo '</pre>';
        echo '<pre>is_ipod() = ';
        echo is_ipod();
        echo '</pre>';
        echo '<pre>is_iphone() = ';
        echo is_iphone();
Exemple #2
0
<?php

/**
 * Template Name: Frontpage
 * The template used for displaying page content in page.php
 */
get_header();
?>

<!-- BEGIN SHOWCASE -->
<div class="intro">
  <?php 
if (is_desktop()) {
    putRevSlider('showcase');
}
?>
   <?php 
if (is_mobile()) {
    putRevSlider('mobile');
}
?>
</div>
<!-- END SHOWCASE -->

<!-- BEGIN VANTAGENS -->
<div id="solu" class="pre-section-solucoes">
  <div class="container">
    <div class="row">
      <div class="col-md-12 text-center">
        <div class="intro-section">
          <h3 class="intro-title"><?php