{"id":42,"date":"2011-08-28T08:50:49","date_gmt":"2011-08-28T15:50:49","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=42"},"modified":"2019-10-03T17:43:16","modified_gmt":"2019-10-04T00:43:16","slug":"prettyphoto-3-1-2","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/prettyphoto-3-1-2.html","title":{"rendered":"PrettyPhoto 3.1.2"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><em><button class=\"w3-button w3-red w3-round-xlarge\"> We no longer use this <\/button><\/em><\/p>\n<p>[prettyphoto]<\/p>\n<p style=\"text-align: center;\"><a title=\"prettyPhoto Home\" href=\"\/\/www.no-margin-for-errors.com\/?iframe=true&amp;width=100%&amp;height=100%\" rel=\"prettyPhoto\">The prettyPhoto website&#8230; Please go here for more information and donate if you like it<\/a><\/p>\n<p style=\"text-align: center;\"><em>We need to place all the files needed in the header.php of the theme we use. If we&#8217;re using many jquery then we should make no-conflict jquery for this plugin also. Notice &#8216;\/prettyphoto&#8217; is &#8216;prettyphoto&#8217; folder in the root of the theme folder.<br \/>\n<\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;!-prettyphoto&#8211;&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; media=&#8221;all&#8221; href=&#8221;&lt;?php bloginfo(&#8216;template_url&#8217;); ?&gt;\/prettyphoto\/css\/prettyPhoto.css&#8221; \/&gt;<br \/>\n&lt;script src=&#8221;&lt;?php bloginfo(&#8216;template_url&#8217;); ?&gt;\/prettyphoto\/js\/jquery.prettyPhoto.js&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221;&gt;<br \/>\nvar $jP=jQuery.noConflict();<br \/>\n$jP(document).ready(function(){<br \/>\n});<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script src=&#8221;&lt;?php bloginfo(&#8216;template_url&#8217;); ?&gt;\/prettyphoto\/facebook.js&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;!-end prettyphoto&#8211;&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em>This is the facebook.js with jquery no conflict implemented.<\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\">$jP(document).ready(function(){<\/p>\n<p>$jP(&#8220;a[rel^=&#8217;prettyPhoto&#8217;]&#8221;).prettyPhoto({theme:&#8217;facebook&#8217;,slideshow:5000, autoplay_slideshow:false});<br \/>\n});<\/p><\/blockquote>\n<p style=\"text-align: center;\"><em>To assign file types for different players, we need to create players and modify the &#8220;jquery.prettyPhoto.js&#8221;<\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\">function _getFileType(itemSrc){if(itemSrc.match(\/youtube.com\/watch\/i)){return&#8217;youtube&#8217;;}else if(itemSrc.match(\/vimeo.com\/i)){return&#8217;vimeo&#8217;;}else if(itemSrc.match(\/b.mp4b\/i)){return&#8217;jw&#8217;;}else if(itemSrc.match(\/b.wmvb\/i)){return&#8217;wmp&#8217;;}else if(itemSrc.match(\/b.avib\/i)){return&#8217;wmp&#8217;;}else if(itemSrc.match(\/b.mpgb\/i)){return&#8217;wmp&#8217;;}else if(itemSrc.match(\/b.m4vb\/i)){return&#8217;quicktime&#8217;;}else if(itemSrc.match(\/b.movb\/i)){return&#8217;nonver&#8217;;}else if(itemSrc.match(\/b.flvb\/i)){return&#8217;jw&#8217;;}else if(itemSrc.match(\/b.swfb\/i)){return&#8217;jw&#8217;;}else if(itemSrc.match(\/biframe=trueb\/i)){return&#8217;iframe&#8217;;}else if(itemSrc.match(\/bajax=trueb\/i)){return&#8217;ajax&#8217;;}else if(itemSrc.match(\/bcustom=trueb\/i)){return&#8217;custom&#8217;;}else if(itemSrc.substr(0,1)==&#8217;#&#8217;){return&#8217;inline&#8217;;}else{return&#8217;image&#8217;;};};<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em>Image Gallery<\/em><\/p>\n<p style=\"text-align: center;\"><em><a class=\"preview\" title=\"2014x1132 image display\" href=\"\/media\/04a8\/front1.JPG\" rel=\"prettyPhoto\">2014&#215;1132 image in prettyPhoto<\/a> with the expand button on the top-right corner.<br \/>\n<\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"prettyphoto pic1\" href=\"\/media\/teststuff\/sm_cab04_75.JPG\" rel=\"prettyPhoto[pretty]\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb1\" src=\"\/media\/teststuff\/tn_cab04_75.JPG\" alt=\"prettyphoto pic1\" width=\"250\" height=\"141\" \/><\/a> <em><a class=\"preview\" title=\"prettyphoto pic2\" href=\"\/media\/teststuff\/sm_cab04_76.JPG\" rel=\"prettyPhoto[pretty]\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb2\" src=\"\/media\/teststuff\/tn_cab04_76.JPG\" alt=\"prettyphoto pic2\" width=\"250\" height=\"141\" \/><\/a><\/em><\/p>\n<p style=\"text-align: center;\"><strong><em><br \/>\n<a title=\"HTML\" href=\"https:\/\/www.dognmonkey.com?iframe=true&amp;width=90%&amp;height=80%\" rel=\"prettyPhoto\">HTML <\/a><\/em><\/strong><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;a title=&#8221;HTML&#8221; href=&#8221;https:\/\/www.dognmonkey.com?iframe=true&amp;amp;width=90%&amp;amp;height=80%&#8221; rel=&#8221;prettyPhoto&#8221;&gt;HTML &lt;\/a&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><strong><em><a title=\"PDF display\" href=\"\/media\/teststuff\/lockcoding.pdf?iframe=true&amp;width=90%&amp;height=80%\" rel=\"prettyPhoto\">PDF<\/a><\/em><\/strong><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;strong&gt;&lt;em&gt;&lt;a title=&#8221;PDF display&#8221; href=&#8221;\/media\/teststuff\/lockcoding.pdf?iframe=true&amp;amp;width=90%&amp;amp;height=100%&#8221; rel=&#8221;prettyPhoto&#8221;&gt;PDF file&lt;\/a&gt;&lt;\/em&gt;&lt;\/strong&gt;&lt;\/p&gt;<strong><em><a title=\"PDF display\" href=\"\/media\/teststuff\/lockcoding.pdf?iframe=true&amp;width=90%&amp;height=100%\" rel=\"prettyPhoto\"><br \/>\n<\/a><\/em><\/strong><\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><strong><em><a title=\"dognmonkey\" href=\"https:\/\/www.youtube.com\/watch?v=iJT9HZye1PQ?fs=1&amp;autoplay=1\" rel=\"prettyPhoto\">YouTube full url autoplay<\/a><\/em><\/strong><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;strong&gt;&lt;em&gt;&lt;a title=&#8221;dognmonkey&#8221; href=&#8221;https:\/\/www.youtube.com\/watch?v=iJT9HZye1PQ?fs=1&amp;amp;autoplay=1&#8243; rel=&#8221;prettyPhoto&#8221;&gt;YouTube full url autoplay&lt;\/a&gt;&lt;\/strong&gt;&lt;\/em&gt;&lt;\/p&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><strong><em><a title=\"dognmonkey\" href=\"https:\/\/www.youtube.com\/embed?listType=playlist&amp;list=PLuRzvc_tEcZST27lPO1_WgftNO1pVUZZY?iframe=true\" rel=\"prettyPhoto\">YouTube playlist iframe<\/a><\/em><\/strong><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;strong&gt;&lt;em&gt;&lt;a title=&#8221;dognmonkey&#8221; href=&#8221;https:\/\/www.youtube.com\/embed?listType=playlist&amp;list=PLuRzvc_tEcZST27lPO1_WgftNO1pVUZZY?iframe=true&#8221; rel=&#8221;prettyPhoto&#8221;&gt;YouTube playlist iframe&lt;\/a&gt;&lt;\/strong&gt;&lt;\/em&gt;&lt;\/p&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em><strong><a title=\"Short Love Story\" href=\"https:\/\/vimeo.com\/1618300&amp;fullscreen=1\" rel=\"prettyPhoto\">Vimeo Url <\/a><\/strong><\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;a title=&#8221;Short Love Story&#8221; href=&#8221;https:\/\/vimeo.com\/1618300&amp;amp;fullscreen=1&#8243; rel=&#8221;prettyPhoto&#8221;&gt;Vimeo Url &lt;\/a&gt;&lt;\/p&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em><strong><a title=\"a8.flv\" href=\"\/media\/teststuff\/a8.flv?&amp;image=\/media\/teststuff\/tn_cab04_76.JPG&amp;backcolor=000000&amp;skin=\/jwplayer5_1\/fs31.zip&amp;bufferlength=8&amp;volume=50\" rel=\"prettyPhoto[vide]\">JWplayer .flv Player Test <\/a><\/strong><\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;em&gt;&lt;strong&gt;&lt;a title=&#8221;a8.flv&#8221; href=&#8221;\/media\/teststuff\/a8.flv?&amp;amp;image=\/media\/teststuff\/tn_cab04_76.JPG&amp;amp;backcolor=000000&amp;amp;skin=\/jwplayer5_1\/fs31.zip&amp;amp;bufferlength=8&amp;amp;volume=50&#8243; rel=&#8221;prettyPhoto[vide]&#8221;&gt;JWplayer .flv Player Test &lt;\/a&gt;&lt;\/strong&gt;&lt;\/em&gt;&lt;\/p&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><strong><em><a title=\"ltooz560b.mov\" href=\"\/media\/teststuff\/a8.mov?&amp;teaserURL=\/media\/teststuff\/tn_cab04_75.JPG\" rel=\"prettyPhoto[vide]\">NonverBlaster .mov Player Test <\/a><\/em><\/strong><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;strong&gt;&lt;em&gt;&lt;a title=&#8221;ltooz560b.mov&#8221; href=&#8221;\/media\/teststuff\/a8.mov?&amp;amp;teaserURL=\/media\/teststuff\/tn_cab04_75.JPG&#8221; rel=&#8221;prettyPhoto[vide]&#8221;&gt;NonverBlaster .mov Player Test &lt;\/a&gt;&lt;\/em&gt;&lt;\/strong&gt;&lt;\/p&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em><strong><a title=\"tasting.m4v\" href=\"\/media\/teststuff\/tasting.m4v\" rel=\"prettyPhoto[vide]\">Quicktime .m4v Player Test <\/a><\/strong><\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;em&gt;&lt;strong&gt;&lt;a title=&#8221;tasting.m4v&#8221; href=&#8221;\/media\/teststuff\/tasting.m4v&#8221; rel=&#8221;prettyPhoto[vide]&#8221;&gt;Quicktime .m4v Player Test &lt;\/a&gt;&lt;\/strong&gt;&lt;\/em&gt;&lt;\/p&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><strong><em><a title=\"a8.avi\" href=\"\/media\/teststuff\/a8.avi?width=560&amp;height=325\" rel=\"prettyPhoto[vide]\">WMP 560&#215;325 avi Player Test <\/a><\/em><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><em><a title=\"a8.mpg\" href=\"\/media\/teststuff\/a8.mpg?width=560&amp;height=325\" rel=\"prettyPhoto[vide]\">WMP mpg Test <\/a><\/em><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><em><a title=\"a8.wmv\" href=\"\/media\/teststuff\/a8.wmv?width=560&amp;height=325\" rel=\"prettyPhoto[vide]\">WMP wmv Test <\/a><\/em><\/strong><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: comic sans ms,sans-serif; font-size: small;\"><em><a title=\"a8.wmv File\" href=\"\/media\/teststuff\/a8.wmv\" rel=\"prettyPhoto\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"WMPlayer\" src=\"\/media\/teststuff\/tn_cab04_75.JPG\" alt=\"WMPlayer\" width=\"250\" height=\"141\" \/><\/a><\/em><\/span><\/p>\n<p style=\"text-align: center;\"><strong><em><a href=\"https:\/\/maps.google.com\/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=1001+Fairgrounds+Dr,+Vallejo,+CA&amp;sll=37.0625,-95.677068&amp;sspn=51.443116,135.263672&amp;ie=UTF8&amp;hq=&amp;hnear=1001+Fairgrounds+Dr,+Vallejo,+Solano,+California+94589&amp;ll=38.146168,-122.226076&amp;spn=0.023625,0.036478&amp;z=14&amp;iwloc=A&amp;output=embed?iframe=true&amp;width=100%&amp;height=100%\" rel=\"prettyPhoto\">sixflag marineworld<\/a><\/em><\/strong><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&#8221;https:\/\/maps.google.com\/maps?f=q&amp;amp;source=s_q&amp;amp;hl=en&amp;amp;geocode=&amp;amp;q=1001+Fairgrounds+Dr,+Vallejo,+CA&amp;amp;sll=37.0625,-95.677068&amp;amp;sspn=51.443116,135.263672&amp;amp;ie=UTF8&amp;amp;hq=&amp;amp;hnear=1001+Fairgrounds+Dr,+Vallejo,+Solano,+California+94589&amp;amp;ll=38.146168,-122.226076&amp;amp;spn=0.023625,0.036478&amp;amp;z=14&amp;amp;iwloc=A&amp;amp;output=embed?iframe=true&amp;amp;width=100%&amp;amp;height=100%&#8221; rel=&#8221;prettyPhoto&#8221;&gt;sixflag marineworld&lt;\/a&gt;&lt;\/em&gt;&lt;\/strong&gt;&lt;\/p&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: left;\"><ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; [prettyphoto] The prettyPhoto website&#8230; Please go here for more information and donate if you like it We need to place all the files needed in the header.php of the theme we use. If we&#8217;re using many jquery then we should make no-conflict jquery for this plugin also. Notice &#8216;\/prettyphoto&#8217; is &#8216;prettyphoto&#8217; folder in the <a href=\"https:\/\/www.dognmonkey.com\/techs\/prettyphoto-3-1-2.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[160],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-pop-ups","tag-prettyphoto-3-1-2-wordpress"],"views":9839,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":3,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":7412,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/42\/revisions\/7412"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}