Return-path: <> Envelope-to: k2hubin@cpanel01002.gigatux.com Delivery-date: Thu, 15 Dec 2011 23:03:18 -0500 Received: from mailnull by cpanel01002.gigatux.com with local (Exim 4.69) id 1RbP0w-00034w-Ac for k2hubin@cpanel01002.gigatux.com; Thu, 15 Dec 2011 23:03:18 -0500 X-Failed-Recipients: admin@yourdomain.com Auto-Submitted: auto-replied From: Mail Delivery System To: k2hubin@cpanel01002.gigatux.com Subject: Mail delivery failed: returning message to sender Messag************************* Copyright (C) 2010 Rhythmic This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 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, see . **************************************************************************/ function rvt_url( $path = '' ) { global $wp_version; if ( version_compare( $wp_version, '3.0', '<' ) ) { // Using WordPress 3.0 $folder = dirname( plugin_basename( __FILE__ ) ); if ( '.' != $folder ) $path = path_join( ltrim( $folder, '/' ), $path ); return plugins_url( $path ); } return plugins_url( $path, __FILE__ ); } //on activation, your My VideoTag options will be populated. Here a single option is used which is actually an array of multiple options function activate_rvt() { $rvt_opts1 = get_option('rvt_options'); $rvt_opts2 =array('width' => '497', 'height' => '310', 'style' => 'background: #F0F8FF; border: 1px solid #ADDAE6; margin-bottom: 10px; padding: 5px;-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; ',); $input['comments'] = ( $input['comments'] == 1 ? 1 : 0 ); if ($rvt_opts1) { $rvt = $rvt_opts1 + $rvt_opts2; update_option('rvt_options',$rvt); } else { $rvt_opts1 = array(); $rvt = $rvt_opts1 + $rvt_opts2; add_option('rvt_options',$rvt); } } register_activation_hook( __FILE__, 'activate_rvt' ); global $rvt; $rvt = get_option('rvt_options'); define("rvt_VER","1.1.3",false); define('rvt_URLPATH', trailingslashit( WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) ) ); require_once(dirname (__FILE__) . '/admin/rvt-settings.php'); require_once(dirname (__FILE__) . '/lib/Auch.php'); //External CSS in the header function rvt_scripts_styles() { global $rvt; wp_enqueue_style( 'rvt_css_file', rvt_url( 'css/rvt-styles.css' ), false, rvt_VER, 'all'); } add_action( 'init', 'rvt_scripts_styles' ); // function for adding settings page to wp-admin function rvt_settings() { // Add a new submenu under Options: //add_options_page('Settings', 'Rhythmic VideoTags', 9, basename(__FILE__), 'rvt_settings_page'); //add_submenu_page('options-general.php', __('Rhythmic VideoTags'), __('Rhythmic VideoTags'), 'manage_options', 'my-videotag-config', 'rvt_settings_page'); add_menu_page('Rhythmic VideoTags', 'Rhythmic VideoTags', 8, 'rhythmic-videotag-configs', 'rvt_settings_page', rvt_url('images/video_small.png')); } //function rvt_settings_page() { rvt_settings();} // Hook for adding admin menus if ( is_admin() ){ // admin actions add_action('admin_menu', 'rvt_settings'); add_action( 'admin_init', 'register_rvt_settings' ); } function register_rvt_settings() { // whitelist options register_setting( 'rvt-group', 'rvt_options' ); } // Shortcode ******************* function myvidetaghortcodeyoutube($atts, $content=null, $code="") { $rvt_opts1 = get_option('rvt_options'); $video_url = htmlspecialchars_decode( substr( $atts[0], 1 ) ); $video_url = str_replace( "/watch?v=", "/v/", $video_url ); $return .= "

"; return $return; } add_shortcode('rmyoutube' , 'myvidetaghortcodeyoutube' ); // Shortcode ******************* function myvidetaghortcodevimeo($atts, $content=null, $code="") { $rvt_opts1 = get_option('rvt_options'); $video_url = htmlspecialchars_decode( $atts[0] ); $video_url = str_replace( "http://vimeo.com/", "http://www.vimeo.com/moogaloop.swf?clip_id=", $video_url )."&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=0&show_portrait=0&color=01AAEA"; $return .= "
"; return $return; } add_shortcode('rmvimeo' , 'myvidetaghortcodevimeo' ); if($rvt['comments']) { function init_common_shortcodes() { add_shortcode('rmyoutube' , 'myvidetaghortcodeyoutube'); add_shortcode('rmvimeo' , 'myvidetaghortcodevimeo'); } function video_comment_shortcodes() { remove_all_shortcodes(); init_common_shortcodes(); add_filter('comment_text', 'do_shortcode'); } init_common_shortcodes(); add_filter('comments_template', 'video_comment_shortcodes'); } function rvt_add_media_button(){ global $post; $plugins = get_option('active_plugins'); $button_tip = 'Insert Rhythmic Videotags'; $wizard_url = 'media-upload.php?post_id='.$post->ID.'&type=rvt'; $button_src = rvt_url('/images/icon.jpg'); echo '' . $button_tip . ''; } add_action('media_buttons', 'rvt_add_media_button', 30); add_action('media_upload_rvt', 'rvt_wizard'); function rvt_wizard() { //do the magic here wp_enqueue_style('media'); wp_iframe('rvt_wizard_function',''); } function rvt_wizard_function($selected_attachment) { include_once (dirname (__FILE__) . '/lib/wizard.php'); } ?>
Parse error: syntax error, unexpected 'body' (T_STRING), expecting ']' in /home/ivan/public_html/blog/wp-content/plugins/sexybookmarks/utilities.php on line 431