| @@ -6,12 +6,12 @@ | ||
| 6 | 6 | Author: Takayuki Miyoshi |
| 7 | 7 | Author URI: http://ideasilo.wordpress.com/ |
| 8 | 8 | Text Domain: bogo |
| 9 | 9 | Domain Path: /languages/ |
| 10 | -Version: 2.7 | |
| 10 | +Version: 2.6 | |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -define( 'BOGO_VERSION', '2.7' ); | |
| 13 | +define( 'BOGO_VERSION', '2.6' ); | |
| 14 | 14 | |
| 15 | 15 | define( 'BOGO_PLUGIN', __FILE__ ); |
| 16 | 16 | |
| 17 | 17 | define( 'BOGO_PLUGIN_BASENAME', plugin_basename( BOGO_PLUGIN ) ); |
| @@ -22,9 +22,8 @@ | ||
| 22 | 22 | |
| 23 | 23 | require_once BOGO_PLUGIN_DIR . '/includes/functions.php'; |
| 24 | 24 | require_once BOGO_PLUGIN_DIR . '/includes/rewrite.php'; |
| 25 | 25 | require_once BOGO_PLUGIN_DIR . '/includes/link-template.php'; |
| 26 | -require_once BOGO_PLUGIN_DIR . '/includes/language-switcher.php'; | |
| 27 | 26 | require_once BOGO_PLUGIN_DIR . '/includes/nav-menu.php'; |
| 28 | 27 | require_once BOGO_PLUGIN_DIR . '/includes/widgets.php'; |
| 29 | 28 | require_once BOGO_PLUGIN_DIR . '/includes/post.php'; |
| 30 | 29 | require_once BOGO_PLUGIN_DIR . '/includes/user.php'; |
| @@ -109,8 +108,10 @@ | ||
| 109 | 108 | $query_vars[] = 'lang'; |
| 110 | 109 | |
| 111 | 110 | return $query_vars; |
| 112 | 111 | } |
| 112 | + | |
| 113 | +add_shortcode( 'bogo', 'bogo_language_switcher' ); | |
| 113 | 114 | |
| 114 | 115 | add_action( 'wp_enqueue_scripts', 'bogo_enqueue_scripts' ); |
| 115 | 116 | |
| 116 | 117 | function bogo_enqueue_scripts() { |