Settings'; array_unshift( $links, $settings_link ); return $links; } $plugin = plugin_basename(__FILE__); add_filter("plugin_action_links_$plugin", 'actus_anit_settings_link' ); /** * Plugin Initialization. * * Reads the options from database * * @global array $actus_anit_options Array of plugin options. * @global array $actus_anit_default_terms Array of default terms. */ function actus_anit_init() { global $actus_anit_options, $actus_anit_terms; $actus_anit_terms = get_terms( array( 'taxonomy' => 'post_tag', 'get' => 'all', ) ); if ( $actus_anit_terms == null ) { $actus_anit_terms = array( 0 => array( 'name' => 'ACTUS anima' ), 1 => array( 'name' => 'animated tags' ), 2 => array( 'name' => 'ajax' ), 3 => array( 'name' => 'wordpress' ), 4 => array( 'name' => 'jquery' ), 5 => array( 'name' => 'algorithmic animation' ), 6 => array( 'name' => 'post tags' ), 7 => array( 'name' => 'actus' ), 8 => array( 'name' => 'css' ), 9 => array( 'name' => 'php' ), 10 => array( 'name' => 'plugin' ), ); } $actus_anit_options = array( 'height' => get_option( 'ACTUS_ANIT_height' ), 'density' => get_option( 'ACTUS_ANIT_density' ), 'min_font_size' => get_option( 'ACTUS_ANIT_min_font_size' ), 'max_font_size' => get_option( 'ACTUS_ANIT_max_font_size' ), 'background' => get_option( 'ACTUS_ANIT_background' ), 'plugin_dir' => ACTUS_ANIT_URL, 'plugin_version' => ACTUS_ANIT_VERSION, ); update_option( 'ACTUS_ANIT_VERSION', ACTUS_ANIT_VERSION ); } // The Main Plugin Code require_once ACTUS_ANIT_DIR . '/includes/actus-anit-main.php'; // INITIALIZE add_action( 'wp_enqueue_scripts', 'actus_anit_depedencies' ); add_action( 'init', 'actus_anit_init' ); add_action( 'init', 'actus_anit_shortcodes_init' ); ?>