| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/frontend.tar |
google-map/loader.js 0000666 00000004105 15111772244 0010407 0 ustar 00 const initMapScript = () => {
let maps = [];
maps = window.themeisleGoogleMaps;
maps.forEach( map => {
const googleMap = new google.maps.Map( document.getElementById( map.container ), {
center: {
lat: Number( map.attributes.latitude ),
lng: Number( map.attributes.longitude )
},
gestureHandling: 'cooperative',
zoom: map.attributes.zoom,
mapTypeId: map.attributes.type,
draggable: map.attributes.draggable,
mapTypeControl: map.attributes.mapTypeControl,
zoomControl: map.attributes.zoomControl,
fullscreenControl: map.attributes.fullscreenControl,
streetViewControl: map.attributes.streetViewControl
});
if ( ! map.attributes.id && map.attributes.location ) {
const request = {
query: map.attributes.location,
fields: [ 'name', 'geometry' ]
};
const service = new google.maps.places.PlacesService( googleMap );
service.findPlaceFromQuery( request, ( results, status ) => {
if ( status === google.maps.places.PlacesServiceStatus.OK ) {
if ( 0 < results.length ) {
googleMap.setCenter( results[0].geometry.location );
}
}
});
}
if ( map.attributes.markers && 0 < map.attributes.markers.length ) {
map.attributes.markers.forEach( marker => {
const position = new google.maps.LatLng( marker.latitude, marker.longitude );
const mark = new google.maps.Marker({
position,
map: googleMap,
title: marker.title,
icon: marker.icon || 'https://maps.google.com/mapfiles/ms/icons/red-dot.png'
});
if ( marker.title || marker.description ) {
const contentString = `<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">${ marker.title }</h6><div class="wp-block-themeisle-blocks-map-overview-content">${ marker.description ? `<p>${ marker.description }</p>` : '' }</div></div>`;
const infowindow = new google.maps.InfoWindow({
content: contentString
});
mark.addListener( 'click', () => {
infowindow.open( googleMap, mark );
});
}
});
}
});
};
window.initMapScript = initMapScript;
class-woocommerce-shop-page.php 0000666 00000002576 15114012675 0012600 0 ustar 00 <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Deprecated\Frontend
*/
use Yoast\WP\SEO\Helpers\Woocommerce_Helper;
/**
* Represents the logic to determine if the current page is a WooCommerce shop page.
*
* @deprecated 14.9
* @codeCoverageIgnore
*/
class WPSEO_WooCommerce_Shop_Page {
/**
* Checks if the current page is the shop page.
*
* @deprecated 14.9
* @codeCoverageIgnore
*
* @return bool Whether the current page is the WooCommerce shop page.
*/
public function is_shop_page() {
_deprecated_function( __METHOD__, 'WPSEO 14.9', Woocommerce_Helper::class . '::is_shop_page' );
return YoastSEO()->helpers->woocommerce->is_shop_page();
}
/**
* Returns the id of the set WooCommerce shop page.
*
* @deprecated 14.9
* @codeCoverageIgnore
*
* @return int The ID of the set page.
*/
public function get_shop_page_id() {
_deprecated_function( __METHOD__, 'WPSEO 14.9', Woocommerce_Helper::class . '::get_shop_page_id' );
return YoastSEO()->helpers->woocommerce->get_shop_page_id();
}
/**
* Returns the ID of the WooCommerce shop page when the currently opened page is the shop page.
*
* @codeCoverageIgnore
* @deprecated 14.0
*
* @param int $page_id The page id.
*
* @return int The Page ID of the shop.
*/
public function get_page_id( $page_id ) {
_deprecated_function( __METHOD__, 'WPSEO 14.0' );
return $page_id;
}
}
breadcrumbs.php 0000666 00000006310 15114012675 0007554 0 ustar 00 <?php
/**
* Backwards compatibility class for breadcrumbs.
*
* @package Yoast\YoastSEO\Backwards_Compatibility
*/
use Yoast\WP\SEO\Memoizers\Meta_Tags_Context_Memoizer;
use Yoast\WP\SEO\Presenters\Breadcrumbs_Presenter;
use Yoast\WP\SEO\Surfaces\Helpers_Surface;
/**
* Class WPSEO_Breadcrumbs
*
* @codeCoverageIgnore Because of deprecation.
*/
class WPSEO_Breadcrumbs {
/**
* Instance of this class.
*
* @var WPSEO_Breadcrumbs
*/
public static $instance;
/**
* Last used 'before' string.
*
* @var string
*/
public static $before = '';
/**
* Last used 'after' string.
*
* @var string
*/
public static $after = '';
/**
* The memoizer for the meta tags context.
*
* @var Meta_Tags_Context_Memoizer
*/
protected $context_memoizer;
/**
* The helpers surface.
*
* @var Helpers_Surface
*/
protected $helpers;
/**
* The replace vars helper
*
* @var WPSEO_Replace_Vars
*/
protected $replace_vars;
/**
* WPSEO_Breadcrumbs constructor.
*/
public function __construct() {
$this->context_memoizer = YoastSEO()->classes->get( Meta_Tags_Context_Memoizer::class );
$this->helpers = YoastSEO()->classes->get( Helpers_Surface::class );
$this->replace_vars = YoastSEO()->classes->get( WPSEO_Replace_Vars::class );
}
/**
* Get breadcrumb string using the singleton instance of this class.
*
* @param string $before Optional string to prepend.
* @param string $after Optional string to append.
* @param bool $display Echo or return flag.
*
* @return string Returns the breadcrumbs as a string.
*/
public static function breadcrumb( $before = '', $after = '', $display = true ) {
// Remember the last used before/after for use in case the object goes __toString().
self::$before = $before;
self::$after = $after;
$output = $before . self::get_instance()->render() . $after;
if ( $display === true ) {
echo $output;
return '';
}
return $output;
}
/**
* Magic method to use in case the class would be send to string.
*
* @return string The rendered breadcrumbs.
*/
public function __toString() {
return self::$before . $this->render() . self::$after;
}
/**
* Retrieves an instance of the class.
*
* @return static The instance.
*/
public static function get_instance() {
if ( is_null( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Returns the collected links for the breadcrumbs.
*
* @return array The collected links.
*/
public function get_links() {
$context = $this->context_memoizer->for_current_page();
return $context->presentation->breadcrumbs;
}
/**
* Renders the breadcrumbs.
*
* @return string The rendered breadcrumbs.
*/
private function render() {
$presenter = new Breadcrumbs_Presenter();
$context = $this->context_memoizer->for_current_page();
/** This filter is documented in src/integrations/front-end-integration.php */
$presentation = apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
$presenter->presentation = $presentation;
$presenter->replace_vars = $this->replace_vars;
$presenter->helpers = $this->helpers;
return $presenter->present();
}
}
class-twitter.php 0000666 00000002033 15114012675 0010066 0 ustar 00 <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Frontend
*/
/**
* This class handles the Twitter card functionality.
*
* @deprecated 14.0
*
* @link https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards
*/
class WPSEO_Twitter {
/**
* Instance of this class.
*
* @var WPSEO_Twitter
*/
public static $instance;
/**
* Images.
*
* @var array
*/
public $shown_images = [];
/**
* Class constructor.
*
* @deprecated 14.0
* @codeCoverageIgnore
*/
public function __construct() {
_deprecated_function( __METHOD__, 'WPSEO 14.0' );
}
/**
* Outputs the Twitter Card code on singular pages.
*
* @deprecated 14.0
* @codeCoverageIgnore
*/
public function twitter() {
_deprecated_function( __METHOD__, 'WPSEO 14.0' );
}
/**
* Get the singleton instance of this class.
*
* @deprecated 14.0
* @codeCoverageIgnore
*
* @return object|null
*/
public static function get_instance() {
_deprecated_function( __METHOD__, 'WPSEO 14.0' );
return null;
}
}
class-opengraph-oembed.php 0000666 00000002146 15114012675 0011605 0 ustar 00 <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Frontend
*/
/**
* Class WPSEO_OpenGraph_OEmbed.
*
* @deprecated 14.0
*/
class WPSEO_OpenGraph_OEmbed implements WPSEO_WordPress_Integration {
/**
* {@inheritDoc}
*
* @codeCoverageIgnore
* @deprecated 14.0
*/
public function register_hooks() {
_deprecated_function( __METHOD__, 'WPSEO 14.0' );
}
/**
* Callback function to pass to the oEmbed's response data that will enable
* support for using the image and title set by the WordPress SEO plugin's fields. This
* address the concern where some social channels/subscribed use oEmebed data over OpenGraph data
* if both are present.
*
* @link https://developer.wordpress.org/reference/hooks/oembed_response_data/ for hook info.
*
* @deprecated 14.0
* @codeCoverageIgnore
*
* @param array $data The oEmbed data.
* @param WP_Post $post The current Post object.
*
* @return array An array of oEmbed data with modified values where appropriate.
*/
public function set_oembed_data( $data, $post ) {
_deprecated_function( __METHOD__, 'WPSEO 14.0' );
return $data;
}
}
class-frontend-page-type.php 0000666 00000003436 15114012675 0012104 0 ustar 00 <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Deprecated\Frontend
*/
/**
* Represents the classifier for determine the type of the currently opened page.
*
* @deprecated 14.9
* @codeCoverageIgnore
*/
class WPSEO_Frontend_Page_Type {
/**
* Checks if the currently opened page is a simple page.
*
* @deprecated 14.9
* @codeCoverageIgnore
*
* @return bool Whether the currently opened page is a simple page.
*/
public static function is_simple_page() {
_deprecated_function( __METHOD__, 'WPSEO 14.9' );
return false;
}
/**
* Returns the id of the currently opened page.
*
* @deprecated 14.9
* @codeCoverageIgnore
*
* @return int The id of the currently opened page.
*/
public static function get_simple_page_id() {
_deprecated_function( __METHOD__, 'WPSEO 14.9' );
return 0;
}
/**
* Determine whether this is the homepage and shows posts.
*
* @deprecated 14.9
* @codeCoverageIgnore
*
* @return bool Whether or not the current page is the homepage that displays posts.
*/
public static function is_home_posts_page() {
_deprecated_function( __METHOD__, 'WPSEO 14.9' );
return false;
}
/**
* Determine whether this is the static frontpage.
*
* @deprecated 14.9
* @codeCoverageIgnore
*
* @return bool Whether or not the current page is a static frontpage.
*/
public static function is_home_static_page() {
_deprecated_function( __METHOD__, 'WPSEO 14.9' );
return false;
}
/**
* Determine whether this is the statically set posts page, when it's not the frontpage.
*
* @deprecated 14.9
* @codeCoverageIgnore
*
* @return bool Whether or not it's a non-frontpage, statically set posts page.
*/
public static function is_posts_page() {
_deprecated_function( __METHOD__, 'WPSEO 14.9' );
return false;
}
}
.htaccess 0000666 00000000424 15114012675 0006350 0 ustar 00 <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>