Exemplo n.º 1
0
Arquivo: 404.php Projeto: rcorazza/ith
        ?>
 
      </article>
      <?php 
    }
} else {
    ?>
      <p><?php 
    _e('Sorry, there\'s nothing here. Go back <a href="/">home</a>.');
    ?>
</p>
      <?php 
}
?>
      <?php 
if (is_mobile() || is_tablet()) {
    dynamic_sidebar('forum teaser');
    dynamic_sidebar('latest');
}
?>
      <div class="post comments">
         <?php 
comments_template('');
?>
         <?php 
dynamic_sidebar('double ad');
?>
      </div>
   </div>
   <?php 
get_sidebar();
Exemplo n.º 2
0
    </div> <?php 
// page-container close
?>

    <script type="text/javascript">
      var IS_MOBILE = "<?php 
echo is_mobile();
?>
";
      var IS_TABLET = "<?php 
echo is_tablet();
?>
";
      var SITE_URL = ('https:' == document.location.protocol ? 'https://' : 'http://') + document.location.host;
    </script>

    <?php 
wp_footer();
?>
    <?php 
include THEMEPATH . 'includes/partials/_tracking.php';
?>
  </body>
</html>
Exemplo n.º 3
0
	</style>
	<?php endif; ?>
	<?php endif; ?>

	<?php if(wp_is_mobile() && $data['mobile_slidingbar_widgets']): ?>
	<style type="text/css">
	#slidingbar-area{display:none !important;}
	</style>
	<?php endif; ?>
	<?php if(wp_is_mobile() && !$data['header_sticky_mobile'] && !is_tablet($_SERVER['HTTP_USER_AGENT'])): ?>
	<style type="text/css">
	body #header.sticky-header,body #header.sticky-header.sticky{display:none !important;}
	</style>
	<?php endif; ?>

	<?php if(wp_is_mobile() && !is_tablet($_SERVER['HTTP_USER_AGENT'])): ?>
	<style type="text/css">
	.header-v5 #header .logo { float: none !important; }
	</style>
	<?php endif; ?>

	<?php if($data['favicon']): ?>
	<link rel="shortcut icon" href="<?php echo $data['favicon']; ?>" type="image/x-icon" />
	<?php endif; ?>

	<?php if($data['iphone_icon']): ?>
	<!-- For iPhone -->
	<link rel="apple-touch-icon-precomposed" href="<?php echo $data['iphone_icon']; ?>">
	<?php endif; ?>

	<?php if($data['iphone_icon_retina']): ?>
