~quam-plures-core/quam-plures/bug-614012

« back to all changes in this revision

Viewing changes to inc/items/model/_itemlight.class.php

  • Committer: yabs
  • Author(s): EdB
  • Date: 2010-07-05 15:24:36 UTC
  • mfrom: (7501.1.4 everything_in_one)
  • Revision ID: yabs@innervisions.org.uk-20100705152436-zdfylg1djrbsi18o
Implementing the huge EdB branch ;)

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
         *
176
176
         * <code>
177
177
         * $params = array_merge( array(
178
 
         *   'before' => '',
179
 
         *   'after' => ' ',
180
 
         *   'include_main' => true,
181
 
         *   'before_main' => '',
182
 
         *   'after_main' => '',
183
 
         *   'include_other' => true,
184
 
         *   'before_other' => '',
185
 
         *   'after_other' => '',
 
178
         *   'before'           => '',
 
179
         *   'after'            => ' ',
 
180
         *   'include_main'     => true,
 
181
         *   'before_main'      => '',
 
182
         *   'after_main'       => '',
 
183
         *   'include_other'    => true,
 
184
         *   'before_other'     => '',
 
185
         *   'after_other'      => '',
186
186
         *   'include_external' => true,
187
187
         *   'before_external'  => '<em>',
188
 
         *   'after_external' => '</em>',
189
 
         *   'separator' => ', ',
190
 
         *   'link_categories' => true,
191
 
         *   'link_title' => '#',
192
 
         *   'format' => 'htmlbody',
 
188
         *   'after_external'   => '</em>',
 
189
         *   'separator'        => ', ',
 
190
         *   'link_categories'  => true,
 
191
         *   'link_title'       => T_('Browse category'),
 
192
         *   'format'           => 'htmlbody',
193
193
         * ), $params );
194
194
         * </code>
195
195
         *
199
199
        {
200
200
                // Make sure we are not missing any param:
201
201
                $params = array_merge( array(
202
 
                                'before'          => '',
203
 
                                'after'           => ' ',
204
 
                                'include_main'    => true,
205
 
                                'before_main'     => '',
206
 
                                'after_main'      => '',
207
 
                                'include_other'   => true,
208
 
                                'before_other'    => '',
209
 
                                'after_other'     => '',
210
 
                                'include_external'=> true,
211
 
                                'before_external' => '<em>',
212
 
                                'after_external'  => '</em>',
213
 
                                'separator'       => ', ',
214
 
                                'link_categories' => true,
215
 
                                'link_title'      => '#',
216
 
                                'format'          => 'htmlbody',
 
202
                                'before'           => '',
 
203
                                'after'            => ' ',
 
204
                                'include_main'     => true,
 
205
                                'before_main'      => '',
 
206
                                'after_main'       => '',
 
207
                                'include_other'    => true,
 
208
                                'before_other'     => '',
 
209
                                'after_other'      => '',
 
210
                                'include_external' => true,
 
211
                                'before_external'  => '<em>',
 
212
                                'after_external'   => '</em>',
 
213
                                'separator'        => ', ',
 
214
                                'link_categories'  => true,
 
215
                                'link_title'       => T_('Browse category'),
 
216
                                'format'           => 'htmlbody',
217
217
                        ), $params );
218
218
 
219
 
                if( $params['link_title'] == '#' )
220
 
                { /* TRANS: When the categories for a specific post are displayed, the user can click
221
 
                                        on these cats to browse them, this is the default href title displayed there */
222
 
                        $params['link_title'] = T_('Browse category');
223
 
                }
224
 
 
225
219
                $categoryNames = array();
226
220
                foreach( $this->get_Chapters() as $Chapter )
227
221
                {
846
840
 
847
841
 
848
842
        /**
849
 
         * T-Tag: Temporarily switch to this post's locale
 
843
         * T-Tag: Temporarily switch to this item's locale
850
844
         *
851
845
         * @uses locale_temp_switch()
852
846
         */