Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 5 commits
  • 8 files changed
  • 0 comments
  • 1 contributor
29  wp-content/plugins/qtranslate-wp-nav-menu/qtranslate-wp-nav-menu.php
... ...
@@ -0,0 +1,29 @@
  1
+<?php
  2
+/*
  3
+* Plugin Name: qTranslate-wp_nav_menu 
  4
+* Plugin URI: 
  5
+* Description: WP's wp_nav_menu() customization using qTranslate's qtrans_convertURL() function. 
  6
+* Author: Nob Y.
  7
+* Author URI: http://jointanet.com
  8
+* Version: 1.0.0
  9
+* */
  10
+
  11
+/**
  12
+ * qtwnm_custom()
  13
+ *
  14
+ * A filter function, which is hooked on 'wp_nav_menu' filter hook.
  15
+ */
  16
+add_filter('wp_nav_menu', 'qtwnm_custom');
  17
+function qtwnm_custom($nav_menu_html) {
  18
+    $str = '';
  19
+
  20
+    $pattern = "%https?\:\/\/.+\/en\/\"%";
  21
+    $replace = qtrans_convertURL('', 'en') . '"';;
  22
+    $str = preg_replace($pattern, $replace, $nav_menu_html);
  23
+
  24
+    $pattern = "%https?\:\/\/.+\/ja\/\"%";
  25
+    $replace = qtrans_convertURL('', 'ja') . '"';;
  26
+    $str = preg_replace($pattern, $replace, $str);
  27
+
  28
+    return $str;
  29
+}
2  wp-content/themes/scrollider/content-home.php
@@ -46,7 +46,7 @@
46 46
 				<?php
47 47
 					$slide_excerpt = get_the_excerpt();
48 48
 					if ($slide_excerpt != '') {
49  
-						echo '<p>'.woo_text_trim ( $slide_excerpt, 20 ).'</p>';
  49
+						echo '<p>'.woo_text_trim ( $slide_excerpt, 60 ).'</p>';
50 50
 					}
51 51
 				?>
52 52
 			</section>
1  wp-content/themes/scrollider/css/layout.css
@@ -535,7 +535,6 @@ INDEX
535 535
   }
536 536
   .has-slider #featured header h1 {
537 537
     font-size: 2.2em;
538  
-    font-family: "F+UD-筑紫明朝 E"; 
539 538
   }
540 539
   .has-slider #featured .flex-control-nav {
541 540
     display: block;
32  wp-content/themes/scrollider/english.css
... ...
@@ -0,0 +1,32 @@
  1
+/*-------------------------------------------------------------------------------------------*/
  2
+/* Stylesheet for English language */
  3
+/*-------------------------------------------------------------------------------------------*/
  4
+/* 1. Fonts */
  5
+body {
  6
+    font-family: "Open Sans", sans-serif;
  7
+}
  8
+h1,h2,h3,h4,h5,h6 {
  9
+    font-family: "Merriweather", sans-serif;
  10
+}
  11
+#navigation {
  12
+  font-family: "Merriweather", sans-serif;
  13
+}
  14
+.has-slider #featured header h1 {
  15
+    font-family: "Merriweather", sans-serif;
  16
+}
  17
+
  18
+/* 2. Header main navi */
  19
+#menu-item-209,
  20
+#menu-item-113,
  21
+#menu-item-114,
  22
+#menu-item-112,
  23
+#menu-item-98 {
  24
+    display: none;
  25
+}
  26
+#menu-item-214,
  27
+#menu-item-210,
  28
+#menu-item-211,
  29
+#menu-item-212,
  30
+#menu-item-213 {
  31
+    display: list-item;
  32
+}
7  wp-content/themes/scrollider/header.php
@@ -26,7 +26,12 @@
26 26
 <?php woo_meta(); ?>
27 27
 <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" media="screen" />
28 28
 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
29  
-<script type="text/javascript" src="http://webfont.fontplus.jp/accessor/script/fontplus.js?YL8mWMKXSGE%3D" charset="utf-8"></script>
  29
