Skip to content

Commit

Permalink
add version number, not really 1.0 but have to start somewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Feb 10, 2012
1 parent c30c4e9 commit 6b60b61
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 55 deletions.
33 changes: 10 additions & 23 deletions lib/functions/facebook.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
<?php
/*
Plugin Name: Mfields Open Graph Meta Tags
Description: Displays meta information for the open graph protocol on various parts of a WordPress installation.
Version: 0.1
Author: Michael Fields
Author URI: http://wordpress.mfields.org/
License: GPLv2 or later
Copyright 2011 Michael Fields michael@mfields.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 or later
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* Facebook Open Graph Tags
* @link https://github.com/mfields/mfields-opengraph-meta-tags
*
* @package Core_Functionality
* @since 1.0
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/

Mfields_Open_Graph_Meta_Tags::init();

Expand Down
12 changes: 10 additions & 2 deletions lib/functions/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*
* This file contains any general functions
*
* @package BE_Genesis_Child
* @package Core_Functionality
* @since 1.0
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
Expand All @@ -13,6 +14,8 @@
add_filter( 'http_request_args', 'be_core_functionality_hidden', 5, 2 );
/**
* Don't Update Plugin
* @since 1.0
*
* This prevents you being prompted to update if there's a public plugin
* with the same name.
*
Expand All @@ -34,9 +37,10 @@ function be_core_functionality_hidden( $r, $url ) {
}


add_action('admin_menu', 'be_remove_menus');
add_action( 'admin_menu', 'be_remove_menus' );
/**
* Remove Menu Items
* @since 1.0
*
* Remove unused menu items by adding them to the array.
* See the commented list of menu items for reference.
Expand All @@ -58,6 +62,7 @@ function be_remove_menus () {
add_action( 'wp_before_admin_bar_render', 'be_admin_bar_items' );
/**
* Customize Admin Bar Items
* @since 1.0
* @link http://wp-snippets.com/addremove-wp-admin-bar-links/
*/
function be_admin_bar_items() {
Expand All @@ -70,6 +75,7 @@ function be_admin_bar_items() {
//add_filter( 'menu_order', 'be_custom_menu_order' );
/**
* Customize Menu Order
* @since 1.0
*
* @param array $menu_ord. Current order.
* @return array $menu_ord. New order.
Expand All @@ -91,6 +97,8 @@ function be_custom_menu_order( $menu_ord ) {
//add_filter( 'mfields_open_graph_meta_tags_default_image_id', 'be_default_facebook_image' );
/**
* Default Facebook Image
* @since 1.0
*
* See /lib/functions/facebook.php
* @link https://developers.facebook.com/tools/debug
*
Expand Down
7 changes: 4 additions & 3 deletions lib/functions/metaboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*
* This file registers any custom metaboxes
*
* @package BE_Genesis_Child
* @package Core_Functionality
* @since 1.0
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
Expand All @@ -13,9 +14,8 @@
add_filter( 'cmb_meta_boxes' , 'be_metaboxes' );
/**
* Create Metaboxes
*
* @since 1.0
* @link http://www.billerickson.net/wordpress-metaboxes/
*
*/

function be_metaboxes( $meta_boxes ) {
Expand Down Expand Up @@ -43,6 +43,7 @@ function be_metaboxes( $meta_boxes ) {
add_action( 'init', 'be_initialize_cmb_meta_boxes', 9999 );
/**
* Initialize Metabox Class
* @since 1.0
* see /lib/metabox/example-functions.php for more information
*
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/functions/post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*
* This file registers any custom post types
*
* @package BE_Genesis_Child
* @package Core_Functionality
* @since 1.0
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
Expand All @@ -13,9 +14,8 @@
add_action( 'init', 'be_register_rotator_post_type' );
/**
* Create Rotator post type
*
* @since 1.0
* @link http://codex.wordpress.org/Function_Reference/register_post_type
*
*/

function be_register_rotator_post_type() {
Expand Down
26 changes: 15 additions & 11 deletions lib/functions/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,50 @@
*
* This file creates all the shortcodes used throughout the site.
*
* @package BE_Genesis_Child
* @package Core_Functionality
* @since 1.0
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/


// Use shortcodes in widgets
add_filter('widget_text', 'do_shortcode');
add_filter( 'widget_text', 'do_shortcode' );


add_shortcode('url','be_url_shortcode');
add_shortcode( 'url','be_url_shortcode' );
/**
* URL Shortcode
* @since 1.0
*
* @param null
* @return string Site URL
*/
function be_url_shortcode($atts) {
return get_bloginfo('url');
function be_url_shortcode( $atts ) {
return get_bloginfo( 'url' );
}

add_shortcode('wpurl','be_wpurl_shortcode');
add_shortcode( 'wpurl','be_wpurl_shortcode' );
/**
* WP URL Shortcode
* @since 1.0
*
* @param null
* @return string WordPress URL
*/
function be_wpurl_shortcode($atts) {
return get_bloginfo('wpurl');
function be_wpurl_shortcode( $atts ) {
return get_bloginfo( 'wpurl' );
}

add_shortcode('child', 'be_child_shortcode');
add_shortcode( 'child', 'be_child_shortcode' );
/**
* Child Shortcode
* @since 1.0
*
* @param null
* @return string Child Theme URL
*/
function be_child_shortcode($atts) {
return get_bloginfo('stylesheet_directory');
function be_child_shortcode( $atts ) {
return get_bloginfo( 'stylesheet_directory' );
}
6 changes: 3 additions & 3 deletions lib/functions/taxonomies.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*
* This file registers any custom taxonomies
*
* @package BE_Genesis_Child
* @package Core_Functionality
* @since 1.0
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
Expand All @@ -14,9 +15,8 @@
add_action( 'init', 'be_register_location_taxonomy' );
/**
* Create Location Taxonomy
*
* @since 1.0
* @link http://codex.wordpress.org/Function_Reference/register_taxonomy
*
*/

function be_register_location_taxonomy() {
Expand Down
6 changes: 2 additions & 4 deletions lib/widgets/widget-social.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
/**
* Social Widget
*
* Displays links to Facebook, Twitter and Youtube
* @link http://codex.wordpress.org/Widgets_API#Developing_Widgets
*
* @package BE_Genesis_Child
* @package Core_Functionality
* @since 1.0
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
Expand Down
6 changes: 0 additions & 6 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @package BE_Genesis_Child
* @version 1.0
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @link http://www.billerickson.net/shortcode-to-display-posts/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

// Plugin Directory
Expand Down

0 comments on commit 6b60b61

Please sign in to comment.