Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-includes/blocks
NameTypeSizeActions
📁 .. Folder -
📁 archives Folder -
📄 archives.php File 2994
Edit Download
📁 audio Folder -
📁 avatar Folder -
📄 avatar.php File 5745
Edit Download
📁 block Folder -
📄 block.php File 3314
Edit Download
📄 blocks-json.php File 193945
Edit Download
📁 button Folder -
📄 button.php File 1805
Edit Download
📁 buttons Folder -
📁 calendar Folder -
📄 calendar.php File 6075
Edit Download
📁 categories Folder -
📄 categories.php File 4010
Edit Download
📁 code Folder -
📁 column Folder -
📁 columns Folder -
📁 comment-author-name Folder -
📄 comment-author-name.php File 2133
Edit Download
📁 comment-content Folder -
📄 comment-content.php File 2459
Edit Download
📁 comment-date Folder -
📄 comment-date.php File 1863
Edit Download
📁 comment-edit-link Folder -
📄 comment-edit-link.php File 1713
Edit Download
📁 comment-reply-link Folder -
📄 comment-reply-link.php File 2075
Edit Download
📁 comment-template Folder -
📄 comment-template.php File 4494
Edit Download
📁 comments Folder -
📁 comments-pagination Folder -
📁 comments-pagination-next Folder -
📄 comments-pagination-next.php File 1924
Edit Download
📁 comments-pagination-numbers Folder -
📄 comments-pagination-numbers.php File 1632
Edit Download
📁 comments-pagination-previous Folder -
📄 comments-pagination-previous.php File 1790
Edit Download
📄 comments-pagination.php File 1199
Edit Download
📁 comments-title Folder -
📄 comments-title.php File 2772
Edit Download
📄 comments.php File 6767
Edit Download
📁 cover Folder -
📄 cover.php File 3175
Edit Download
📁 details Folder -
📁 embed Folder -
📁 file Folder -
📄 file.php File 1793
Edit Download
📁 footnotes Folder -
📄 footnotes.php File 3771
Edit Download
📁 freeform Folder -
📁 gallery Folder -
📄 gallery.php File 6438
Edit Download
📁 group Folder -
📁 heading Folder -
📄 heading.php File 1301
Edit Download
📁 home-link Folder -
📄 home-link.php File 5438
Edit Download
📁 html Folder -
📁 image Folder -
📄 image.php File 12023
Edit Download
📄 index.php File 5111
Edit Download
📁 latest-comments Folder -
📄 latest-comments.php File 5040
Edit Download
📁 latest-posts Folder -
📄 latest-posts.php File 8542
Edit Download
📁 legacy-widget Folder -
📄 legacy-widget.php File 3997
Edit Download
📁 list Folder -
📁 list-item Folder -
📄 list.php File 1273
Edit Download
📁 loginout Folder -
📄 loginout.php File 1418
Edit Download
📁 media-text Folder -
📄 media-text.php File 4383
Edit Download
📁 missing Folder -
📁 more Folder -
📁 navigation Folder -
📁 navigation-link Folder -
📄 navigation-link.php File 13913
Edit Download
📁 navigation-submenu Folder -
📄 navigation-submenu.php File 9943
Edit Download
📄 navigation.php File 49620
Edit Download
📁 nextpage Folder -
📁 page-list Folder -
📁 page-list-item Folder -
📄 page-list-item.php File 361
Edit Download
📄 page-list.php File 13611
Edit Download
📁 paragraph Folder -
📁 pattern Folder -
📄 pattern.php File 1788
Edit Download
📁 post-author Folder -
📁 post-author-biography Folder -
📄 post-author-biography.php File 1524
Edit Download
📁 post-author-name Folder -
📄 post-author-name.php File 1951
Edit Download
📄 post-author.php File 2734
Edit Download
📁 post-comments-form Folder -
📄 post-comments-form.php File 2805
Edit Download
📁 post-content Folder -
📄 post-content.php File 2156
Edit Download
📁 post-date Folder -
📄 post-date.php File 3124
Edit Download
📁 post-excerpt Folder -
📄 post-excerpt.php File 3447
Edit Download
📁 post-featured-image Folder -
📄 post-featured-image.php File 9363
Edit Download
📁 post-navigation-link Folder -
📄 post-navigation-link.php File 4837
Edit Download
📁 post-template Folder -
📄 post-template.php File 5749
Edit Download
📁 post-terms Folder -
📄 post-terms.php File 3640
Edit Download
📁 post-title Folder -
📄 post-title.php File 2138
Edit Download
📁 preformatted Folder -
📁 pullquote Folder -
📁 query Folder -
📁 query-no-results Folder -
📄 query-no-results.php File 1847
Edit Download
📁 query-pagination Folder -
📁 query-pagination-next Folder -
📄 query-pagination-next.php File 3787
Edit Download
📁 query-pagination-numbers Folder -
📄 query-pagination-numbers.php File 4770
Edit Download
📁 query-pagination-previous Folder -
📄 query-pagination-previous.php File 3584
Edit Download
📄 query-pagination.php File 1176
Edit Download
📁 query-title Folder -
📄 query-title.php File 2098
Edit Download
📁 query-total Folder -
📄 query-total.php File 2535
Edit Download
📄 query.php File 5690
Edit Download
📁 quote Folder -
📁 read-more Folder -
📄 read-more.php File 1830
Edit Download
📄 require-dynamic-blocks.php File 4163
Edit Download
📄 require-static-blocks.php File 501
Edit Download
📁 rss Folder -
📄 rss.php File 4073
Edit Download
📁 search Folder -
📄 search.php File 23016
Edit Download
📁 separator Folder -
📁 shortcode Folder -
📄 shortcode.php File 735
Edit Download
📁 site-logo Folder -
📄 site-logo.php File 6334
Edit Download
📁 site-tagline Folder -
📄 site-tagline.php File 1203
Edit Download
📁 site-title Folder -
📄 site-title.php File 1853
Edit Download
📁 social-link Folder -
📄 social-link.php File 65174
Edit Download
📁 social-links Folder -
📁 spacer Folder -
📁 table Folder -
📁 tag-cloud Folder -
📄 tag-cloud.php File 1590
Edit Download
📁 template-part Folder -
📄 template-part.php File 10154
Edit Download
📁 term-description Folder -
📄 term-description.php File 1336
Edit Download
📁 text-columns Folder -
📁 verse Folder -
📁 video Folder -
📁 widget-group Folder -
📄 widget-group.php File 2438
Edit Download
array(), 'inline_styles' => '', 'overlay_css_classes' => array(), 'overlay_inline_styles' => '', ); // Text color. $has_named_text_color = array_key_exists( 'textColor', $context ); $has_picked_text_color = array_key_exists( 'customTextColor', $context ); $has_custom_text_color = isset( $context['style']['color']['text'] ); // If has text color. if ( $has_custom_text_color || $has_picked_text_color || $has_named_text_color ) { // Add has-text-color class. $colors['css_classes'][] = 'has-text-color'; } if ( $has_named_text_color ) { // Add the color class. $colors['css_classes'][] = sprintf( 'has-%s-color', _wp_to_kebab_case( $context['textColor'] ) ); } elseif ( $has_picked_text_color ) { $colors['inline_styles'] .= sprintf( 'color: %s;', $context['customTextColor'] ); } elseif ( $has_custom_text_color ) { // Add the custom color inline style. $colors['inline_styles'] .= sprintf( 'color: %s;', $context['style']['color']['text'] ); } // Background color. $has_named_background_color = array_key_exists( 'backgroundColor', $context ); $has_picked_background_color = array_key_exists( 'customBackgroundColor', $context ); $has_custom_background_color = isset( $context['style']['color']['background'] ); // If has background color. if ( $has_custom_background_color || $has_picked_background_color || $has_named_background_color ) { // Add has-background class. $colors['css_classes'][] = 'has-background'; } if ( $has_named_background_color ) { // Add the background-color class. $colors['css_classes'][] = sprintf( 'has-%s-background-color', _wp_to_kebab_case( $context['backgroundColor'] ) ); } elseif ( $has_picked_background_color ) { $colors['inline_styles'] .= sprintf( 'background-color: %s;', $context['customBackgroundColor'] ); } elseif ( $has_custom_background_color ) { // Add the custom background-color inline style. $colors['inline_styles'] .= sprintf( 'background-color: %s;', $context['style']['color']['background'] ); } // Overlay text color. $has_named_overlay_text_color = array_key_exists( 'overlayTextColor', $context ); $has_picked_overlay_text_color = array_key_exists( 'customOverlayTextColor', $context ); // If it has a text color. if ( $has_named_overlay_text_color || $has_picked_overlay_text_color ) { $colors['overlay_css_classes'][] = 'has-text-color'; } // Give overlay colors priority, fall back to Navigation block colors, then global styles. if ( $has_named_overlay_text_color ) { $colors['overlay_css_classes'][] = sprintf( 'has-%s-color', _wp_to_kebab_case( $context['overlayTextColor'] ) ); } elseif ( $has_picked_overlay_text_color ) { $colors['overlay_inline_styles'] .= sprintf( 'color: %s;', $context['customOverlayTextColor'] ); } // Overlay background colors. $has_named_overlay_background_color = array_key_exists( 'overlayBackgroundColor', $context ); $has_picked_overlay_background_color = array_key_exists( 'customOverlayBackgroundColor', $context ); // If has background color. if ( $has_named_overlay_background_color || $has_picked_overlay_background_color ) { $colors['overlay_css_classes'][] = 'has-background'; } if ( $has_named_overlay_background_color ) { $colors['overlay_css_classes'][] = sprintf( 'has-%s-background-color', _wp_to_kebab_case( $context['overlayBackgroundColor'] ) ); } elseif ( $has_picked_overlay_background_color ) { $colors['overlay_inline_styles'] .= sprintf( 'background-color: %s;', $context['customOverlayBackgroundColor'] ); } return $colors; } /** * Build an array with CSS classes and inline styles defining the font sizes * which will be applied to the pages markup in the front-end when it is a descendant of navigation. * * @since 5.8.0 * * @param array $context Navigation block context. * @return array Font size CSS classes and inline styles. */ function block_core_page_list_build_css_font_sizes( $context ) { // CSS classes. $font_sizes = array( 'css_classes' => array(), 'inline_styles' => '', ); $has_named_font_size = array_key_exists( 'fontSize', $context ); $has_custom_font_size = isset( $context['style']['typography']['fontSize'] ); if ( $has_named_font_size ) { // Add the font size class. $font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] ); } elseif ( $has_custom_font_size ) { // Add the custom font size inline style. $font_sizes['inline_styles'] = sprintf( 'font-size: %s;', wp_get_typography_font_size_value( array( 'size' => $context['style']['typography']['fontSize'], ) ) ); } return $font_sizes; } /** * Outputs Page list markup from an array of pages with nested children. * * @since 5.8.0 * * @param boolean $open_submenus_on_click Whether to open submenus on click instead of hover. * @param boolean $show_submenu_icons Whether to show submenu indicator icons. * @param boolean $is_navigation_child If block is a child of Navigation block. * @param array $nested_pages The array of nested pages. * @param boolean $is_nested Whether the submenu is nested or not. * @param array $active_page_ancestor_ids An array of ancestor ids for active page. * @param array $colors Color information for overlay styles. * @param integer $depth The nesting depth. * * @return string List markup. */ function block_core_page_list_render_nested_page_list( $open_submenus_on_click, $show_submenu_icons, $is_navigation_child, $nested_pages, $is_nested, $active_page_ancestor_ids = array(), $colors = array(), $depth = 0 ) { if ( empty( $nested_pages ) ) { return; } $front_page_id = (int) get_option( 'page_on_front' ); $markup = ''; foreach ( (array) $nested_pages as $page ) { $css_class = $page['is_active'] ? ' current-menu-item' : ''; $aria_current = $page['is_active'] ? ' aria-current="page"' : ''; $style_attribute = ''; $css_class .= in_array( $page['page_id'], $active_page_ancestor_ids, true ) ? ' current-menu-ancestor' : ''; if ( isset( $page['children'] ) ) { $css_class .= ' has-child'; } if ( $is_navigation_child ) { $css_class .= ' wp-block-navigation-item'; if ( $open_submenus_on_click ) { $css_class .= ' open-on-click'; } elseif ( $show_submenu_icons ) { $css_class .= ' open-on-hover-click'; } } $navigation_child_content_class = $is_navigation_child ? ' wp-block-navigation-item__content' : ''; // If this is the first level of submenus, include the overlay colors. if ( ( ( 0 < $depth && ! $is_nested ) || $is_nested ) && isset( $colors['overlay_css_classes'], $colors['overlay_inline_styles'] ) ) { $css_class .= ' ' . trim( implode( ' ', $colors['overlay_css_classes'] ) ); if ( '' !== $colors['overlay_inline_styles'] ) { $style_attribute = sprintf( ' style="%s"', esc_attr( $colors['overlay_inline_styles'] ) ); } } if ( (int) $page['page_id'] === $front_page_id ) { $css_class .= ' menu-item-home'; } $title = wp_kses_post( $page['title'] ); $title = $title ? $title : __( '(no title)' ); $aria_label = sprintf( /* translators: Accessibility text. %s: Parent page title. */ __( '%s submenu' ), wp_strip_all_tags( $title ) ); $markup .= '
  • '; if ( isset( $page['children'] ) && $is_navigation_child && $open_submenus_on_click ) { $markup .= ''; } else { $markup .= '' . $title . ''; } if ( isset( $page['children'] ) ) { if ( $is_navigation_child && $show_submenu_icons && ! $open_submenus_on_click ) { $markup .= ''; } $markup .= ''; } $markup .= '
  • '; } return $markup; } /** * Outputs nested array of pages * * @since 5.8.0 * * @param array $current_level The level being iterated through. * @param array $children The children grouped by parent post ID. * * @return array The nested array of pages. */ function block_core_page_list_nest_pages( $current_level, $children ) { if ( empty( $current_level ) ) { return; } foreach ( (array) $current_level as $key => $current ) { if ( isset( $children[ $key ] ) ) { $current_level[ $key ]['children'] = block_core_page_list_nest_pages( $children[ $key ], $children ); } } return $current_level; } /** * Renders the `core/page-list` block on server. * * @since 5.8.0 * * @param array $attributes The block attributes. * @param string $content The saved content. * @param WP_Block $block The parsed block. * * @return string Returns the page list markup. */ function render_block_core_page_list( $attributes, $content, $block ) { static $block_id = 0; ++$block_id; $parent_page_id = $attributes['parentPageID']; $is_nested = $attributes['isNested']; $all_pages = get_pages( array( 'sort_column' => 'menu_order,post_title', 'order' => 'asc', ) ); // If there are no pages, there is nothing to show. if ( empty( $all_pages ) ) { return; } $top_level_pages = array(); $pages_with_children = array(); $active_page_ancestor_ids = array(); foreach ( (array) $all_pages as $page ) { $is_active = ! empty( $page->ID ) && ( get_queried_object_id() === $page->ID ); if ( $is_active ) { $active_page_ancestor_ids = get_post_ancestors( $page->ID ); } if ( $page->post_parent ) { $pages_with_children[ $page->post_parent ][ $page->ID ] = array( 'page_id' => $page->ID, 'title' => $page->post_title, 'link' => get_permalink( $page ), 'is_active' => $is_active, ); } else { $top_level_pages[ $page->ID ] = array( 'page_id' => $page->ID, 'title' => $page->post_title, 'link' => get_permalink( $page ), 'is_active' => $is_active, ); } } $colors = block_core_page_list_build_css_colors( $attributes, $block->context ); $font_sizes = block_core_page_list_build_css_font_sizes( $block->context ); $classes = array_merge( $colors['css_classes'], $font_sizes['css_classes'] ); $style_attribute = ( $colors['inline_styles'] . $font_sizes['inline_styles'] ); $css_classes = trim( implode( ' ', $classes ) ); $nested_pages = block_core_page_list_nest_pages( $top_level_pages, $pages_with_children ); if ( 0 !== $parent_page_id ) { // If the parent page has no child pages, there is nothing to show. if ( ! array_key_exists( $parent_page_id, $pages_with_children ) ) { return; } $nested_pages = block_core_page_list_nest_pages( $pages_with_children[ $parent_page_id ], $pages_with_children ); } $is_navigation_child = array_key_exists( 'showSubmenuIcon', $block->context ); $open_submenus_on_click = array_key_exists( 'openSubmenusOnClick', $block->context ) ? $block->context['openSubmenusOnClick'] : false; $show_submenu_icons = array_key_exists( 'showSubmenuIcon', $block->context ) ? $block->context['showSubmenuIcon'] : false; $wrapper_markup = $is_nested ? '%2$s' : ''; $items_markup = block_core_page_list_render_nested_page_list( $open_submenus_on_click, $show_submenu_icons, $is_navigation_child, $nested_pages, $is_nested, $active_page_ancestor_ids, $colors ); $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $css_classes, 'style' => $style_attribute, ) ); return sprintf( $wrapper_markup, $wrapper_attributes, $items_markup ); } /** * Registers the `core/pages` block on server. * * @since 5.8.0 */ function register_block_core_page_list() { register_block_type_from_metadata( __DIR__ . '/page-list', array( 'render_callback' => 'render_block_core_page_list', ) ); } add_action( 'init', 'register_block_core_page_list' );