🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 save.js

📁 Path: ./wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/toc/assets/src/save.js
📊 Size: 920 B
🔒 Perm: 0644
📝 MIME: text/plain
/**
 * External dependencies
 */
import { isUndefined } from 'lodash'

/**
 * WordPress dependencies
 */
import { useBlockProps } from '@wordpress/block-editor'

/**
 * Internal dependencies
 */
import { linearToNestedHeadingList } from './utils'
import List from './list'

export default function save( { attributes } ) {
	if ( isUndefined( attributes.headings ) || attributes.headings.length === 0 ) {
		return null
	}

	const TitleWrapper = attributes.titleWrapper
	const headings = linearToNestedHeadingList( attributes.headings )
	const ListStyle = attributes.listStyle

	return (
		<div { ...useBlockProps.save() } id="rank-math-toc">
			{ attributes.title && <TitleWrapper dangerouslySetInnerHTML={ { __html: attributes.title } }></TitleWrapper> }
			<nav>
				<ListStyle>
					<List
						headings={ headings }
						ListStyle={ ListStyle }
						isSave={ true }
					/>
				</ListStyle>
			</nav>
		</div>
	)
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