Plugin Directory

Changeset 486930


Ignore:
Timestamp:
01/09/2012 04:43:45 PM (14 years ago)
Author:
jaroat
Message:

YAPB Feature Pointers prep

Location:
yet-another-photoblog/trunk/lib
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • yet-another-photoblog/trunk/lib/Yapb.class.php

    r486645 r486930  
    8282
    8383            require_once realpath(dirname(__FILE__) . '/includes/YapbConstants.script.php');
     84           
     85            // Get the pointers for this version
     86           
     87            require_once realpath(dirname(__FILE__) . '/includes/YapbPointers.class.php');
    8488
    8589            // Let's check if we have a cache dir as defined in the YapbConstants.script.php
     
    168172           
    169173            add_action('wp_head', array(&$this, '_on_wp_head_facebook'));
     174
     175            // WordPress Pointers
     176           
     177           
    170178           
    171179            // YAPB Plugin Integration Hook
     
    175183
    176184            add_action('plugins_loaded', array(&$this, '_on_plugins_loaded'));
    177 
     185           
    178186        }
    179187
  • yet-another-photoblog/trunk/lib/options/YapbOptionGroup.class.php

    r486921 r486930  
    1010        class YapbOptionGroup {
    1111
     12            static $index = 0;
     13           
    1214            var $title;
    1315            var $description;
     
    6062            function toString() {
    6163
     64                self::$index += 1;
     65               
    6266                $result = '';
    6367
     
    7377                            // Tabs UL
    7478
    75                             $result .= '<a name="anchor" class="basic-accordion-anchor">&nbsp;</a>';
     79                            $result .= '<a name="anchor" id="yapb-options-group-' . self::$index . '" class="basic-accordion-anchor">&nbsp;</a>';
    7680                            $result .= '<div id="accordion" class="basic-accordion">';
    7781
     
    108112                        if (!empty($this->children)) {
    109113
    110                             $result .= '<table style="height:auto;" class="form-table">';
     114                            $result .= '<table id="yapb-options-group-' . self::$index . '" style="height:auto;" class="form-table">';
    111115                            for ($i=0, $ilen=count($this->children); $i<$ilen; $i++) {
    112116                                $child = &$this->children[$i];
     
    129133                        $result .= '<td valign="top">';
    130134
     135                        $result .= "\n" . '<div  id="yapb-options-group-' . self::$index . '">';
     136                       
    131137                        if (!empty($this->description)) {
    132138                            $result .= "\n" . '<p class="yapb-first">' . $this->description . '</p>';
     
    140146
    141147                        $result .= "\n" . '</ul>';
     148                        $result .= "\n" . '</div>';
    142149                        $result .= "\n" . '</td>';
    143150                        $result .= '</tr>';
     
    150157                        // Level 3 of nesting options
    151158                       
    152                         $result .= '<div style="padding:0 0 5px 20px;border-left:2px dotted #efefef;">';
     159                        $result .= '<div  id="yapb-options-group-' . self::$index . '" style="padding:0 0 5px 20px;border-left:2px dotted #efefef;">';
    153160                        $result .= '<ul>';
    154161                       
Note: See TracChangeset for help on using the changeset viewer.