質問編集履歴
1
ソースの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,11 +12,11 @@
|
|
12
12
|
|
13
13
|
//置換前
|
14
14
|
|
15
|
-
<
|
15
|
+
<a href="xxxxxx/pagenation/1/">1</a>
|
16
16
|
|
17
|
-
<
|
17
|
+
<a href="xxxxxx/pagenation/2/">2</a>
|
18
18
|
|
19
|
-
<
|
19
|
+
<a href="xxxxxx/pagenation/3/">3</a>
|
20
20
|
|
21
21
|
・・・
|
22
22
|
|
@@ -24,11 +24,11 @@
|
|
24
24
|
|
25
25
|
//置換後
|
26
26
|
|
27
|
-
<
|
27
|
+
<a href="xxxxxx/pagenation/1/"><span>1</span></a>
|
28
28
|
|
29
|
-
<
|
29
|
+
<a href="xxxxxx/pagenation/2/"><span>2</span></a>
|
30
30
|
|
31
|
-
<
|
31
|
+
<a href="xxxxxx/pagenation/3/"><span>3</span></a>
|
32
32
|
|
33
33
|
・・・
|
34
34
|
|
@@ -44,15 +44,15 @@
|
|
44
44
|
|
45
45
|
$render = '';
|
46
46
|
|
47
|
-
$render = str_replace('/pagenation/'.'1'.'/">', '/pagenation/'.'1'.'/"><a>', $render);
|
47
|
+
$render = str_replace('/pagenation/'.'1'.'/">', '/pagenation/'.'1'.'/"><span>', $render);
|
48
48
|
|
49
|
-
$render = str_replace('/pagenation/'.'2'.'/">', '/pagenation/'.'2'.'/"><a>', $render);
|
49
|
+
$render = str_replace('/pagenation/'.'2'.'/">', '/pagenation/'.'2'.'/"><span>', $render);
|
50
50
|
|
51
|
-
$render = str_replace('/pagenation/'.'3'.'/">', '/pagenation/'.'3'.'/"><a>', $render);
|
51
|
+
$render = str_replace('/pagenation/'.'3'.'/">', '/pagenation/'.'3'.'/"><span>', $render);
|
52
52
|
|
53
|
-
$render = str_replace('/pagenation/'.'4'.'/">', '/pagenation/'.'4'.'/"><a>', $render);
|
53
|
+
$render = str_replace('/pagenation/'.'4'.'/">', '/pagenation/'.'4'.'/"><span>', $render);
|
54
54
|
|
55
|
-
$render = str_replace('/pagenation/'.'5'.'/">', '/pagenation/'.'5'.'/"><a>', $render);
|
55
|
+
$render = str_replace('/pagenation/'.'5'.'/">', '/pagenation/'.'5'.'/"><span>', $render);
|
56
56
|
|
57
57
|
return $render;
|
58
58
|
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
$render = '';
|
78
78
|
|
79
|
-
$render = preg_replace('/pagenation/'.'/\d/'.'/">', '/pagenation/'.'/\d/'.'/"><a>', $render);
|
79
|
+
$render = preg_replace('/pagenation/'.'/\d/'.'/">', '/pagenation/'.'/\d/'.'/"><span>', $render);
|
80
80
|
|
81
81
|
return $render;
|
82
82
|
|