Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Commit

Permalink
switched page and site method order
Browse files Browse the repository at this point in the history
getkirby/kirby#600
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Aug 27, 2017
1 parent f41d46d commit e5b8b26
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions kirby-instagram-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,22 @@ function instagramapi($user, $endpoint, $snippet = '', $params = []) {
)
);

/****************************************
PAGE METHOD
***************************************/

$kirby->set('page::method', 'instagramapi',
function(
$page,
$userOrName,
$endpoint,
$snippet = '',
$params = []
) {

return instagramapi($userOrName, $endpoint, $snippet, $params);
});

/****************************************
SITE METHOD
***************************************/
Expand Down Expand Up @@ -529,22 +545,6 @@ function(
return $cachedImage;
});

/****************************************
PAGE METHOD
***************************************/

$kirby->set('page::method', 'instagramapi',
function(
$page,
$userOrName,
$endpoint,
$snippet = '',
$params = []
) {

return instagramapi($userOrName, $endpoint, $snippet, $params);
});

/****************************************
KIRBY TAG
***************************************/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kirby-instagram-api",
"description": "Kirby CMS User-Field, Tag and Page Method to access Instagram API Endpoints. This is a boilerplate to create your own Instagram embeds.",
"version": "0.9.2",
"version": "0.9.3",
"type": "kirby-plugin",
"license": "Commercial",
"author": "Bruno Meilick"
Expand Down

0 comments on commit e5b8b26

Please sign in to comment.