original_string: protected function getViewHandle()
      {
          if (is_front_page() && is_home()) {
              return 'index';
          } elseif (is_front_page()) {
              return 'front-page';
          } elseif (is_home()) {
              return 'index';
          } elseif (is_page_template()) {
              global $wp_query;
              $templateName = get_post_meta($wp_query->post->ID, '_wp_page_template', true);
  
              return substr($templateName, 0, -4);
          } elseif (is_page()) {
              return 'page';
          } elseif (is_attachment()) {
              return 'attacment';
          } elseif (is_single()) {
              return 'single';
          } elseif (is_archive()) {
              return 'archive';
          } elseif (is_search()) {
              return 'search';
          }
  
          return 'not-found';
      }
code: protected function getViewHandle()
      {
          if (is_front_page() && is_home()) {
              return 'index';
          } elseif (is_front_page()) {
              return 'front-page';
          } elseif (is_home()) {
              return 'index';
          } elseif (is_page_template()) {
              global $wp_query;
              $templateName = get_post_meta($wp_query->post->ID, '_wp_page_template', true);
  
              return substr($templateName, 0, -4);
          } elseif (is_page()) {
              return 'page';
          } elseif (is_attachment()) {
              return 'attacment';
          } elseif (is_single()) {
              return 'single';
          } elseif (is_archive()) {
              return 'archive';
          } elseif (is_search()) {
              return 'search';
          }
  
          return 'not-found';
      }
code_tokens: protected function getViewHandle ( ) { if ( is_front_page ( ) && is_home ( ) ) { return 'index' ; } elseif ( is_front_page ( ) ) { return 'front-page' ; } elseif ( is_home ( ) ) { return 'index' ; } elseif ( is_page_template ( ) ) { global $ wp_query ; $ templateName = get_post_meta ( $ wp_query -> post -> ID , '_wp_page_template' , true ) ; return substr ( $ templateName , 0 , - 4 ) ; } elseif ( is_page ( ) ) { return 'page' ; } elseif ( is_attachment ( ) ) { return 'attacment' ; } elseif ( is_single ( ) ) { return 'single' ; } elseif ( is_archive ( ) ) { return 'archive' ; } elseif ( is_search ( ) ) { return 'search' ; } return 'not-found' ; }
docstring: Retrieves the current view handle
  
  @return string
docstring_tokens: Retrieves the current view handle