-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathimgix.php
32 lines (28 loc) · 1.08 KB
/
imgix.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* WordPress plugin for imgix service.
*
* @package imgix
* @author wladston
* @license BSD-2
*
* @wordpress-plugin
*
* Plugin Name: Images via imgix
* Plugin URI: https://github.com/imgix-wordpress/images-via-imgix
* Description: A WordPress plugin to automatically use your existing (and future) WordPress images from <a href="http://www.imgix.com" target="_blank">imgix</a> for smaller, faster, and better looking images. <a href="https://github.com/imgix-wordpress/images-via-imgix" target="_blank">Learn more</a>.
* Version: 1.3.2
* Author: wladston
* Author URI: http://github.com/imgix-wordpress
*/
include( 'includes/compability.php' );
include( 'includes/class-images-via-imgix.php' );
include( 'includes/options-page.php' );
function imgix_plugin_admin_action_links( $links, $file ) {
if ( $file === plugin_basename( __FILE__ ) ) {
$settings_link = '<a href="options-general.php?page=imgix-options">Settings</a>';
array_unshift( $links, $settings_link );
}
return $links;
}
add_filter( 'plugin_action_links', 'imgix_plugin_admin_action_links', 10, 2 );