芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/www/wp-content/plugins/wordpress-seo-premium/classes/blocks/subpages-block.php
indexable_repository = $indexable_repository; $this->base_path = \WPSEO_PREMIUM_PATH . 'assets/blocks/dynamic-blocks/'; } /** * Presents the block output. * * @param array $attributes The block attributes. * * @return string The block output. */ public function present( $attributes ) { $indexables = $this->indexable_repository->get_subpages_by_post_parent( \get_the_ID() ); $links = \array_map( static function ( Indexable $indexable ) { return [ 'title' => $indexable->breadcrumb_title, 'permalink' => $indexable->permalink, ]; }, $indexables ); if ( empty( $links ) ) { return ''; } $class_name = 'yoast-url-list'; if ( ! empty( $attributes['className'] ) ) { $class_name .= ' ' . \esc_attr( $attributes['className'] ); } $presenter = new Url_List_Presenter( $links, $class_name ); return $presenter->present(); } }