Exemplo n.º 4
0
function mobble_body_class($classes)
{
    global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $mobble_detect;
    // top level
    if (is_handheld()) {
        $classes[] = "handheld";
    }
    if (is_mobile()) {
        $classes[] = "mobile";
    }
    if (is_ios()) {
        $classes[] = "ios";
    }
    if (is_tablet()) {
        $classes[] = "tablet";
    }
    // specific
    if (is_iphone()) {
        $classes[] = "iphone";
    }
    if (is_ipad()) {
        $classes[] = "ipad";
    }
    if (is_ipod()) {
        $classes[] = "ipod";
    }
    if (is_android()) {
        $classes[] = "android";
    }
    if (is_blackberry()) {
        $classes[] = "blackberry";
    }
    if (is_opera_mobile()) {
        $classes[] = "opera-mobile";
    }
    if (is_webos()) {
        $classes[] = "webos";
    }
    if (is_symbian()) {
        $classes[] = "symbian";
    }
    if (is_windows_mobile()) {
        $classes[] = "windows-mobile";
    }
    //if (is_lg()) { $classes[] = "lg"; }
    if (is_motorola()) {
        $classes[] = "motorola";
    }
    //if (is_smartphone()) { $classes[] = "smartphone"; }
    //if (is_nokia()) { $classes[] = "nokia"; }
    if (is_samsung()) {
        $classes[] = "samsung";
    }
    if (is_samsung_tablet()) {
        $classes[] = "samsung-tablet";
    }
    if (is_sony_ericsson()) {
        $classes[] = "sony-ericsson";
    }
    if (is_nintendo()) {
        $classes[] = "nintendo";
    }
    // bonus
    if (!is_handheld()) {
        $classes[] = "desktop";
    }
    if ($is_lynx) {
        $classes[] = "lynx";
    }
    if ($is_gecko) {
        $classes[] = "gecko";
    }
    if ($mobble_detect->is('Gecko')) {
        $classes[] = "gecko";
    }
    if ($is_opera) {
        $classes[] = "opera";
    }
    if ($mobble_detect->is('Opera')) {
        $classes[] = "opera";
    }
    if ($is_NS4) {
        $classes[] = "ns4";
    }
    if ($is_safari) {
        $classes[] = "safari";
    }
    if ($mobble_detect->is('Safari')) {
        $classes[] = "safari";
    }
    if ($is_chrome) {
        $classes[] = "chrome";
    }
    if ($mobble_detect->is('Chrome')) {
        $classes[] = "chrome";
    }
    if ($is_IE) {
        $classes[] = "ie";
    }
    if ($mobble_detect->is('IE')) {
        $classes[] = "ie";
    }
    return $classes;
}
Exemplo n.º 5
0
function custom_body_class($classes)
{
    global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome;
    // Top level
    if (is_handheld()) {
        $classes[] = "handheld";
    }
    if (is_mobile()) {
        $classes[] = "mobile";
    }
    if (is_ios()) {
        $classes[] = "ios";
    }
    if (is_tablet()) {
        $classes[] = "tablet";
    }
    // Specific
    if (is_iphone()) {
        $classes[] = "iphone";
    }
    if (is_ipad()) {
        $classes[] = "ipad";
    }
    if (is_ipod()) {
        $classes[] = "ipod";
    }
    if (is_android()) {
        $classes[] = "android";
    }
    if (is_blackberry()) {
        $classes[] = "blackberry";
    }
    if (is_opera_mobile()) {
        $classes[] = "opera-mobile";
    }
    if (is_palm()) {
        $classes[] = "palm";
    }
    if (is_symbian()) {
        $classes[] = "symbian";
    }
    if (is_windows_mobile()) {
        $classes[] = "windows-mobile";
    }
    if (is_lg()) {
        $classes[] = "lg";
    }
    if (is_motorola()) {
        $classes[] = "motorola";
    }
    if (is_nokia()) {
        $classes[] = "nokia";
    }
    if (is_samsung()) {
        $classes[] = "samsung";
    }
    if (is_samsung_galaxy_tab()) {
        $classes[] = "samsung-galaxy-tab";
    }
    if (is_sony_ericsson()) {
        $classes[] = "sony-ericsson";
    }
    if (is_nintendo()) {
        $classes[] = "nintendo";
    }
    // Computer browser
    if (!is_handheld()) {
        $classes[] = "desktop";
    }
    if ($is_lynx) {
        $classes[] = "lynx";
    }
    if ($is_gecko) {
        $classes[] = "gecko";
    }
    if ($is_opera) {
        $classes[] = "opera";
    }
    if ($is_NS4) {
        $classes[] = "ns4";
    }
    if ($is_safari) {
        $classes[] = "safari";
    }
    if ($is_chrome) {
        $classes[] = "chrome";
    }
    if ($is_IE) {
        $classes[] = "ie";
    }
    // IE Version check
    $ie_check = array();
    $ie_classes = array('ie7', 'ie8', 'ie9', 'ie10');
    $version = 7;
    while ($version < 11) {
        $ie_check[] = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE ' . $version . '.') !== FALSE;
        ++$version;
    }
    $ie = '';
    foreach ($ie_check as $key => $value) {
        if ($value == 1) {
            $ie = $ie_classes[$key] . ' oldie';
        }
    }
    $classes[] = $ie;
    // Check user logged in?
    if (!is_user_logged_in()) {
        $classes[] = 'not-login';
    }
    return $classes;
}
Exemplo n.º 6
0
if (is_page('') && !is_mobile() && !is_tablet() && !is_page_template('schedule.php') && !is_page_template('player.php') && !is_page_template('recruit.php') && !is_page_template('schedule.php') && !is_page_template('roster.php')) {
    dynamic_sidebar('forum teaser');
}
if (is_404() && !is_mobile() && !is_tablet()) {
    dynamic_sidebar('forum teaser');
} else {
}
?>
        <?php 
if (!is_home('') && !is_mobile() && !is_tablet()) {
    dynamic_sidebar('latest');
}
?>
	
            <?php 
if (!is_mobile() && !is_tablet() && is_home()) {
    echo '<div class="rpwe-block new" style="clear: both;"><ul><div id="nativoRR"></div></ul></div>';
}
?>
	
        <div id="bottom-ad">
        </div>
        <div id="adsense">
            <a href="http://www.foxsports.com" target="_blank"><img style="max-width: 100%;" src="http://www.insidethehall.com/wp-content/uploads/2015/07/badge_300.png"></a>
        </div>
        <div id="left-sidebar-ad">
        </div>
        <div id="right-sidebar-ad">
        </div>
    </div>
</aside>
<!***********ALL PAGES**************>  
<script async>
	var $x = jQuery.noConflict();
		$x('#quicklinks ul.flyout li a').on('click', function() {
  			ga('send', 'event', 'Quicklinks', 'Flyout Menu', 'Flagship Academic');
		});
</script>