+<?php if (qtrans_getLanguage() == 'en') { // English ver ?>
  30
+    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/english.css">
  31
+<?php } else { ?> 
  32
+    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/japanese.css">
  33
+    <script type="text/javascript" src="http://webfont.fontplus.jp/accessor/script/fontplus.js?YL8mWMKXSGE%3D" charset="utf-8"></script>
  34
+<?php } ?>
30 35
 <?php
31 36
 	wp_head();
32 37
 	woo_head();
4  wp-content/themes/scrollider/includes/home-panel-features.php
@@ -32,7 +32,7 @@
32 32
 			?>
33 33
 
34 34
 			<section id="sub-feature">
35  
-                <h1>SKfineからのご提案</h1>
  35
+                <h1><?php _e('<!--:en-->Offers from SKfine<!--:--><!--:ja-->SKfineからのご提案<!--:-->');?></h1>
36 36
 				<div class="col-full">
37 37
 <!--
38 38
                         <div id="social">
@@ -71,7 +71,7 @@
71 71
 			    				<p>
72 72
 			    					<?php 
73 73
 			    					if ( $feature_excerpt != '' ) { 
74  
-			    						echo stripslashes( $feature_excerpt ); 
  74
+			    						_e(stripslashes( $feature_excerpt )); 
75 75
 			    					} else { 
76 76
 			    						echo strip_tags( get_the_excerpt() ); 
77 77
 			    					} ?>
32  wp-content/themes/scrollider/japanese.css
... ...
@@ -0,0 +1,32 @@
  1
+/*-------------------------------------------------------------------------------------------*/
  2
+/* Stylesheet for Japanese language */
  3
+/*-------------------------------------------------------------------------------------------*/
  4
+/* 1. Fonts */
  5
+body {
  6
+    font-family: "F+UD-ニューロダン M";
  7
+}
  8
+h1,h2,h3,h4,h5,h6 {
  9
+    font-family: "F+UD-ニューロダン M";
  10
+}
  11
+#navigation {
  12
+  font-family: "F+UD-ニューロダン M";
  13
+}
  14
+.has-slider #featured header h1 {
  15
+    font-family: "F+UD-筑紫明朝 E";
  16
+}
  17
+
  18
+/* 2. Header menu */
  19
+#menu-item-209,
  20
+#menu-item-113,
  21
+#menu-item-114,
  22
+#menu-item-112,
  23
+#menu-item-98 {
  24
+    display: list-item;
  25
+}
  26
+#menu-item-214,
  27
+#menu-item-210,
  28
+#menu-item-211,
  29
+#menu-item-212,
  30
+#menu-item-213 {
  31
+    display: none;
  32
+}
12  wp-content/themes/scrollider/style.css
@@ -296,10 +296,6 @@ body {
296 296
   font-size: 1.2em;
297 297
   line-height: 1.618;
298 298
   color: #9e9e9e;
299  
-  /*
300  
-  font-family: "Open Sans", sans-serif;
301  
-  */
302  
-  font-family: "F+UD-ニューロダン M";
303 299
   -webkit-text-size-adjust: 100%;
304 300
   -ms-text-size-adjust: 100%;
305 301
   text-rendering: optimizeLegibility;
@@ -350,10 +346,6 @@ h3,
350 346
 h4,
351 347
 h5,
352 348
 h6 {
353  
-  /*
354  
-  font-family: "Merriweather", sans-serif;
355  
-  */
356  
-  font-family: "F+UD-ニューロダン M";
357 349
   color: #4a4a4a;
358 350
   margin: 0 0 .618em;
359 351
 }
@@ -547,10 +539,6 @@ ul.nav li.li.current-menu-item ul li.li.current-menu-item a {
547 539
   clear: both;
548 540
   margin-bottom: 1em;
549 541
   display: none;
550  
-  /*
551  
-  font-family: "Merriweather", sans-serif;
552  
-  */
553  
-  font-family: "F+UD-ニューロダン M";
554 542
   font-size: 1.1em;
555 543
   font-weight: bold;
556 544
   padding: 0;

No commit comments for this range

Something went wrong with that request. Please try again.