Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML if ( $index = array_search(preg_replace( '![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s' , '' , 'page-' . drupal_strtolower(arg( 0 ))), $vars [ 'classes_array' ])) { unset ( $vars [ 'classes_array' ][ $index ]); } // $vars [ 'header' ] = theme( 'header' , array ( // => 'front_page' => $vars [ 'front_page' ], 'logo' => $vars [ 'logo' ], 'search_box' => $vars [ 'search_box' ], 'header_line' => $vars [ 'header_line' ], )); $vars [ 'footer' ] = theme( 'footer' , array ( 'front_page' => $vars [ 'front_page' ], 'footer_line' => $vars [ 'footer_line' ], 'page_bottom' => $vars [ 'page_bottom' ], )); // _ if (! $vars [ 'is_front' ]) { // $path = drupal_get_path_alias( $_GET [ 'q' ]); $vars [ 'classes_array' ][] = drupal_html_class( 'page-' . $path ); // list ( $section , ) = explode( '/' , $path , 2 ); if (arg( 0 ) == 'node' ) { if (arg( 1 ) == 'add' ) { $section = 'node-add' ; } elseif (is_numeric(arg( 1 )) && (arg( 2 ) == 'edit' || arg( 2 ) == 'delete' )) { $section = 'node-' . arg( 2 ); } } $vars [ 'classes_array' ][] = drupal_html_class( 'section-' . $section ); }
Copy Source | Copy HTML
- // Create the $ build_mode variable depending on the node display type
- switch ( $ vars [ 'node' ] -> build_mode) {
- case NODE_BUILD_NORMAL:
- $ vars [ 'build_mode' ] = $ vars [ 'teaser' ]? 'teaser' : 'full' ;
- break ;
- case NODE_BUILD_PREVIEW:
- $ vars [ 'build_mode' ] = 'preview' ;
- break ;
- case NODE_BUILD_SEARCH_INDEX:
- $ vars [ 'build_mode' ] = 'search_index' ;
- break ;
- case NODE_BUILD_SEARCH_RESULT:
- $ vars [ 'build_mode' ] = 'search_result' ;
- break ;
- case NODE_BUILD_RSS:
- $ vars [ 'build_mode' ] = 'rss' ;
- break ;
- case NODE_BUILD_PRINT:
- $ vars [ 'build_mode' ] = 'print' ;
- break ;
- }
- // Create $ user_picture variable
- $ vars [ 'user_picture' ] = $ vars [ 'picture' ];
- // Special classes for materials, depending on the type
- // For example: "node-type-page", "node-type-story", "node-type-my-custom-type"
- $ vars [ 'classes_array' ] [] = drupal_html_class ( 'node-type-' . $ vars [ 'type' ]);
- if ( $ vars [ 'promote' ]) {
- $ vars [ 'classes_array' ] [] = 'node-promoted' ;
- }
- if ( $ vars [ 'sticky' ]) {
- $ vars [ 'classes_array' ] [] = 'node-sticky' ;
- }
- if (! $ vars [ 'status' ]) {
- $ vars [ 'classes_array' ] [] = 'node-unpublished' ;
- $ vars [ 'unpublished' ] = TRUE;
- }
- else {
- $ vars [ 'unpublished' ] = FALSE;
- }
- if ( $ vars [ 'uid' ] && $ vars [ 'uid' ] == $ GLOBALS [ 'user' ] -> uid) {
- $ vars [ 'classes_array' ] [] = 'node-by-viewer' ; // The node of the current user.
- }
- if ( $ vars [ 'teaser' ]) {
- $ vars [ 'classes_array' ] [] = 'node-teaser' ; // Teaser.
- }
- if ( isset ( $ vars [ 'preview' ])) {
- $ vars [ 'classes_array' ] [] = 'node-preview' ;
- }
Copy Source | Copy HTML
- if ( $ vars [ 'elements' ]) {
- // Parse the array that came from the theme () function and add parameters to the variables
- foreach ( $ vars [ 'elements' ] as $ ind => $ val ) {
- $ vars [ $ ind ] = $ val ;
- }
- unset ( $ vars [ 'elements' ]);
- }
Copy Source | Copy HTML
- // Create $ content and $ region variables
- $ vars [ 'content' ] = $ vars [ 'elements' ] [ '#children' ];
- $ vars [ 'region' ] = $ vars [ 'elements' ] [ '#region' ];
- // Set Classes
- $ region = 'region-' . str_replace ( '_' , '-' , $ vars [ 'region' ]);
- $ vars [ 'classes_array' ] = array ( 'region' , $ region );
- // And the pattern
- $ vars [ 'template_files' ] [] = $ region ;
Copy Source | Copy HTML
- $ block = $ vars [ 'block' ];
- // Set the $ title and $ content variables
- $ vars [ 'content' ] = $ block -> content;
- $ vars [ 'title' ] = $ block -> subject;
- // Set Classes
- $ vars [ 'classes_array' ] [] = 'block-' . $ block -> module;
- $ vars [ 'classes_array' ] [] = 'region-' . $ vars [ 'block_zebra' ];
- $ vars [ 'classes_array' ] [] = $ vars [ 'zebra' ];
- $ vars [ 'classes_array' ] [] = 'region-count-' . $ vars [ 'block_id' ];
- $ vars [ 'classes_array' ] [] = 'count-' . $ vars [ 'id' ];
- $ vars [ 'edit_links_array' ] = array ();
Copy Source | Copy HTML
- // Create the $ created variable
- $ vars [ 'created' ] = $ vars [ 'date' ];
- // Remove the comment topic if it is disabled.
- if (variable_get ( 'comment_subject_field_' . $ vars [ 'node' ] -> type, 1 ) == 0 ) {
- $ vars [ 'title' ] = '' ;
- }
- // Styles
- if ( $ vars [ 'comment' ] -> new ) {
- $ vars [ 'classes_array' ] [] = 'comment-new' ;
- }
- if ( $ vars [ 'comment' ] -> status == COMMENT_NOT_PUBLISHED) {
- $ vars [ 'unpublished' ] = TRUE;
- }
- else {
- $ vars [ 'unpublished' ] = FALSE;
- $ vars [ 'classes_array' ] [] = $ vars [ 'status' ];
- }
- // zebra
- if ( $ vars [ 'id' ] == 1 ) {
- $ vars [ 'classes_array' ] [] = 'first' ;
- }
- if ( $ vars [ 'id' ] == $ vars [ 'node' ] -> comment_count) {
- $ vars [ 'classes_array' ] [] = 'last' ;
- }
- $ vars [ 'classes_array' ] [] = $ vars [ 'zebra' ];
- if ( $ vars [ 'comment' ] -> uid == 0 ) {
- // Anonymous user comment
- $ vars [ 'classes_array' ] [] = 'comment-by-anonymous' ;
- }
- else {
- if ( $ vars [ 'comment' ] -> uid == $ vars [ 'node' ] -> uid) {
- // Author's comment node
- $ vars [ 'classes_array' ] [] = 'comment-by-node-author' ;
- }
- if ( $ vars [ 'comment' ] -> uid == $ GLOBALS [ 'user' ] -> uid) {
- // Comment of the current user
- $ vars [ 'classes_array' ] [] = 'comment-by-viewer' ;
- }
- }
Source: https://habr.com/ru/post/86460/
All Articles