<!**********TABLET/MOBILE MENUS**************>  
<?php 
if (is_tablet()) {
    ?>
		<script defer>
			jQuery(document).ready(function () {
			    jQuery('#main_nav').meanmenu({meanScreenWidth: "767"});
			});
		</script>
<?php 
} else {
    ?>
	<script defer>
		jQuery(document).ready(function () {
		    jQuery('#main_nav').meanmenu();
		});
	</script>
<?php 
}
?>

<!***********DIRECTORY**************>
<?php 
Exemplo n.º 8
0
/**
 * Conditional to test for desktop devices.
 *
 * @return bool
 */
function is_desktop()
{
    global $browser_info;
    // later than 3.1.1 version
    if (!is_tablet() && !is_mobile()) {
        return TRUE;
    }
    // pre 3.1 version
    if (isset($browser_info['Device_Type']) && strpos($browser_info['Device_Type'], "Desktop") !== FALSE) {
        return TRUE;
    }
    return FALSE;
}
      </div>
      <div class="right-triangle blue"> </div>
    </div><?php 
        } elseif (!is_mobile()) {
            ?>
    <div class="chooseFromContainer">
      <div class="chooseFrom">
        <div class="right-triangle white"></div>
        <div id="chooseFromText" class="chooseFromText"><strong> <span style="text-align:center">Select a reason to quit to get started.</span></strong></div>
      </div>
      <div class="right-triangle blue"></div>
    </div><?php 
        }
        ?>
    <h3 class="<?php 
        if (is_ipad() or is_tablet()) {
            echo 'M';
        }
        ?>
"><strong> You're not alone. </strong> Vermonters share their stories, tips and tools with you. Their experiences can help you quit. </h3><?php 
        if (is_mobile()) {
            //or is_ipad() or is_tablet()
            ?>
    <div class="mobileArrow"><strong>Select a reason to quit <br> to get started.  </strong></div><?php 
        }
        ?>
  </div>
  <div class="parent col-lg-6 col-md-6 col-sm-6 col-xs-12"><?php 
        get_template_part('assets/php/templates/stories', 'nav');
        ?>
  </div>
function gm($att, $content = null){
	global $apiKey, $apiSec, $apiTok, $apiTokSec,  $username , $userID, $hash, $json, $cords, $styles, $mapmarker, $c1, $c2, $options;
	require_once "twitter/index.php";

	try{
    checkStream($json);

    if($hash == ""){
			
			if(isset($json[0]->entities->media[0]->media_url)){
				$image = '<img src="'.$json[0]->entities->media[0]->media_url.'">';
			}
		  $tweetcontent = linkHash($json[0]->text);
    }
		else{
			$e = $json[0]->entities->hashtags;
			if(isset($e[0]->text ) and $e[0]->text == $hash){
				
				if(isset($json[0]->entities->media[0]->media_url)){;
					$image = '<img src="'.$json[0]->entities->media[0]->media_url.'">';
				}
				$cords = getCords($json[0]->place->bounding_box->coordinates[0]);
				$tweetcontent = linkHash($json[0]->text);
        $t = $json[0]->created_at;
    		}
			else{
				foreach ($json as $fdtruck) {
					$foundhash = strpos($fdtruck->text, $hash);
					if( ($foundhash) ) {
						$cords = getCords($fdtruck->place->bounding_box->coordinates[0]);

						$tweetcontent = linkHash($fdtruck->text);
							
						if(isset($fdtruck->entities->media[0]->media_url)){
							$url = "http://twitter.com/".$username."/status/".$fdtruck->id_str;
							$image = '<img src="'.$fdtruck->entities->media[0]->media_url.'">';
						}
             $t = $fdtruck->created_at;	
						break;		
					}
				}
			}
		}
		
   
    
   if((isset($cords) ) or (is_array($cords) ) or ($cords[0] != "") ){

      if(checkTime($t)){
        $c1 = $options['rLAT'];
        $c2 = $options['rLONG'];
        $mapmarker = $options['rMark'];
     $tcontent = "";
      }
      else{
        $c1 = $cords[1];
        $c2 = $cords[0];
        $mapmarker = $options["mapmarker"];
        $tcontent = '<div id="tweetBubble"><div class="content">'.$tweetcontent.'</div><div class="image"><div class="container"><a href="'.$url.'" target="_blank">'.$image.'</a></div></div></div>';
       
      }
    }
    else{
      $c1 = $options['rLAT'];
      $c2 = $options['rLONG'];
      $mapmarker = $options['rMark'];
        $tcontent = "";
    }
    
?>

		<script type="text/javascript">
    	var hashtag = "<?php echo $hash; ?>";

  		var styles = <?php echo $styles; ?>;
  		var styledMap = new google.maps.StyledMapType(styles, 
        {name: "Styled Map"});

	  	var zoom = 15;
    	var infoContent = '<?php echo $tcontent; ?>';
    	var map;
    	var tLocation = new google.maps.LatLng(<?php echo $c1; ?>, <?php echo $c2; ?>)
  

			function CoordMapType(tileSize) {
  			this.tileSize = tileSize;
			}

			CoordMapType.prototype.getTile = function(coord, zoom, ownerDocument) {
  			var div = ownerDocument.createElement('div');
  
  			div.style.width = this.tileSize.width + 'px';
  			div.style.height = this.tileSize.height + 'px';
  			div.style.fontSize = '1';
  			
  			return div;
			};
			function initialize() {
  			var mapOptions = {
    			zoom : zoom,
          scrollwheel: false,
          draggable : <?php if(is_mobile() or is_tablet()) echo 'false';
                            else echo 'true'; ?>,
    			center : tLocation
  			};
  		
      	map = new google.maps.Map(document.getElementById('myMap'), mapOptions);
      	var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';
      	var marker = new google.maps.Marker({
        	position: tLocation,
        	map: map,
        	title: 'Twitter',
        	icon:  '<?php echo $mapmarker; ?>'
      	});

      		var infowindow = new google.maps.InfoWindow({
        		content: infoContent
      		});

      		marker.setMap(map);

      	// Insert this overlay map type as the first overlay map type at
      	// position 0. Note that all overlay map types appear on top of
      	// their parent base map.
  			map.overlayMapTypes.insertAt(
      			0, new CoordMapType(new google.maps.Size(256, 256))
      		);

      		google.maps.event.addListener(marker, 'click', function() {
        		infowindow.open(map,marker);
      		});

      		map.mapTypes.set('map_style', styledMap);
        		map.setMapTypeId('map_style');
			}

			google.maps.event.addDomListener(window, 'load', initialize);

		</script>

<?
		$output = "";

		$output .= '<div class="spinner"><div id="myMap" class="gmap custom-row row-style-yes row-parallax-bg parallax-bg-done" style="height:500px; width:100%"></div></div>';

		return $output;
	}
	catch(Exception $e){
		return "Opps Looks like Twitter is having issues.<br> " .$e->getMessage();
	}
}
Exemplo n.º 11
0
            </article>
            <?php 
    }
} else {
    ?>
            <p><?php 
    _e('Sorry, no posts matched your criteria.');
    ?>
</p>
            <?php 
}
?>
            <div class="bottom">
                <div id="nativobelow"></div>
                <?php 
