Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
css
/
File Content:
image-presenter.php
<?php namespace Yoast\WP\SEO\Presenters\Open_Graph; use Yoast\WP\SEO\Presentations\Indexable_Presentation; use Yoast\WP\SEO\Presenters\Abstract_Indexable_Presenter; /** * Presenter class for the Open Graph image. */ class Image_Presenter extends Abstract_Indexable_Presenter { /** * Image tags that we output for each image. * * @var array */ protected static $image_tags = [ 'width' => 'width', 'height' => 'height', 'mime-type' => 'type', ]; /** * Returns the image for a post. * * @return string The image tag. */ public function present() { $images = $this->get(); if ( empty( $images ) ) { return ''; } $return = ''; foreach ( $images as $image_index => $image_meta ) { $image_url = $image_meta['url']; $return .= '<meta property="og:image" content="' . \esc_url( $image_url ) . '" />'; foreach ( static::$image_tags as $key => $value ) { if ( empty( $image_meta[ $key ] ) ) { continue; } $return .= \PHP_EOL . "\t" . '<meta property="og:image:' . \esc_attr( $key ) . '" content="' . $image_meta[ $key ] . '" />'; } } return $return; } /** * Gets the raw value of a presentation. * * @return array The raw value. */ public function get() { $images = []; foreach ( $this->presentation->open_graph_images as $open_graph_image ) { $images[] = $this->filter( $open_graph_image ); } return \array_filter( $images ); } /** * Run the image content through the `wpseo_opengraph_image` filter. * * @param array $image The image. * * @return array The filtered image. */ protected function filter( $image ) { /** * Filter: 'wpseo_opengraph_image' - Allow changing the Open Graph image. * * @api string - The URL of the Open Graph image. * * @param Indexable_Presentation $presentation The presentation of an indexable. */ $image_url = \trim( \apply_filters( 'wpseo_opengraph_image', $image['url'], $this->presentation ) ); if ( ! empty( $image_url ) && \is_string( $image_url ) ) { $image['url'] = $image_url; } return $image; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
dist
---
0755
-20260707124210.DS_Store
10234 bytes
0644
.DS_Store
10234 bytes
0644
20200616130143_ReplacePermalinkHashIndex.php
2293 bytes
0644
AjaxController.php
2162 bytes
0644
DownloadConfController.php
945 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream-20260705054747.php
4209 bytes
0644
LimitStream-20260705054834.php
4209 bytes
0644
LimitStream-20260705150545.php
4209 bytes
0644
LimitStream.php
4209 bytes
0644
article-author-presenter-20260704122119.php
1116 bytes
0644
article-modified-time-presenter.php
609 bytes
0644
class-abstract-capability-manager-20260623131058.php
2265 bytes
0644
class-abstract-capability-manager.php
2265 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-sitemaps-admin-20260703023908.php
3665 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-taxonomy-columns.php
7324 bytes
0644
class-tracking-server-data.php
1989 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-yoast-form.php
31520 bytes
0644
class-yoast-plugin-conflict-20260705070231.php
10390 bytes
0644
class-yoast-plugin-conflict.php
10390 bytes
0644
class.constants.php
150 bytes
0644
class.pack.database.php
30838 bytes
0644
class.password-20260623145730.php
6377 bytes
0644
controller.php
2441 bytes
0644
ctrl.package.php
17073 bytes
0644
dashboard-1650-rtl-20260704171552.css
1634 bytes
0644
dashboard-1650-rtl.css
1634 bytes
0644
deactivation.php
21118 bytes
0644
define-20260706001416.php
4567 bytes
0644
define.php
4567 bytes
0644
duplicator-main.php
26907 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin-20260706154007.php
3331 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260705194237.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706064902.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623220932.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
flexible-widget-20260622141614.php
11167 bytes
0644
flexible-widget.php
11167 bytes
0644
image-helper-20260705100658.php
10231 bytes
0644
image-helper.php
10231 bytes
0644
image-presenter.php
2093 bytes
0644
inc.data.php
5121 bytes
0644
index.php
157663 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
main-sitemap.xsl
4267 bytes
0644
manager.php
14659 bytes
0644
meta-fields-presenter.php
1600 bytes
0644
module.php
1297 bytes
0644
quick-edit-handler-1650-20260705100138.js
1848 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
root-20260705103905.php
1951 bytes
0644
root.php
1951 bytes
0644
social.php
725 bytes
0644
uninstall.php
4401 bytes
0644
wordpress-seo-es_ES.json
25583 bytes
0644
wordpress-seojs-ar-20260704135828.json
25925 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-bs_BA-20260707074052.json
13790 bytes
0644
wordpress-seojs-bs_BA.json
13790 bytes
0644
wordpress-seojs-es_ES.json
20568 bytes
0644
wordpress-seojs-ja.json
21424 bytes
0644
wordpress-seojs-uk-20260705040435.json
26506 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
wp-seo-main-20260707062404.php
17504 bytes
0644
wp-seo-main.php
17504 bytes
0644
yoast-components-20260623141823.php
12265 bytes
0644
yoast-components.php
12265 bytes
0644
N4ST4R_ID | Naxtarrr