/home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/output/html
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/output/html/theme.php (2392B)
$menu
* @return array
*/
public function admin_menu( array $menu ) {
/** @var QM_Data_Theme $data */
$data = $this->collector->get_data();
if ( ! empty( $data->block_template ) ) {
if ( $data->block_template->wp_id ) {
$name = $data->block_template->id;
} else {
$name = sprintf(
'%s/%s.html',
$data->theme_folders[ $data->block_template->type ],
$data->block_template->slug
);
}
} elseif ( isset( $data->template_file ) ) {
$name = ( $data->is_child_theme ) ? $data->theme_template_file : $data->template_file;
} else {
$name = __( 'Unknown', 'query-monitor' );
}
$menu[ $this->collector->id() ] = $this->menu( array(
'title' => sprintf(
/* translators: %s: Template file name */
__( 'Template: %s', 'query-monitor' ),
$name
),
) );
return $menu;
}
/**
* @param array $menu
* @return array
*/
public function panel_menu( array $menu ) {
if ( isset( $menu[ $this->collector->id() ] ) ) {
$menu[ $this->collector->id() ]['title'] = __( 'Template', 'query-monitor' );
}
return $menu;
}
}
/**
* @param array $output
* @param QM_Collectors $collectors
* @return array
*/
function register_qm_output_html_theme( array $output, QM_Collectors $collectors ) {
if ( is_admin() ) {
return $output;
}
$collector = QM_Collectors::get( 'response' );
if ( $collector ) {
$output['response'] = new QM_Output_Html_Theme( $collector );
}
return $output;
}
add_filter( 'qm/outputter/html', 'register_qm_output_html_theme', 70, 2 );