質問編集履歴

3

修正

2018/01/17 05:31

投稿

323232
323232

スコア11

test CHANGED
File without changes
test CHANGED
File without changes

2

フッターのPHP

2018/01/17 05:31

投稿

323232
323232

スコア11

test CHANGED
File without changes
test CHANGED
@@ -47,3 +47,367 @@
47
47
 
48
48
 
49
49
  よろしくお願いいたします。
50
+
51
+
52
+
53
+ ```
54
+
55
+ <footer id="footer">
56
+
57
+ <div class="footer-01">
58
+
59
+ <div class="wrap">
60
+
61
+
62
+
63
+ <div id="footer-brand-area" class="row">
64
+
65
+ <div class="footer-logo gr6">
66
+
67
+ <?php
68
+
69
+ $logo_image = get_option('footer-logo');
70
+
71
+ if( isset($logo_image) && $logo_image !== '' ){
72
+
73
+ ?>
74
+
75
+ <img src="<?php echo get_option('footer-logo');?>" alt="<?php echo get_bloginfo('name'); ?>" />
76
+
77
+ <?php
78
+
79
+ }else{
80
+
81
+ echo get_bloginfo('name');
82
+
83
+ }
84
+
85
+ ?>
86
+
87
+ </div>
88
+
89
+ <div class="footer-address gr6">
90
+
91
+ <?php echo get_option('footer-address');?>
92
+
93
+ </div>
94
+
95
+ </div><!-- /footer-brand-area -->
96
+
97
+
98
+
99
+ <div id="footer-content-area" class="row">
100
+
101
+ <div id="footer-list-area" class="gr6">
102
+
103
+ <div class="row">
104
+
105
+
106
+
107
+ <?php if( has_nav_menu( 'footer_nav' ) ){
108
+
109
+ //bzb_get_nav_menu_name();
110
+
111
+ echo '<div id="footer-cont-about" class="gr4">';
112
+
113
+ echo "<h4>" . get_option('footer_menu_title') . "</ph4>";
114
+
115
+ wp_nav_menu(
116
+
117
+ array(
118
+
119
+ 'theme_location' => 'footer_nav',
120
+
121
+ 'menu_class' => '',
122
+
123
+ 'menu_id' => 'fnav',
124
+
125
+ 'container' => 'nav',
126
+
127
+ 'items_wrap' => '<ul id="footer-nav" class="%2$s">%3$s</ul>'
128
+
129
+ )
130
+
131
+ );
132
+
133
+ echo '</div>';
134
+
135
+ } //if footer_nav
136
+
137
+ ?>
138
+
139
+
140
+
141
+ <?php if( has_nav_menu( 'global_nav' ) ){ ?>
142
+
143
+
144
+
145
+ <div id="footer-cont-content" class="gr4">
146
+
147
+ <h4>ブログコンテンツ</h4>
148
+
149
+ <?php
150
+
151
+ wp_nav_menu(
152
+
153
+ array(
154
+
155
+ 'theme_location' => 'global_nav',
156
+
157
+ 'menu_class' => 'clearfix',
158
+
159
+ 'menu_id' => 'footer-gnav-ul',
160
+
161
+ 'container' => 'div',
162
+
163
+ 'container_id' => 'footer-gnav-container',
164
+
165
+ 'container_class' => 'gnav-container'
166
+
167
+ )
168
+
169
+ );?>
170
+
171
+ </div>
172
+
173
+ <?php } ?>
174
+
175
+
176
+
177
+ <div id="footer-cont-sns" class="gr4">
178
+
179
+ <h4>ソーシャルメディア</h4>
180
+
181
+ <?php footer_social_buttons();?>
182
+
183
+ </div>
184
+
185
+ </div>
186
+
187
+ </div>
188
+
189
+ <div class="gr6">
190
+
191
+ <div class="row">
192
+
193
+ <?php
194
+
195
+ $facebook_page_url = get_option('facebook_page_url');
196
+
197
+ if(isset($facebook_page_url) && $facebook_page_url !== ''){
198
+
199
+ ?>
200
+
201
+ <div id="footer-facebook" class="gr12 text-right">
202
+
203
+ <div class="fb-page" data-href="<?php echo $facebook_page_url;?>" data-width="500" data-height="600" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" data-show-posts="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="<?php echo $facebook_page_url;?>"><a href="<?php echo $facebook_page_url;?>"><?php echo get_option('site_name');?></a></blockquote></div></div>
204
+
205
+ </div>
206
+
207
+ <?php } ?>
208
+
209
+ </div>
210
+
211
+ </div>
212
+
213
+ </div>
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+ </div><!-- /wrap -->
222
+
223
+ </div><!-- /footer-01 -->
224
+
225
+ <div class="footer-02">
226
+
227
+ <div class="wrap">
228
+
229
+ <p class="footer-copy">
230
+
231
+ © Copyright <?php echo date('Y'); ?> <?php echo get_bloginfo('name'); ?>. All rights reserved.
232
+
233
+ </p>
234
+
235
+ </div><!-- /wrap -->
236
+
237
+ </div><!-- /footer-02 -->
238
+
239
+ <?php
240
+
241
+ // }
242
+
243
+ ?>
244
+
245
+ </footer>
246
+
247
+
248
+
249
+ <a href="#" class="pagetop"><span><i class="fa fa-angle-up"></i></span></a>
250
+
251
+ <?php wp_footer(); ?>
252
+
253
+
254
+
255
+ <script>
256
+
257
+ (function($){
258
+
259
+
260
+
261
+ $(function() {
262
+
263
+ $("#header-fnav").hide();
264
+
265
+ $("#header-fnav-area").hover(function(){
266
+
267
+ $("#header-fnav").fadeIn('fast');
268
+
269
+ }, function(){
270
+
271
+ $("#header-fnav").fadeOut('fast');
272
+
273
+ });
274
+
275
+ });
276
+
277
+
278
+
279
+
280
+
281
+ // グローバルナビ-サブメニュー
282
+
283
+ $(function(){
284
+
285
+ $(".sub-menu").css('display', 'none');
286
+
287
+ $("#gnav-ul li").hover(function(){
288
+
289
+ $(this).children('ul').fadeIn('fast');
290
+
291
+ }, function(){
292
+
293
+ $(this).children('ul').fadeOut('fast');
294
+
295
+ });
296
+
297
+ });
298
+
299
+
300
+
301
+ // トップページメインビジュアル
302
+
303
+ $(function(){
304
+
305
+ h = $(window).height();
306
+
307
+ hp = h * .3;
308
+
309
+ $('#main_visual').css('height', h + 'px');
310
+
311
+ $('#main_visual .wrap').css('padding-top', hp + 'px');
312
+
313
+ });
314
+
315
+
316
+
317
+ $(function(){
318
+
319
+ if(window.innerWidth < 768) {
320
+
321
+ h = $(window).height();
322
+
323
+ hp = h * .2;
324
+
325
+ $('#main_visual').css('height', h + 'px');
326
+
327
+ $('#main_visual .wrap').css('padding-top', hp + 'px');
328
+
329
+ }
330
+
331
+ });
332
+
333
+
334
+
335
+ // sp-nav
336
+
337
+ $(function(){
338
+
339
+ var header_h = $('#header').height();
340
+
341
+ $('#gnav-sp').hide();
342
+
343
+
344
+
345
+ $(window).resize(function(){
346
+
347
+ var w = $(window).width();
348
+
349
+ var x = 991;
350
+
351
+ if (w >= x) {
352
+
353
+ $('#gnav-sp').hide();
354
+
355
+ }
356
+
357
+ });
358
+
359
+
360
+
361
+ $('#gnav-sp').css('top', header_h);
362
+
363
+ $('#header-nav-btn a').click(function(){
364
+
365
+ $('#gnav-sp').slideToggle();
366
+
367
+ $('body').append('<p class="dummy"></p>');
368
+
369
+ });
370
+
371
+ $('body').on('click touchend', '.dummy', function() {
372
+
373
+ $('#gnav-sp').slideUp();
374
+
375
+ $('p.dummy').remove();
376
+
377
+ return false;
378
+
379
+ });
380
+
381
+ });
382
+
383
+
384
+
385
+ })(jQuery);
386
+
387
+
388
+
389
+ </script>
390
+
391
+
392
+
393
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
394
+
395
+ <script src="<?php echo get_stylesheet_directory_uri(); ?>/lib/jquery.fadethis.min.js"></script>
396
+
397
+ <script>
398
+
399
+ $(window).fadeThis();
400
+
401
+ </script>
402
+
403
+
404
+
405
+ </body>
406
+
407
+ </html>
408
+
409
+
410
+
411
+ コード
412
+
413
+ ```

1

javaのタグ削除

2018/01/17 05:30

投稿

323232
323232

スコア11

test CHANGED
File without changes
test CHANGED
File without changes