Skip to content

Commit

Permalink
Merge pull request #5 from thisislawatts/version-1.2.0
Browse files Browse the repository at this point in the history
Version 1.2.0
  • Loading branch information
wladston committed Oct 31, 2016
2 parents 789a16b + fae5dd6 commit 44a5722
Show file tree
Hide file tree
Showing 4 changed files with 282 additions and 171 deletions.
43 changes: 26 additions & 17 deletions imgix.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
<?php
/*
Plugin Name: imgix
Description: A WordPress plugin to automatically use your existing (and future) WordPress images via <a href="http://www.imgix.com" target="_blank">imgix</a> for smaller, faster, and better looking images. <a href="https://github.com/wladston/imgix-wordpress" target="_blank">Learn more</a>.
Author: imgix
Author URI: http://www.imgix.com
Version: 1.1.0
*/
/**
* imgix
*
* @package imgix
* @author wladston
* @license BSD-2
*
* @wordpress-plugin
* Plugin Name: imgix
* PLugin URI: https://github.com/wladston/imgix-wordpress
* Description: A WordPress plugin to automatically use your existing (and future) WordPress images via <a href="http://www.imgix.com" target="_blank">imgix</a> for smaller, faster, and better looking images. <a href="https://github.com/wladston/imgix-wordpress" target="_blank">Learn more</a>.
* Version: 1.2.0
* Author: wladston
* Author URI: http://github.com/wladston
*/

// Variables
$imgix_options = get_option('imgix_settings');
$imgix_options = get_option( 'imgix_settings' );

include('includes/do-functions.php');
include('includes/options_page.php');
include( 'includes/do-functions.php' );
include( 'includes/options_page.php' );

// Settings
function imgix_plugin_admin_action_links($links, $file) {
function imgix_plugin_admin_action_links( $links, $file ) {
static $my_plugin;
if (!$my_plugin) {
$my_plugin = plugin_basename(__FILE__);

if ( ! $my_plugin ) {
$my_plugin = plugin_basename( __FILE__ );
}
if ($file == $my_plugin) {

if ( $file === $my_plugin ) {
$settings_link = '<a href="options-general.php?page=imgix-options">Settings</a>';
array_unshift($links, $settings_link);
array_unshift( $links, $settings_link );
}
return $links;
}

add_filter('plugin_action_links', 'imgix_plugin_admin_action_links', 10, 2);
?>
add_filter( 'plugin_action_links', 'imgix_plugin_admin_action_links', 10, 2 );
Loading

0 comments on commit 44a5722

Please sign in to comment.