-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5395df4
commit 9fb3d8d
Showing
13 changed files
with
158 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-dom-ready', 'wp-html-entities', 'wp-polyfill', 'wp-url'), 'version' => 'bf5d02cb0417478c00a42da392e7b10c'); | ||
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-dom-ready', 'wp-html-entities', 'wp-polyfill', 'wp-url'), 'version' => '1e1714bd540a6b7173fa1233d14cbf9b'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '33495f2403a800db9b3f432240babfda'); | ||
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '32ba406fdea6988edc334ddea80f5bef'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Editorskit Plugin Images | ||
* | ||
* @package Editorskit | ||
*/ | ||
|
||
/** | ||
* Responsible for creating images links. | ||
*/ | ||
class Editorskit_Plugin_Images_Links { | ||
|
||
/** | ||
* The Plugin version. | ||
* | ||
* @var string $slug | ||
*/ | ||
private $slug; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() { | ||
$this->slug = 'editorskit'; | ||
$this->plugin_image_links(); | ||
} | ||
/** | ||
* Generates Plugins images. | ||
*/ | ||
public function plugin_image_links() { | ||
|
||
$template_banner = EDITORSKIT_PLUGIN_URL . 'images/templates.png'; | ||
$block_banner = EDITORSKIT_PLUGIN_URL . 'images/blocks.png'; | ||
|
||
// Localize data to pass variables to JavaScript. | ||
wp_localize_script( | ||
$this->slug . '-admin', | ||
'editorskitData', | ||
array( | ||
'templateBanner' => $template_banner, | ||
'blockBanner' => $block_banner, | ||
) | ||
); | ||
} | ||
}; | ||
|
||
new Editorskit_Plugin_Images_Links(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters