2 added 20 characters in body
source | link

global $post; $templateName=get_page_template_slug( $post->ID ); //echo $templateName; var_dump($templateName);

global $post;
$templateName = get_page_template_slug( $post->ID );
//echo $templateName;
var_dump( $templateName );

global $post; $templateName=get_page_template_slug( $post->ID ); //echo $templateName; var_dump($templateName);

global $post;
$templateName = get_page_template_slug( $post->ID );
//echo $templateName;
var_dump( $templateName );
1
source | link

global $post; $templateName=get_page_template_slug( $post->ID ); //echo $templateName; var_dump($templateName);