function thematic_access()
{
    global $my_shortname;
    $searchasli = stripslashes(get_option($my_shortname . '_searchasli'));
    // remove the fugly div; this has gone f00king bananas; it is supposed to add search to navigation li item. once upon at time it did work but has gone nuts
    // have a way to add search to access as li (todo)
    $findPatterns = array();
    $replacePatterns = array();
    $findPatterns[] = '#^\\<(div)([^>]*)\\>#';
    $findPatterns[] = '#\\<([/]*)(div)\\>$#';
    $replacePatterns[] = '';
    $replacePatterns[] = '';
    if ($searchasli == 'true') {
        $findPatterns[] = '#(\\<\\/ul\\>$)#';
        $replacePatterns[] = '<li class="search">' . thematic_search_form(false) . '</li></ul>';
    }
    $access = preg_replace($findPatterns, $replacePatterns, trim(wp_nav_menu(array('primary-menu', 'container_class' => '', 'menu_class' => '', 'echo' => false))), 1);
    ?>
	<nav id="access" role="navigation">
		<a href="#content" class="skip-link" title="<?php 
    _e('Skip navigation to the content', 'thematic');
    ?>
"><?php 
    _e('Skip to content', 'thematic');
    ?>
</a> 
		<?php 
    if (function_exists('wpmp_switcher_link')) {
        echo str_replace('<a ', '<a class="switch-mobile"', wpmp_switcher_link('mobile', 'mobile'));
    }
    echo $access;
    ?>
	</nav><!-- #access -->
<?php 
}
Esempio n. 2
0
function wpmp_switcher_wp_footer($force = false)
{
    if (!$force && (get_option('wpmp_switcher_mode') == 'none' || get_option('wpmp_switcher_footer_links') != 'true')) {
        return;
    }
    switch (wpmp_switcher_outcome()) {
        case WPMP_SWITCHER_MOBILE_PAGE:
            print "<p>" . wpmp_switcher_link('desktop', __('Switch to our desktop site', 'wpmp')) . "</p>";
            break;
        case WPMP_SWITCHER_DESKTOP_PAGE:
            print "<p>" . wpmp_switcher_link('mobile', __('Switch to our mobile site', 'wpmp')) . "</p>";
            break;
    }
}
Esempio n. 3
0
_e("Select site", 'wpmp');
?>
</title>
    <link rel="stylesheet" href="<?php 
bloginfo('stylesheet_url');
?>
" type="text/css" media="screen" />
    <?php 
wp_head();
?>
  </head>
  <body>
    <h2><?php 
_e("Select site", 'wpmp');
?>
</h2>
    <p><?php 
_e("You've requested the mobile site, but you appear to have a desktop browser.", 'wpmp');
?>
</p>
    <p><?php 
print wpmp_switcher_link('desktop', __("Revert to the desktop site", 'wpmp'));
?>
</p>
    <p><?php 
print wpmp_switcher_link('mobile', __("Continue to our mobile site", 'wpmp'));
?>
</p>
  </body>
</html>
Esempio n. 4
0
<footer class="globalFooter">
<dl class="viewSwitch">
<dt>表示方法</dt>
<dd><span>モバイル</span><?php 
print wpmp_switcher_link('desktop', 'PC');
?>
</dd>
</dl>

<ul class="siteNav">
<li><a href="/terms">利用規約</a></li>
<li><a href="/privacy">プライバシーポリシー</a></li>
<li><a href="/sitemap">サイトマップ</a></li>
<li><a href="/company">運営会社</a></li>
</ul>

<div class="copyright"><small>Copyright &copy; Cosumehouse All Rights Reserved.</small></div>
</footer>

<?php 
if (is_home()) {
    ?>
	<script src="<?php 
    echo get_template_directory_uri();
    ?>
/js/owl.carousel.min.js"></script>
	<script>
	jQuery(document).ready(function($){
		//top carousel *plugin*
		$('.mainBox').owlCarousel({
Esempio n. 5
0
(the "License"); you may not use this file except in compliance with the
License.

You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
*/
include_once 'mobile.php';
wpmp_ms_mobile_top(__("Select site", 'wpmp'));
?>

<p><?php 
_e("You've requested the desktop site, but you appear to have a mobile browser.", 'wpmp');
?>
</p>
<p><?php 
print wpmp_switcher_link('mobile', __("Revert to the mobile site", 'wpmp'));
?>
</p>
<p><?php 
print wpmp_switcher_link('desktop', __("Continue to our desktop site", 'wpmp'));
?>
</p>

<?php 
wpmp_ms_mobile_bottom();
Esempio n. 6
0
	}(document, 'script', 'facebook-jssdk'));</script>
	<?php 
if (wpmp_switcher_is_mobile_browser()) {
    ?>
		<style type="text/css">
		body{
		    margin-top: 200px;
		    background: #fff url(<?php 
    echo get_template_directory_uri();
    ?>
/img/common/bg_body.png) repeat-x center 160px;
		}
		</style>

		<p class="link_sp"><?php 
    echo wpmp_switcher_link('mobile', 'スマートフォンサイトはこちら');
    ?>
</p>
	<?php 
}
?>
	
	<header class="globalHeader">
	<div class="headLine clearfix">
	<h1><?php 
bloginfo('description');
?>
</h1>
	
	<!--//.searchFormArea-->
	</div>