if (is_mobile() || is_tablet() && !is_page_template('player.php') && !is_page_template('recruit.php') && !is_page_template('roster.php') && !is_page_template('schedule.php')) {
    dynamic_sidebar('forum teaser');
    dynamic_sidebar('latest');
} else {
}
?>
            </div>
            <div class="post comments">
                <?php 
comments_template('');
?>
				<div class="OUTBRAIN" data-src="" data-widget-id="TF_1" data-ob-template="InsideTheHall"></div>
				<script type="text/javascript" async="async" src="http://widgets.outbrain.com/outbrain.js"></script> 
            </div>
            <?php 
dynamic_sidebar('double ad');
Exemplo n.º 12
0
 * @author      BizLogic <*****@*****.**>
 * @copyright   2012 - 2013 BizLogic
 * @link        http://whitelabeltransfer.com
 *
 * @since       Saturday, April 23, 2011 / 02:00 PM GMT+1
 * @version     $Id: constants.php 50 2013-10-10 00:10:30Z dev@whitelabeltransfer.com $
 * @edited      $Date: 2013-10-10 02:10:30 +0200 (Do, 10 Okt 2013) $
 *
 * @package     White Label Transfer
 */
define('BASE_DIR', dirname(dirname(dirname(__FILE__))));
define('BASEDIR', BASE_DIR);
define('BASE_URL', fetchServerURL());
define('BASEURL', BASE_URL);
$protocolRelativeUrl = str_replace('http://', '//', BASEURL);
$protocolRelativeUrl = str_replace('https://', '//', $protocolRelativeUrl);
define('PROTOCOL_RELATIVE_URL', $protocolRelativeUrl);
define('ADMIN_URL', BASEURL . '/admin');
define('IMG_URL', BASEURL . '/img');
define('IMGURL', IMG_URL);
define('ROOT_DIR', BASEDIR);
define('LOG_DIR', ROOT_DIR . '/data/logs');
define('TMP_DIR', ROOT_DIR . '/data/temp');
define('APP_DIR', ROOT_DIR . '/application');
define('MODULES_DIR', APP_DIR . '/modules');
define('VIEWS_DIR', MODULES_DIR . '/public/views/scripts');
define('PARTIAL_TEMPLATE_DIR', APP_DIR . '/modules/public/views/templates/shared/partials');
define('SHARED_TEMPLATE_DIR', APP_DIR . '/modules/public/views/templates/shared/scripts');
define('IS_MOBILE', is_mobile());
define('IS_TABLET', is_tablet());
define('ENABLE_FIREPHP', true);