- Timestamp:
- 02/03/2023 08:34:14 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/11.0/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php
r13303 r13410 200 200 } 201 201 202 $button_args = bp_get_blogs_visit_blog_button_args();203 204 202 // If we pass through parent classes add them to $button array 205 203 $parent_class = ''; … … 208 206 } 209 207 210 // Set defaults if not set. 211 $button_args = array_merge( array( 212 'wrapper_id' => '', 213 'link_id' => '', 214 'link_rel' => '' 215 ), $button_args ); 216 217 $buttons['visit_blog'] = array( 218 'id' => 'visit_blog', 219 'position' => 5, 220 'component' => $button_args['component'], 221 'must_be_logged_in' => $button_args['must_be_logged_in'], 222 'block_self' => $button_args['block_self'], 223 'parent_element' => $parent_element, 224 'button_element' => $button_element, 225 'link_text' => $button_args['link_text'], 226 'link_title' => $button_args['link_title'], 227 'parent_attr' => array( 228 'id' => $button_args['wrapper_id'], 229 'class' => $parent_class, 230 ), 231 'button_attr' => array( 232 'href' => $button_args['link_href'], 233 'id' => $button_args['link_id'], 234 'class' => $button_args['link_class'] . ' button', 235 'rel' => $button_args['link_rel'], 236 'title' => '', 237 ), 238 ); 208 $button_args = bp_get_blogs_visit_blog_button_args(); 209 if ( array_filter( $button_args ) ) { 210 // Set defaults if not set. 211 $button_args = array_merge( array( 212 'wrapper_id' => '', 213 'link_id' => '', 214 'link_rel' => '' 215 ), $button_args ); 216 217 $buttons['visit_blog'] = array( 218 'id' => 'visit_blog', 219 'position' => 5, 220 'component' => $button_args['component'], 221 'must_be_logged_in' => $button_args['must_be_logged_in'], 222 'block_self' => $button_args['block_self'], 223 'parent_element' => $parent_element, 224 'button_element' => $button_element, 225 'link_text' => $button_args['link_text'], 226 'link_title' => $button_args['link_title'], 227 'parent_attr' => array( 228 'id' => $button_args['wrapper_id'], 229 'class' => $parent_class, 230 ), 231 'button_attr' => array( 232 'href' => $button_args['link_href'], 233 'id' => $button_args['link_id'], 234 'class' => $button_args['link_class'] . ' button', 235 'rel' => $button_args['link_rel'], 236 'title' => '', 237 ), 238 ); 239 } 239 240 240 241 /**
Note: See TracChangeset
for help on using the changeset viewer.