PHP Class Foundationpress_Protocol_Relative_Theme_Assets

ファイルを表示 Open project: olefredrik/foundationpress

Public Methods

Method Description
__construct ( ) Plugin URI: https://github.com/ryanjbonnell/Protocol-Relative-Theme-Assets Description: Transforms enqueued CSS and JavaScript theme URLs to use protocol-relative paths.
script_loader_src ( $src, $handle ) : string Transform Enqueued JavaScript URLs
style_loader_src ( $src, $handle ) : string Transform Enqueued Stylesheet URLs
stylesheet_directory_uri ( $stylesheet_dir_uri, $stylesheet, $theme_root_uri ) : string Transform Enqueued Theme Files
template_directory_uri ( $template_dir_uri, $template, $theme_root_uri ) : string Transform Enqueued Theme Files

Private Methods

Method Description
make_protocol_relative_url ( $url ) : string Convert

Method Details

__construct() public method

Version: 1.0 Author: Ryan J. Bonnell Author URI: https://github.com/ryanjbonnell Class Constructor
Since: 1.0
public __construct ( )

script_loader_src() public method

Transform Enqueued JavaScript URLs
Since: 1.0
public script_loader_src ( $src, $handle ) : string
return string

style_loader_src() public method

Transform Enqueued Stylesheet URLs
Since: 1.0
public style_loader_src ( $src, $handle ) : string
return string

stylesheet_directory_uri() public method

Transform Enqueued Theme Files
public stylesheet_directory_uri ( $stylesheet_dir_uri, $stylesheet, $theme_root_uri ) : string
return string

template_directory_uri() public method

Transform Enqueued Theme Files
public template_directory_uri ( $template_dir_uri, $template, $theme_root_uri ) : string
return string