html footer.php.html

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html footer.php.html相关的知识,希望对你有一定的参考价值。

// initialize magnific popup galleries with titles and descriptions
$('.gallery').magnificPopup({
		callbacks: {
			open: function() {
        $('.mfp-description').append(this.currItem.el.attr('title'));
      },
      afterChange: function() {
        $('.mfp-description').empty().append(this.currItem.el.attr('title'));
      }
    },
		delegate: 'a',
		type: 'image',
		image: {
			markup: '<div class="mfp-figure">'+
			'<div class="mfp-close"></div>'+
			'<div class="mfp-img"></div>'+
			'<div class="mfp-bottom-bar">'+
			'<div class="mfp-title"></div>'+
			'<div class="mfp-description" style="text-align: left;font-size: 12px;line-height: 16px;color: #f3f3f3;word-break: break-word;padding-right: 36px;"></div>'+
			'<div class="mfp-counter"></div>'+
			'</div>'+
			'</div>',
			titleSrc: function(item) {
				return '<strong>' + item.el.find('img').attr('alt') + '</strong>';
			}
		},
		gallery: {
			enabled: true,
			navigateByImgClick: true
		}
	});
$(document).ready(function() {
  //Initialize for inline images
  $('.pop').magnificPopup({type:'image'});
  //Initialize for wordpress galleries
  $('.gallery').magnificPopup({
    delegate: 'a',
    type: 'image',
    gallery: {
      enabled: true
      }
  });
});
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/magnific-popup.css">
/**
* Add title back to images
*/
function pexeto_add_title_to_attachment( $markup, $id ){
	$att = get_post( $id );
	return str_replace('<a ', '<a title="'.$att->post_title.'" ', $markup);
}
add_filter('wp_get_attachment_link', 'pexeto_add_title_to_attachment', 10, 5);
<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/jquery.magnific-popup.js"></script>

以上是关于html footer.php.html的主要内容,如果未能解决你的问题,请参考以下文章

Html.Partial 与 Html.RenderPartial 和 Html.Action 与 Html.RenderAction

html Html模板/ Html Boilerplate |标签HTML

html里怎么引用一个html的头部

html5与传统html区别

html4和html5的区别

HTML元素