Changeset 486930
- Timestamp:
- 01/09/2012 04:43:45 PM (14 years ago)
- Location:
- yet-another-photoblog/trunk/lib
- Files:
-
- 1 added
- 2 edited
-
Yapb.class.php (modified) (3 diffs)
-
includes/YapbPointers.class.php (added)
-
options/YapbOptionGroup.class.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
yet-another-photoblog/trunk/lib/Yapb.class.php
r486645 r486930 82 82 83 83 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'); 84 88 85 89 // Let's check if we have a cache dir as defined in the YapbConstants.script.php … … 168 172 169 173 add_action('wp_head', array(&$this, '_on_wp_head_facebook')); 174 175 // WordPress Pointers 176 177 170 178 171 179 // YAPB Plugin Integration Hook … … 175 183 176 184 add_action('plugins_loaded', array(&$this, '_on_plugins_loaded')); 177 185 178 186 } 179 187 -
yet-another-photoblog/trunk/lib/options/YapbOptionGroup.class.php
r486921 r486930 10 10 class YapbOptionGroup { 11 11 12 static $index = 0; 13 12 14 var $title; 13 15 var $description; … … 60 62 function toString() { 61 63 64 self::$index += 1; 65 62 66 $result = ''; 63 67 … … 73 77 // Tabs UL 74 78 75 $result .= '<a name="anchor" class="basic-accordion-anchor"> </a>';79 $result .= '<a name="anchor" id="yapb-options-group-' . self::$index . '" class="basic-accordion-anchor"> </a>'; 76 80 $result .= '<div id="accordion" class="basic-accordion">'; 77 81 … … 108 112 if (!empty($this->children)) { 109 113 110 $result .= '<table style="height:auto;" class="form-table">';114 $result .= '<table id="yapb-options-group-' . self::$index . '" style="height:auto;" class="form-table">'; 111 115 for ($i=0, $ilen=count($this->children); $i<$ilen; $i++) { 112 116 $child = &$this->children[$i]; … … 129 133 $result .= '<td valign="top">'; 130 134 135 $result .= "\n" . '<div id="yapb-options-group-' . self::$index . '">'; 136 131 137 if (!empty($this->description)) { 132 138 $result .= "\n" . '<p class="yapb-first">' . $this->description . '</p>'; … … 140 146 141 147 $result .= "\n" . '</ul>'; 148 $result .= "\n" . '</div>'; 142 149 $result .= "\n" . '</td>'; 143 150 $result .= '</tr>'; … … 150 157 // Level 3 of nesting options 151 158 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;">'; 153 160 $result .= '<ul>'; 154 161
Note: See TracChangeset
for help on using the changeset viewer.