Skip to content

Commit 721a2a9

Browse files
committed
Merge branch 'master' into initial-br-setup
2 parents 84b351a + 6639530 commit 721a2a9

7 files changed

Lines changed: 248 additions & 32 deletions

File tree

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ languages:
3737
path: /fr/
3838
- label: Português (Brasil)
3939
path: /br/
40+
- label: Türkçe
41+
path: /tr/

_includes/footer.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@
4747
}
4848
}
4949
};
50-
51-
document.getElementById('languages').onchange = function(ev) {
52-
if (ev.currentTarget && ev.currentTarget.value) {
53-
location.href = ev.currentTarget.value;
54-
}
55-
};
5650
</script>
5751
</body>
5852
</html>

_includes/languages.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,32 @@
44
<option value="{{ lang.path }}">{{ lang.label }}</option>
55
{% endfor %}
66
</select>
7+
8+
<script type="text/javascript">
9+
( function(){
10+
'use strict';
11+
var langs = document.getElementById( 'languages' );
12+
13+
// Only apply this after we set the Selected option
14+
langs.onchange = function( ev ) {
15+
if ( ev.currentTarget && ev.currentTarget.value ) {
16+
location.href = ev.currentTarget.value;
17+
}
18+
};
19+
20+
if ( '/' === window.location.pathname ) {
21+
return;
22+
}
23+
24+
var opts = langs.getElementsByTagName( 'option' ),
25+
count = opts.length;
26+
27+
for ( var i = 0; i < count; i++ ){
28+
if ( -1 === opts[ i ].value.indexOf( window.location.pathname ) ) {
29+
continue;
30+
}
31+
32+
opts[ i ].setAttribute( 'selected', 'selected' );
33+
}
34+
} )();
35+
</script>

_includes/navigation.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@
1313
<a href="{{ link.url }}">{{ link.text }}</a>
1414
</li>
1515
{% endfor %}
16-
17-
<li class="align-right">
16+
</ul>
17+
</nav>
18+
<nav class="social-nav">
19+
<ul>
20+
<li>
1821
<a href="https://github.com/wp-cli/wp-cli" class="btn-source rounded" target="_blank"><i class="icon-github-circled"></i></a>
1922
</li>
20-
<li class="align-right">
23+
<li>
2124
<a href="https://twitter.com/wpcli" class="btn-twitter rounded" target="_blank"><i class="icon-twitter"></i></a>
2225
</li>
2326
</ul>

assets/css/stylesheet.css

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ img {
254254
/* Clearfix */
255255

256256
.cf:before, .cf:after {
257-
content:"";
258-
display:table;
257+
content: "";
258+
display: table;
259259
}
260260

261261
.cf:after {
@@ -322,21 +322,25 @@ footer {
322322
margin: 20px 10px 40px 10px;
323323
}
324324

325-
.main-nav {
325+
.main-nav,
326+
.social-nav {
326327
position: relative;
327328
}
328-
.main-nav ul {
329+
.main-nav ul,
330+
.social-nav ul {
329331
list-style: none;
330332
}
331-
.main-nav li {
333+
.main-nav li,
334+
.social-nav li {
332335
float: left;
333336
text-align: center;
334337
margin: 0;
335338
}
336339
.main-nav li:first-child a {
337340
padding-left: 0;
338341
}
339-
.main-nav a {
342+
.main-nav a,
343+
.social-nav a {
340344
display: block;
341345
padding: 8px 18px;
342346
color: #7AD03A;
@@ -365,11 +369,11 @@ footer {
365369
}
366370

367371
/* Secondary main-nav */
368-
.main-nav .align-right {
372+
.social-nav li {
369373
float: right;
370374
margin-left: .5em;
371375
}
372-
.main-nav .rounded {
376+
.social-nav .rounded {
373377
padding: 0;
374378
width: 1.8em;
375379
height: 1.8em;
@@ -379,10 +383,24 @@ footer {
379383
background: #585858;
380384
color: #292929;
381385
}
382-
.main-nav .rounded:hover {
386+
.social-nav .rounded:hover {
383387
color: #7AD03A;
384388
}
385389

390+
@media (max-width: 770px) {
391+
.social-nav {
392+
display: table;
393+
margin: 0 auto;
394+
padding-top: 5px;
395+
min-width: 100px;
396+
}
397+
398+
.social-nav li {
399+
float: none;
400+
margin: 0 5px;
401+
}
402+
}
403+
386404
/* Search in header */
387405
.main-nav .search {
388406
border-radius: 3em;
@@ -516,7 +534,7 @@ body.display-global-parameters #main_content {
516534
margin-bottom: 5px;
517535
}
518536

519-
// Adjust visibility per page
537+
/* Adjust visibility per page */
520538
body.command-line-interface-for-wordpress .global-parameters,
521539
body.configuration .global-parameters{
522540
display: none;
@@ -691,36 +709,38 @@ hr:after,
691709
}
692710

693711
/* i18n menu */
694-
.cf .container
695-
{
712+
.cf .container {
696713
position: relative;
697714
}
698715

699-
.cf .container .languages
700-
{
716+
.cf .container .languages {
701717
position: absolute;
702718
top: 0px;
703719
right: 0px;
720+
margin-right: 20px;
704721
}
705722

723+
706724
@media screen and (-webkit-min-device-pixel-ratio:0) {
707725
header h2,
708726
.main-nav a {
709727
font-weight: 400;
710728
}
711729
}
712730

713-
@media (max-width: 800px) {
731+
@media (max-width: 970px) {
714732
header h1 {
715733
margin-left: 0;
716734
}
717-
718-
.main-nav .align-right {
719-
float: none;
720-
}
721735
}
736+
722737
@media (max-width: 690px) {
723738
.main-nav li a {
724739
padding-left: 0;
725740
}
741+
742+
.main-nav li:nth-child(6) a {
743+
padding-left: 9px;
744+
padding-right: 9px;
745+
}
726746
}

ja/index.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ WP-CLI のメンテナーとプロジェクトの貢献者たちは、新しい
105105
- [Open or closed issues on Github](https://github.com/wp-cli/wp-cli/issues?utf8=%E2%9C%93&q=is%3Aissue)
106106
- [WordPress StackExchange forums](http://wordpress.stackexchange.com/questions/tagged/wp-cli)
107107

108+
もしこれらのリソースから回答を見つけられなかった場合、ご自由にあなたの質問を[Issueを書いてください](https://github.com/wp-cli/wp-cli/issues/new)
109+
108110
もしあなたが WordPress.org のアカウントを持っているなら、[WordPress.org Slack organization](https://make.wordpress.org/chat/)`#cli`チャンネルに参加することもできます。
109111

110-
## Extending
112+
## 拡張
111113

112114
それぞれの **コマンド** は、WP-CLI の関数の一つとして定義されています。`wp plugin install` ([doc](https://wp-cli.org/commands/plugin/install/)) はそのうちのひとつであり、`wp plugin activate` ([doc](https://wp-cli.org/commands/plugin/activate/)) は別のもうひとつです。
113115

@@ -117,11 +119,21 @@ WP-CLI は、多くのコマンドにより構成されており、カスタム
117119

118120
開発に参加するには、まずはじめに [creating an issue](https://wp-cli.org/docs/bug-reports/) or [submitting a pull request](https://wp-cli.org/docs/pull-requests/) を読んでください。
119121

122+
ようこそ、そしてありがとう!
123+
124+
私たちは、みなさんが率先して貢献してくれることに感謝しています。あなたやあなたのまわりのコミュニティによって、WP-CLIはすばらしいプロジェクトになります。
125+
126+
**貢献は単にコードだけではありません。** 私たちは、チュートリアルを書く、地元のミートアップでデモを行う、ユーザーの質問への回答、ドキュメントの改訂など、あなたの日々の活動に応じた貢献をお願いしています。
127+
128+
すこしだけ時間を使って[ガイドラインをよく読んでください](https://wp-cli.org/docs/contributing/)。ここに書かれていることに従うことで、本プロジェクトの他の貢献者たちとのコミュニケーションを円滑にすることができます。彼らは、世界をまたがってあなたと一緒に働くことに、最大限の敬意を払う努力をします。
129+
120130
### プロジェクトリーダー
121131

122-
* [Daniel Bachhuber](https://github.com/danielbachhuber/) - current maintainer
123-
* [Cristi Burcă](https://github.com/scribu) - previous maintainer
124-
* [Andreas Creten](https://github.com/andreascreten) - founder
132+
WP-CLIは以下の個人によってリードされています。
133+
134+
* [Daniel Bachhuber](https://github.com/danielbachhuber/) - 現在のメンテナー
135+
* [Cristi Burcă](https://github.com/scribu) - 前メンテナー
136+
* [Andreas Creten](https://github.com/andreascreten) - 創始者
125137

126138
プロジェクトの[ガバナンス](https://wp-cli.org/docs/governance/)[完全な貢献者リスト](https://github.com/wp-cli/wp-cli/contributors)も読んでください。
127139

0 commit comments

Comments
 (0)