Advertisement
dalbeck

Untitled

Sep 28th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 6.57 KB | None | 0 0
  1. jQuery(document).ready(function(){
  2.     jQuery("a.work_lb[rel^='prettyPhoto'],a.expanded[rel^='prettyPhoto'],a.bio[rel^='prettyPhoto']").live("click",function() {
  3.         jQuery.fn.prettyPhoto({
  4.             animation_speed: 'normal', /* fast/slow/normal */
  5.             slideshow: 5000, /* false OR interval time in ms */
  6.             autoplay_slideshow: false, /* true/false */
  7.             opacity: 0.80, /* Value between 0 and 1 */
  8.             show_title: false, /* true/false */
  9.             allow_resize: true, /* Resize the photos bigger than viewport. true/false */
  10.             default_width: 1200,
  11.             default_height: 344,
  12.             counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
  13.             theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
  14.             horizontal_padding: 20, /* The padding on each side of the picture */
  15.             hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
  16.             wmode: 'opaque', /* Set the flash wmode attribute */
  17.             autoplay: false, /* Automatically start videos: True/False */
  18.             modal: false, /* If set to true, only the close button will close the window */
  19.             deeplinking: true, /* Allow prettyPhoto to update the url to enable deeplinking. */
  20.             overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
  21.             keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */
  22.             changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
  23.             callback: function(){}, /* Called when prettyPhoto is closed */
  24.             ie6_fallback: true,
  25.             markup: '<div class="pp_pic_holder"> \
  26.                        <div class="ppt">&nbsp;</div> \
  27.                        <div class="pp_top"> \
  28.                            <div class="pp_left"></div> \
  29.                            <div class="pp_middle"></div> \
  30.                            <div class="pp_right"> \
  31.                                <div class="pp_nav"> \
  32.                                    <a href="#" class="pp_arrow_previous">Previous</a> \
  33.                                    <p class="currentTextHolder">0/0</p> \
  34.                                    <a href="#" class="pp_arrow_next">Next</a> \
  35.                                </div> \
  36.                            <a class="pp_close" href="#">Close</a> \</div> \
  37.                        </div> \
  38.                        <div class="pp_content_container"> \
  39.                            <div class="pp_left"> \
  40.                            <div class="pp_right"> \
  41.                                <div class="pp_content"> \
  42.                                    <div class="pp_loaderIcon"></div> \
  43.                                    <div class="pp_fade"> \
  44.                                        <a href="#" class="pp_expand" title="Expand the image">Expand</a> \
  45.                                        <div class="pp_hoverContainer"> \
  46.                                            <a class="pp_next" href="#">next</a> \
  47.                                            <a class="pp_previous" href="#">previous</a> \
  48.                                        </div> \
  49.                                        <div id="pp_full_res"></div> \
  50.                                        <div class="pp_details"> \
  51.                                            <p class="pp_description"></p> \
  52.                                            {pp_social} \
  53.                                        </div> \
  54.                                    </div> \
  55.                                </div> \
  56.                            </div> \
  57.                            </div> \
  58.                        </div> \
  59.                        <div class="pp_bottom"> \
  60.                            <div class="pp_left"></div> \
  61.                            <div class="pp_middle"></div> \
  62.                            <div class="pp_right"></div> \
  63.                        </div> \
  64.                    </div> \
  65.                    <div class="pp_overlay"></div>',
  66.             gallery_markup: '<div class="pp_gallery"> \
  67.                                <a href="#" class="pp_arrow_previous">Previous</a> \
  68.                                <div> \
  69.                                    <ul> \
  70.                                        {gallery} \
  71.                                    </ul> \
  72.                                </div> \
  73.                                <a href="#" class="pp_arrow_next">Next</a> \
  74.                            </div>',
  75.             image_markup: '<img id="fullResImage" src="{path}" />',
  76.             flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
  77.             quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',
  78.             iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
  79.             inline_markup: '<div class="pp_inline">{content}</div>',
  80.             custom_markup: '',
  81.             social_tools: '<div class="pp_social"><div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href='+location.href+'&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>' /* html or false to disable */
  82.         });
  83.         jQuery.prettyPhoto.open(jQuery(this).attr("href"),"","");
  84.         return false;
  85.     });
  86. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement