Index: trunk/tools/wp-photocommons/inc/class-photocommons.php |
— | — | @@ -2,13 +2,16 @@ |
3 | 3 | class Photocommons { |
4 | 4 | // TODO: ugly |
5 | 5 | const PLUGIN_PATH = "/wp-content/plugins/wp-photocommons/"; |
6 | | - |
| 6 | + |
7 | 7 | function __construct() { |
8 | 8 | if (is_admin()) { |
9 | 9 | wp_enqueue_script('jquery'); |
10 | 10 | wp_enqueue_script('jquery-ui-core'); |
11 | | - wp_enqueue_script('jquery-ui-dialog'); |
12 | | - |
| 11 | + wp_enqueue_script('jquery-ui-dialog'); |
| 12 | + |
| 13 | + wp_register_style('jquid_jquery_blog_stylesheet', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/sunny/jquery-ui.css'); |
| 14 | + wp_enqueue_style('jquid_jquery_blog_stylesheet'); |
| 15 | + |
13 | 16 | wp_register_script('admin', self::PLUGIN_PATH . 'js/admin.js'); |
14 | 17 | wp_enqueue_script('admin'); |
15 | 18 | } |
Index: trunk/tools/wp-photocommons/img/favicon.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Index: trunk/tools/wp-photocommons/img/button.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/tools/wp-photocommons/img/button.png |
___________________________________________________________________ |
Added: svn:mime-type |
16 | 19 | + image/png |
Index: trunk/tools/wp-photocommons/js/admin.js |
— | — | @@ -3,8 +3,8 @@ |
4 | 4 | |
5 | 5 | function addButtons() { |
6 | 6 | $("#media-buttons").append(''.concat( |
7 | | - '<a id="photocommons-add" title="Add a free image">', |
8 | | - '<img src="' + PATH + '/img/favicon.png" />', |
| 7 | + '<a id="photocommons-add" title="Add a free image" style="padding-left:4px;">', |
| 8 | + '<img src="' + PATH + '/img/button.png"/>', |
9 | 9 | '</a>' |
10 | 10 | )); |
11 | 11 | |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | e.preventDefault(); |
14 | 14 | |
15 | 15 | $("body").prepend('<div id="photocommons-dialog"></div>'); |
16 | | - $("#photocommons-dialog").load(PATH + "/test.php", function(html) { |
| 16 | + $("#photocommons-dialog").load(PATH + "/search.php", function(html) { |
17 | 17 | var $self = $("#photocommons-dialog"); |
18 | 18 | $self.dialog(); |
19 | 19 | $self.find("button").click(function() { |