質問編集履歴
3
ソースコードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,13 +14,13 @@
|
|
14
14
|
|
15
15
|
```ここに言語を入力
|
16
16
|
|
17
|
-
<?php
|
17
|
+
<?php if(is_page(‘blog’)): ?>
|
18
18
|
|
19
|
-
<h2><?php echo longTextCutter(70, get_the_title()); ?></h2>
|
19
|
+
<h2 class="tl"><?php echo longTextCutter(70, get_the_title()); ?></h2>
|
20
20
|
|
21
21
|
<?php else: ?>
|
22
22
|
|
23
|
-
<h4><?php echo longTextCutter(70, get_the_title()); ?></h4>
|
23
|
+
<h4 class="tl"><?php echo longTextCutter(70, get_the_title()); ?></h4>
|
24
24
|
|
25
25
|
<?php endif; ?>
|
26
26
|
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
</p>
|
78
78
|
|
79
|
-
<?php
|
79
|
+
<?php if(is_page(‘blog’)): ?>
|
80
80
|
|
81
81
|
<h2 class="tl"><?php echo longTextCutter(70, get_the_title()); ?></h2>
|
82
82
|
|
2
文言の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
以下がエラー内容です
|
31
|
+
■以下がエラー内容です
|
32
32
|
|
33
33
|
```ここに言語を入力
|
34
34
|
|
@@ -48,4 +48,54 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
+
■こちらが問題部分のソースコード前後になります。
|
52
|
+
|
53
|
+
```ここに言語を入力
|
54
|
+
|
55
|
+
<?php
|
56
|
+
|
57
|
+
global $img;
|
58
|
+
|
59
|
+
global $category;
|
60
|
+
|
61
|
+
global $index;
|
62
|
+
|
63
|
+
$class = ($index ? 'w25s' : 'w45');
|
64
|
+
|
65
|
+
?>
|
66
|
+
|
67
|
+
<li class="col f_box <?php echo $class; ?>">
|
68
|
+
|
69
|
+
<a href="<?php the_permalink(); ?>">
|
70
|
+
|
71
|
+
<div class="imgBlogBox f_box f_center blog <?php echo $index; ?>"><p class="zoom trans"><?php echo $img; ?></p></div>
|
72
|
+
|
73
|
+
<p class="f_box f_center">
|
74
|
+
|
75
|
+
<time class="date gf"><?php echo the_time("Y.m.d"); ?></time> <span class="category"><?php echo $category; ?></span>
|
76
|
+
|
77
|
+
</p>
|
78
|
+
|
79
|
+
<?php if($str == 'blog'): ?>
|
80
|
+
|
81
|
+
<h2 class="tl"><?php echo longTextCutter(70, get_the_title()); ?></h2>
|
82
|
+
|
83
|
+
<?php else: ?>
|
84
|
+
|
85
|
+
<h4 class="tl"><?php echo longTextCutter(70, get_the_title()); ?></h4>
|
86
|
+
|
87
|
+
<?php endif; ?>
|
88
|
+
|
89
|
+
</a>
|
90
|
+
|
91
|
+
</li>
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
51
101
|
皆様のご教示のほどお願いいたします。
|
1
シンタックスエラーの内容追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,4 +28,24 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
+
以下がエラー内容です
|
32
|
+
|
33
|
+
```ここに言語を入力
|
34
|
+
|
35
|
+
Parse error
|
36
|
+
|
37
|
+
: syntax error, unexpected ':' in
|
38
|
+
|
39
|
+
/home/sgdev2/dev.xbiz.jp/public_html/test/wp-content/themes/test-thme/parts-blog.php
|
40
|
+
|
41
|
+
on line
|
42
|
+
|
43
|
+
13
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
31
51
|
皆様のご教示のほどお願いいたします。
|