@@ 148-160 (lines=13) @@ | ||
145 | 'options' => $options, |
|
146 | ); |
|
147 | ||
148 | } elseif ( isset( $feed_types[ $section ]['fields'] ) ) { |
|
149 | ||
150 | foreach ( $feed_types[ $section ]['fields'] as $key => $args ) { |
|
151 | ||
152 | $fields[ $section ][] = array_merge( $args, array( |
|
153 | 'name' => 'simple-calendar_' . $this->option_group . '_' . $this->id . '[' . $section . '][' . $key . ']', |
|
154 | 'id' => 'simple-calendar-' . $this->option_group . '-' . $this->id . '-' . $key, |
|
155 | 'value' => $this->get_option_value( $section, $key ) |
|
156 | ) ); |
|
157 | ||
158 | } |
|
159 | ||
160 | } |
|
161 | ||
162 | endforeach; |
|
163 |
@@ 106-116 (lines=11) @@ | ||
103 | ||
104 | foreach ( $this->sections as $type => $contents ) : |
|
105 | ||
106 | if ( isset( $feed_types[ $type ]['fields'] ) ) { |
|
107 | foreach ( $feed_types[ $type ]['fields'] as $key => $args ) { |
|
108 | ||
109 | $fields[ $type ][] = array_merge( $args, array( |
|
110 | 'name' => 'simple-calendar_' . $this->option_group . '_' . $this->id . '[' . $type . '][' . $key . ']', |
|
111 | 'id' => 'simple-calendar-' . $this->option_group . '-' . $this->id . '-' . $type . '-' . $key, |
|
112 | 'value' => $this->get_option_value( $type, $key ) |
|
113 | ) ); |
|
114 | ||
115 | } |
|
116 | } |
|
117 | ||
118 | endforeach; |
|
119 |