diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-11-30 16:22:57 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-11-30 16:22:57 -0500 |
commit | fbf8cf39f7ec35489332158cb2f73ea535279e5b (patch) | |
tree | b8025a3b964e60077492449c0e35bf675bcd6939 /plugins/jetpack/modules/tiled-gallery | |
parent | Update plugin openid to 3.4.2 (diff) | |
download | blogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.tar.gz blogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.tar.bz2 blogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.zip |
Update plugin jetpack to 4.4.1
Diffstat (limited to 'plugins/jetpack/modules/tiled-gallery')
-rw-r--r-- | plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php b/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php index 7171112d..e8641e48 100644 --- a/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php +++ b/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php @@ -42,7 +42,17 @@ abstract class Jetpack_Tiled_Gallery_Layout { extract( $context ); } - require dirname( __FILE__ ) . "/templates/$name.php"; + /** + * Filters the Tiled Gallery template path + * + * @module tiled-gallery + * @since 4.4.0 + * + * @param string $path Template path. + * @param string $path Template name. + * @param array $context Context array passed to the template. + */ + require apply_filters( 'jetpack_tiled_gallery_template', dirname( __FILE__ ) . "/templates/$name.php", $name, $context ) ; } private function partial( $name, $context = null ) { @@ -54,7 +64,17 @@ abstract class Jetpack_Tiled_Gallery_Layout { extract( $context ); } - require dirname( __FILE__ ) . "/templates/partials/$name.php"; + /** + * Filters the Tiled Gallery partial path + * + * @module tiled-gallery + * @since 4.4.0 + * + * @param string $path Partial path. + * @param string $path Partial name. + * @param array $context Context array passed to the partial. + */ + require apply_filters( 'jetpack_tiled_gallery_partial', dirname( __FILE__ ) . "/templates/partials/$name.php", $name, $context ) ; } protected function get_container_extra_data() { |