Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Book
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'URL', 'rank-math' ),
|
||||
'url'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Author', 'rank-math' ),
|
||||
'author.name'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ( ! empty( $schema['hasPart'] ) ) {
|
||||
$hash = [
|
||||
'edition' => __( 'Edition', 'rank-math' ),
|
||||
'name' => __( 'Name', 'rank-math' ),
|
||||
'url' => __( 'Url', 'rank-math' ),
|
||||
'author' => __( 'Author', 'rank-math' ),
|
||||
'isbn' => __( 'ISBN', 'rank-math' ),
|
||||
'datePublished' => __( 'Date Published', 'rank-math' ),
|
||||
'bookFormat' => __( 'Format', 'rank-math' ),
|
||||
];
|
||||
foreach ( $schema['hasPart'] as $edition ) {
|
||||
$this->schema = $edition;
|
||||
foreach ( $hash as $id => $label ) {
|
||||
$this->get_field( $label, $id );
|
||||
}
|
||||
}
|
||||
$this->schema = $schema;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $this->show_ratings(); ?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Course
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Course Provider', 'rank-math' ),
|
||||
'provider.@type'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Course Provider Name', 'rank-math' ),
|
||||
'provider.name'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Course Provider URL', 'rank-math' ),
|
||||
'provider.sameAs'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Course Mode', 'rank-math' ),
|
||||
'hasCourseInstance.courseMode'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Course Workload', 'rank-math' ),
|
||||
'hasCourseInstance.courseWorkload',
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Start Date', 'rank-math' ),
|
||||
'hasCourseInstance.courseSchedule.startDate',
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'End Date', 'rank-math' ),
|
||||
'hasCourseInstance.courseSchedule.endDate',
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Duration', 'rank-math' ),
|
||||
'hasCourseInstance.courseSchedule.duration',
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Repeat Count', 'rank-math' ),
|
||||
'hasCourseInstance.courseSchedule.repeatCount',
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Repeat Frequency', 'rank-math' ),
|
||||
'hasCourseInstance.courseSchedule.repeatFrequency',
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Course Type', 'rank-math' ),
|
||||
'offers.category'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Course Currency', 'rank-math' ),
|
||||
'offers.priceCurrency'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Course Price', 'rank-math' ),
|
||||
'offers.price'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php $this->show_ratings(); ?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Event
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
|
||||
$value = $this->get_field_value( 'eventAttendanceMode' );
|
||||
$is_online = 'Online' === $value;
|
||||
$is_offline = 'Offline' === $value;
|
||||
|
||||
if ( 'MixedEventAttendanceMode' === $value ) {
|
||||
$is_online = true;
|
||||
$is_offline = true;
|
||||
$value = esc_html__( 'Online + Offline', 'rank-math' );
|
||||
}
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Event Type', 'rank-math' ),
|
||||
'@type'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->output_field(
|
||||
esc_html__( 'Event Attendance Mode', 'rank-math' ),
|
||||
$value
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Event Status', 'rank-math' ),
|
||||
'eventStatus'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ( $is_offline ) {
|
||||
$this->get_field(
|
||||
esc_html__( 'Venue Name', 'rank-math' ),
|
||||
'location.name'
|
||||
);
|
||||
|
||||
$this->get_field(
|
||||
esc_html__( 'Venue URL', 'rank-math' ),
|
||||
'location.url'
|
||||
);
|
||||
|
||||
$this->get_field(
|
||||
esc_html__( 'Address', 'rank-math' ),
|
||||
'location.address'
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ( $is_online ) {
|
||||
$this->get_field(
|
||||
esc_html__( 'Online Event URL', 'rank-math' ),
|
||||
'VirtualLocation.url'
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Performer', 'rank-math' ),
|
||||
'performer.@type'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Performer Name', 'rank-math' ),
|
||||
'performer.name'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Performer URL', 'rank-math' ),
|
||||
'performer.sameAs'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Start Date', 'rank-math' ),
|
||||
'startDate',
|
||||
true
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'End Date', 'rank-math' ),
|
||||
'endDate',
|
||||
true
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Ticket URL', 'rank-math' ),
|
||||
'offers.url'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Entry Price', 'rank-math' ),
|
||||
'offers.price'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Currency', 'rank-math' ),
|
||||
'offers.priceCurrency'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Availability', 'rank-math' ),
|
||||
'offers.availability'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Availability Starts', 'rank-math' ),
|
||||
'startDate'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Stock Inventory', 'rank-math' ),
|
||||
'offers.inventoryLevel'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php $this->show_ratings(); ?>
|
||||
|
||||
</div>
|
@@ -0,0 +1 @@
|
||||
<?php // Silence is golden.
|
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Job Posting
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Salary', 'rank-math' ),
|
||||
'baseSalary.value.value'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Salary Currency', 'rank-math' ),
|
||||
'baseSalary.currency'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Payroll', 'rank-math' ),
|
||||
'baseSalary.value.unitText'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Date Posted', 'rank-math' ),
|
||||
'datePosted'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Expiry Posted', 'rank-math' ),
|
||||
'validThrough'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Unpublish when expired', 'rank-math' ),
|
||||
'unpublish'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Employment Type ', 'rank-math' ),
|
||||
'employmentType'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Hiring Organization ', 'rank-math' ),
|
||||
'hiringOrganization.name'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Organization URL', 'rank-math' ),
|
||||
'hiringOrganization.sameAs'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Organization Logo', 'rank-math' ),
|
||||
'hiringOrganization.logo'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Location', 'rank-math' ),
|
||||
'jobLocation.address'
|
||||
);
|
||||
?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Music
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'URL', 'rank-math' ),
|
||||
'url'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Type', 'rank-math' ),
|
||||
'@type'
|
||||
);
|
||||
?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Person
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Email', 'rank-math' ),
|
||||
'email'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Address', 'rank-math' ),
|
||||
'address'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Gender', 'rank-math' ),
|
||||
'gender'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Job Title', 'rank-math' ),
|
||||
'jobTitle'
|
||||
);
|
||||
?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Product
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Product SKU', 'rank-math' ),
|
||||
'sku'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Product Brand', 'rank-math' ),
|
||||
'brand.name'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Product Currency', 'rank-math' ),
|
||||
'offers.priceCurrency'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Product Price', 'rank-math' ),
|
||||
'offers.price'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Price Valid Until', 'rank-math' ),
|
||||
'offers.priceValidUntil'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Product In-Stock', 'rank-math' ),
|
||||
'offers.availability'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php $this->show_ratings(); ?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Recipe
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Type', 'rank-math' ),
|
||||
'recipeCategory'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Cuisine', 'rank-math' ),
|
||||
'recipeCuisine'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Keywords', 'rank-math' ),
|
||||
'keywords'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Recipe Yield', 'rank-math' ),
|
||||
'recipeYield'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Calories', 'rank-math' ),
|
||||
'nutrition.calories'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Preparation Time', 'rank-math' ),
|
||||
'prepTime'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Cooking Time', 'rank-math' ),
|
||||
'cookTime'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Total Time', 'rank-math' ),
|
||||
'totalTime'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Recipe Video Name', 'rank-math' ),
|
||||
'video.name'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Recipe Video Description', 'rank-math' ),
|
||||
'video.description'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Recipe Video Thumbnail', 'rank-math' ),
|
||||
'video.thumbnailUrl'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
global $wp_embed;
|
||||
if ( ! empty( $this->schema['video'] ) ) {
|
||||
if ( ! empty( $this->schema['video']['embedUrl'] ) ) {
|
||||
echo do_shortcode( $wp_embed->autoembed( $this->schema['video']['embedUrl'] ) );
|
||||
} elseif ( ! empty( $this->schema['video']['contentUrl'] ) ) {
|
||||
echo do_shortcode( $wp_embed->autoembed( $this->schema['video']['contentUrl'] ) );
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
$ingredient = $this->get_field_value( 'recipeIngredient' );
|
||||
$this->output_field(
|
||||
esc_html__( 'Recipe Ingredients', 'rank-math' ),
|
||||
'<ul><li>' . join( '</li><li>', $ingredient ) . '</li></ul>'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$instructions = $this->get_field_value( 'recipeInstructions' );
|
||||
if ( is_string( $instructions ) ) {
|
||||
$this->get_field(
|
||||
esc_html__( 'Recipe Instructions', 'rank-math' ),
|
||||
'recipeInstructions'
|
||||
);
|
||||
} else {
|
||||
// HowTo Array.
|
||||
if ( isset( $instructions[0]['@type'] ) && 'HowtoStep' === $instructions[0]['@type'] ) {
|
||||
$instructions = wp_list_pluck( $instructions, 'text' );
|
||||
$this->output_field(
|
||||
esc_html__( 'Recipe Instructions', 'rank-math' ),
|
||||
'<ul><li>' . join( '</li><li>', $instructions ) . '</li></ul>'
|
||||
);
|
||||
}
|
||||
|
||||
// Single HowToSection data.
|
||||
if ( ! empty( $instructions['itemListElement'] ) ) {
|
||||
$this->output_field(
|
||||
esc_html__( 'Recipe Instructions', 'rank-math' ),
|
||||
''
|
||||
);
|
||||
|
||||
$this->output_field(
|
||||
$instructions['name'],
|
||||
'<ul><li>' . join( '</li><li>', wp_list_pluck( $instructions['itemListElement'], 'text' ) ) . '</li></ul>'
|
||||
);
|
||||
}
|
||||
|
||||
// Multiple HowToSection data.
|
||||
if ( isset( $instructions[0]['@type'] ) && 'HowToSection' === $instructions[0]['@type'] ) {
|
||||
$this->output_field(
|
||||
esc_html__( 'Recipe Instructions', 'rank-math' ),
|
||||
''
|
||||
);
|
||||
|
||||
foreach ( $instructions as $section ) {
|
||||
if ( empty( $section['itemListElement'] ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->output_field(
|
||||
$section['name'],
|
||||
'<ul><li>' . join( '</li><li>', wp_list_pluck( $section['itemListElement'], 'text' ) ) . '</li></ul>'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $this->show_ratings(); ?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Restaurant
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Address', 'rank-math' ),
|
||||
'address'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Geo Coordinates', 'rank-math' ),
|
||||
'geo'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Phone Number', 'rank-math' ),
|
||||
'telephone'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Price Range', 'rank-math' ),
|
||||
'priceRange'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php $this->get_opening_hours( 'openingHoursSpecification' ); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Serves Cuisine', 'rank-math' ),
|
||||
'servesCuisine'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Menu URL', 'rank-math' ),
|
||||
'hasMenu'
|
||||
);
|
||||
?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Service
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Service Type', 'rank-math' ),
|
||||
'serviceType'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Price', 'rank-math' ),
|
||||
'offers.price'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Currency', 'rank-math' ),
|
||||
'offers.priceCurrency'
|
||||
);
|
||||
?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Software Application
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$this->get_title();
|
||||
$this->get_image();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Price', 'rank-math' ),
|
||||
'offers.price'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Price Currency', 'rank-math' ),
|
||||
'offers.priceCurrency'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Operating System', 'rank-math' ),
|
||||
'operatingSystem'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$this->get_field(
|
||||
esc_html__( 'Application Category', 'rank-math' ),
|
||||
'applicationCategory'
|
||||
);
|
||||
?>
|
||||
|
||||
<?php $this->show_ratings(); ?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Shortcode - Video
|
||||
*
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\Schema
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
global $wp_embed;
|
||||
$this->get_title();
|
||||
?>
|
||||
<div class="rank-math-review-data">
|
||||
|
||||
<?php $this->get_description(); ?>
|
||||
|
||||
<?php
|
||||
if ( ! empty( $this->schema['embedUrl'] ) ) {
|
||||
echo do_shortcode( $wp_embed->autoembed( $this->schema['embedUrl'] ) );
|
||||
} elseif ( ! empty( $this->schema['contentUrl'] ) ) {
|
||||
echo do_shortcode( $wp_embed->autoembed( $this->schema['contentUrl'] ) );
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user