Plugin Directory

Changeset 917473


Ignore:
Timestamp:
05/19/2014 09:32:12 PM (12 years ago)
Author:
huntermaster
Message:

change anchor activation hook back from data-pretty-photo to rel

Location:
image-formatr/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • image-formatr/trunk/src/class.admin.php

    r917471 r917473  
    444444
    445445        // Add settings link on plugin page
    446         function set_link($links) { 
    447             $settings_link = '<a href="options-general.php?page=class.admin.php">Settings</a>'; 
    448             array_push($links, $settings_link); 
    449             return $links; 
     446        function set_link($links) {
     447            $settings_link = '<a href="options-general.php?page=class.admin.php">Settings</a>';
     448            array_push($links, $settings_link);
     449            return $links;
    450450        }
    451451
  • image-formatr/trunk/src/class.base.php

    r917471 r917473  
    114114<script type="text/javascript" charset="utf-8">
    115115  jQuery(document).ready(function(){
    116     jQuery("[data-pretty-photo]").prettyPhoto({
     116    jQuery("a[rel^='prettyPhoto']").prettyPhoto({
    117117        $social_tools
    118118        theme: '{$this->get_option('pptheme')}',
  • image-formatr/trunk/src/class.formatr.php

    r917471 r917473  
    239239         *
    240240         * [alt] => IMG_4308
    241          * [asis] => 
     241         * [asis] =>
    242242         * [class] => attachment-thumbnail
    243          * [flickr] => 
     243         * [flickr] =>
    244244         * [group] => main
    245245         * [height] => 150
    246          * [hint] => 
    247          * [id] => 
    248          * [link] => 
    249          * [nocap] => 
    250          * [nofx] => 
    251          * [page] => 
     246         * [hint] =>
     247         * [id] =>
     248         * [link] =>
     249         * [nocap] =>
     250         * [nofx] =>
     251         * [page] =>
    252252         * [src] => /wp-content/uploads/2014/05/IMG_4308-150x150.jpg
    253          * [thumb] => 
    254          * [title] => 
    255          * [usemya] => 
    256          * [usemysize] => 
     253         * [thumb] =>
     254         * [title] =>
     255         * [usemya] =>
     256         * [usemysize] =>
    257257         * [width] => 150
    258258         * [anchor] => <a href='/wp-content/uploads/2014/05/IMG_4308.jpg'>
    259          * [none] => 
     259         * [none] =>
    260260         *
    261261         * @param array $param The image attributes/parameters as an associative array
     
    349349            if ($this->get_option('dofx'))
    350350              $effect = <<< EFFECT
    351                 data-pretty-photo="prettyPhoto[{$param['group']}]"
     351                rel="prettyPhoto[{$param['group']}]"
    352352EFFECT;
    353353            if ($param['nofx'])
Note: See TracChangeset for help on using the changeset viewer.