PHP 클래스 The_SEO_Framework\Generate_Ldjson

Generates SEO data based on content
부터: 2.7.1
상속: extends Generate_Image
파일 보기 프로젝트 열기: sybrew/the-seo-framework

공개 메소드들

메소드 설명
enable_ld_json_breadcrumbs ( ) : boolean Determines if breadcrumbs scripts are enabled.
enable_ld_json_knowledge ( ) : boolean Determines if Knowledge Graph Script is enabled.
enable_ld_json_searchbox ( ) : boolean Determines if searchbox script is enabled.
enable_ld_json_sitename ( ) : boolean Determines if sitename script is enabled.
ld_json_breadcrumb_first ( string | null $item_type = null ) : string Return home page item for LD Json Breadcrumbs.
ld_json_breadcrumb_last ( string $item_type = null, integer $pos = null, integer $post_id = null ) : string Return current page item for LD Json Breadcrumbs.
ld_json_breadcrumbs ( ) : escaped Generate LD+Json breadcrumb helper.
ld_json_breadcrumbs_page ( ) : string Generate page breadcrumb.
ld_json_breadcrumbs_post ( ) : string Generate post breadcrumb.
ld_json_knowledge ( ) : string Return LD+Json Knowledge Graph helper.
ld_json_name ( ) : string Generate Site Name LD+Json script.
ld_json_search ( ) : escaped Generate LD+Json search helper.
make_breadcrumb ( array $item, boolean $comma = true ) : string Builds a breadcrumb.
render_ld_json_scripts ( ) : string Render the LD+Json scripts.
schema_blog_name ( ) : string Returns json encoded blogname.
schema_breadcrumblist ( ) : string Returns 'BreadcrumbList' json encoded type name.
schema_context ( ) : string Returns http://schema.org json encoded context URL.
schema_home_url ( ) : string Returns json encoded home url.
schema_image ( integer | string $id, boolean $singular = false ) Returns 'image' json encoded value.
schema_listitem ( ) : string Returns 'ListItem' json encoded type name.
schema_type ( ) : string Returns 'WebSite' json encoded type name.

보호된 메소드들

메소드 설명
__construct ( ) Constructor, load parent constructor
build_breadcrumb_trees ( $kittens, array $previous_tree = [] ) : trees Build breadcrumb trees.

메소드 상세

__construct() 보호된 메소드

Constructor, load parent constructor
protected __construct ( )

build_breadcrumb_trees() 보호된 메소드

Build breadcrumb trees.
부터: 2.6.0
protected build_breadcrumb_trees ( $kittens, array $previous_tree = [] ) : trees
$previous_tree array A previous set tree to compare to, if set.
리턴 trees in order.

enable_ld_json_breadcrumbs() 공개 메소드

Determines if breadcrumbs scripts are enabled.
부터: 2.6.0

enable_ld_json_knowledge() 공개 메소드

Determines if Knowledge Graph Script is enabled.
부터: 2.6.5

enable_ld_json_sitename() 공개 메소드

Determines if sitename script is enabled.
부터: 2.6.0

ld_json_breadcrumb_first() 공개 메소드

Return home page item for LD Json Breadcrumbs.
부터: 2.4.2
public ld_json_breadcrumb_first ( string | null $item_type = null ) : string
$item_type string | null the breadcrumb item type.
리턴 string Home Breadcrumb item

ld_json_breadcrumb_last() 공개 메소드

Return current page item for LD Json Breadcrumbs.
부터: 2.4.2
public ld_json_breadcrumb_last ( string $item_type = null, integer $pos = null, integer $post_id = null ) : string
$item_type string the breadcrumb item type.
$pos integer Last known position.
$post_id integer The current Post ID
리턴 string Last Breadcrumb item

ld_json_breadcrumbs() 공개 메소드

Generate LD+Json breadcrumb helper.
부터: 2.4.2
public ld_json_breadcrumbs ( ) : escaped
리턴 escaped LD+json search helper string.

ld_json_breadcrumbs_page() 공개 메소드

Generate page breadcrumb.
부터: 2.6.0
public ld_json_breadcrumbs_page ( ) : string
리턴 string $output The breadcrumb script.

ld_json_breadcrumbs_post() 공개 메소드

Generate post breadcrumb.
부터: 2.6.0
public ld_json_breadcrumbs_post ( ) : string
리턴 string $output The breadcrumb script.

ld_json_knowledge() 공개 메소드

Return LD+Json Knowledge Graph helper.
부터: 2.2.8
public ld_json_knowledge ( ) : string
리턴 string LD+json Knowledge Graph helper.

ld_json_name() 공개 메소드

Generate Site Name LD+Json script.
부터: 2.6.0
public ld_json_name ( ) : string
리턴 string The LD+JSon Site Name script.

make_breadcrumb() 공개 메소드

Builds a breadcrumb.
부터: 2.6.0
public make_breadcrumb ( array $item, boolean $comma = true ) : string
$item array : { 'type', 'pos', 'id', 'name' }
$comma boolean Whether to add a trailing comma.
리턴 string The LD+Json breadcrumb.

render_ld_json_scripts() 공개 메소드

Render the LD+Json scripts.
부터: 2.6.0
public render_ld_json_scripts ( ) : string
리턴 string The LD+Json scripts.

schema_blog_name() 공개 메소드

Returns json encoded blogname.
부터: 2.6.0
public schema_blog_name ( ) : string
리턴 string The json encoded blogname.

schema_breadcrumblist() 공개 메소드

Returns 'BreadcrumbList' json encoded type name.
부터: 2.6.0
public schema_breadcrumblist ( ) : string
리턴 string The json encoded 'BreadcrumbList'.

schema_context() 공개 메소드

Returns http://schema.org json encoded context URL.
부터: 2.6.0
public schema_context ( ) : string
리턴 string The json encoded context url.

schema_home_url() 공개 메소드

Returns json encoded home url.
부터: 2.6.0
public schema_home_url ( ) : string
리턴 string The json encoded home url.

schema_image() 공개 메소드

Returns 'image' json encoded value.
부터: 2.7.0
public schema_image ( integer | string $id, boolean $singular = false )
$id integer | string The page, post, product or term ID.
$singular boolean Whether the ID is singular.

schema_listitem() 공개 메소드

Returns 'ListItem' json encoded type name.
부터: 2.6.0
public schema_listitem ( ) : string
리턴 string The json encoded 'ListItem'.

schema_type() 공개 메소드

Returns 'WebSite' json encoded type name.
부터: 2.6.0
public schema_type ( ) : string
리턴 string The json encoded type name.