\"$media_1pluginjquery_title\""; } function _1pluginjquery_modifyMediaTab($tabs) { return array( '1pluginjquery' => __('1pluginjquery photo', 'wp-media-1pluginjquery'), ); } function _1pluginjquery_media_upload() { wp_iframe('_1pluginjquery_media_upload_type'); } function _1pluginjquery_media_upload_type() { global $wpdb, $wp_query, $wp_locale, $type, $tab, $post_mime_types; add_filter('media_upload_tabs', '_1pluginjquery_modifyMediaTab'); ?>

  Please Wait...

1pluginjquery WordPress plugin
'; return $ret; } function _1pluginjquery_feed_plugin_callback($match) { $ret = ''; return $ret; } function _1pluginjquery_plugin($content) { $pluginjquery_excerpt_rt = get_site_option('1pluginjquery_excerpt_rt'); if ($pluginjquery_excerpt_rt == 'remove' && (is_search() || is_category() || is_archive() || is_home())) return preg_replace(PLUGINJQUERY_REGEXP, '', $content); else if ( is_feed() ) return (preg_replace_callback(PLUGINJQUERY_REGEXP, '_1pluginjquery_feed_plugin_callback', $content)); else return (preg_replace_callback(PLUGINJQUERY_REGEXP, '_1pluginjquery_async_plugin_callback', $content)); } function _1pluginjquery_plugin_rss($content) { return (preg_replace_callback(PLUGINJQUERY_REGEXP, '_1pluginjquery_feed_plugin_callback', $content)); } //add_shortcode('1pluginjquery', '1pluginjquery_plugin_shortcode'); add_filter('the_content', '_1pluginjquery_plugin'); add_filter('the_content_rss', '_1pluginjquery_plugin_rss'); add_filter('the_excerpt_rss', '_1pluginjquery_plugin_rss'); add_filter('comment_text', '_1pluginjquery_plugin'); add_action ( 'bp_get_activity_content_body', '_1pluginjquery_plugin' ); add_action ( 'bp_get_the_topic_post_content', '_1pluginjquery_plugin' ); add_action('wp_dashboard_setup', '_1pluginjquery_dashboard'); // Hook for adding admin menus // http://codex.wordpress.org/Adding_Administration_Menus add_action('admin_menu', '_1pluginjquery_mt_add_pages'); // register pluginjqueryWidget widget add_action('widgets_init', create_function('', 'return register_widget("pluginjqueryWidget");')); ///////////////////////////////// // dashboard widget ////////////////////////////////// function _1pluginjquery_dashboard() { if(function_exists('wp_add_dashboard_widget')) wp_add_dashboard_widget('1pluginjquery', '1pluginjquery', '_1pluginjquery_dashboard_content'); } function _1pluginjquery_dashboard_content() { echo ""; } // action function for above hook function _1pluginjquery_mt_add_pages() { // Add a new submenu under Options: // http://codex.wordpress.org/Roles_and_Capabilities add_options_page('1pluginjquery Options', '1pluginjquery Options', 'install_plugins', '1pluginjqueryoptions', '_1pluginjquery_mt_options_page'); if(function_exists('add_menu_page')) { add_menu_page('1pluginjquery', '1pluginjquery', 'edit_posts', __FILE__, '_1pluginjquery_mt_toplevel_page'); // kill the first menu item that is usually the identical to the menu itself add_submenu_page(__FILE__, '', '', 'edit_posts', __FILE__); add_submenu_page(__FILE__, 'Manage Galleries', 'Manage Galleries', 'edit_posts', 'sub-page', '_1pluginjquery_mt_sublevel_monitor'); // add_submenu_page(__FILE__, 'Media Library', 'Media Library', 'edit_posts', 'sub-page1', '_1pluginjquery_mt_sublevel_library'); // add_submenu_page(__FILE__, 'Create Gallery', 'Create Gallery', 'edit_posts', 'sub-page2', '_1pluginjquery_mt_sublevel_create'); // add_submenu_page(__FILE__, 'My Account', 'My Account', 'edit_posts', 'sub-page3', '_1pluginjquery_mt_sublevel_myaccount'); // add_submenu_page(__FILE__, 'Support Forum', 'Support Forum', 'edit_posts', 'sub-page4', '_1pluginjquery_mt_sublevel_forum'); } } function _1pluginjquery_isAdmin() { return !function_exists('is_site_admin') || is_site_admin() == true; } function _1pluginjquery_mt_options_page() { // if( is_site_admin() == false ) { // wp_die( __('You do not have permission to access this page.') ); // } if (strpos($_SERVER['QUERY_STRING'], 'hide_note=welcome_notice')) { update_site_option('1pluginjquery_welcome_notice', _1pluginjquery_plugin_ver()); echo ""; exit; } if (strpos($_SERVER['QUERY_STRING'], 'hide_note=premiumpress_notice')) { update_site_option('premiumpress_notice', _1pluginjquery_plugin_ver()); } $pluginjquery_userid = get_site_option('1pluginjquery_userid'); $pluginjquery_excerpt = get_site_option('1pluginjquery_excerpt'); if ( isset($_POST['submit']) ) { if (_1pluginjquery_isAdmin()) { if (isset($_POST['1pluginjquery_userid'])) { $pluginjquery_userid = $_POST['1pluginjquery_userid']; update_site_option('1pluginjquery_userid', $pluginjquery_userid); } } if (isset($_POST['embedRel'])) { $pluginjquery_excerpt = $_POST['embedRel']; update_site_option('1pluginjquery_excerpt', $pluginjquery_excerpt); } echo "

1pluginjquery settings updated.

\n"; echo ""; } $disp_excerpt2 = $pluginjquery_excerpt == 'clean' ? 'checked="checked"' : ''; $disp_excerpt3 = $pluginjquery_excerpt == 'full' ? 'checked="checked"' : ''; $disp_excerpt4 = $pluginjquery_excerpt == 'remove' ? 'checked="checked"' : ''; $disp_excerpt1 = $pluginjquery_excerpt == '' || $pluginjquery_excerpt == 'nothing' ? 'checked="checked"' : ''; ?>

1pluginjquery Configuration


1pluginjquery Settings

id="embedCustomization0" name="embedRel" value="nothing"/>
id="embedCustomization1" name="embedRel" value="clean"/>
id="embedCustomization3" name="embedRel" value="remove"/>
id="embedCustomization2" name="embedRel" value="full"/>
Note:
  1. Use this PHP code to add a gallery directly to your template :
        <?php echo _1pluginjquery_tag("GALLERY ID"); ?>
Test Manage"; } */ function _1pluginjquery_mt_toplevel_page() { echo ""; } function _1pluginjquery_mt_sublevel_create() { echo ""; } function _1pluginjquery_mt_sublevel_monitor() { echo ""; } function _1pluginjquery_mt_sublevel_library() { echo ""; } function _1pluginjquery_mt_sublevel_myaccount() { echo ""; } function _1pluginjquery_mt_sublevel_forum() { // echo ""; } if (!class_exists('pluginjqueryWidget')) { /** * pluginjqueryWidget Class */ class pluginjqueryWidget extends WP_Widget { /** constructor */ function pluginjqueryWidget() { parent::WP_Widget(false, $name = '1pluginjquery Gallery Widget'); } /** @see WP_Widget::widget */ function widget($args, $instance) { extract( $args ); if (strpos($instance['galleryid'], '1pluginjquery')) $gallery = _1pluginjquery_plugin($instance['galleryid']); else $gallery = _1pluginjquery_plugin('[1pjq '.$instance['galleryid'].']'); echo $gallery; } /** @see WP_Widget::update */ function update($new_instance, $old_instance) { return $new_instance; } /** @see WP_Widget::form */ function form($instance) { $galleryid = esc_attr($instance['galleryid']); ?>

', ']]>', $text); $text = preg_replace('@]*?>.*?@si', '', $text); $text = strip_tags($text, '<'.'p'.'>'); $excerpt_length = 80; $words = explode(' ', $text, $excerpt_length + 1); if (count($words)> $excerpt_length) { array_pop($words); array_push($words, '[...]'); $text = implode(' ', $words); } } return $text; } $pluginjquery_excerpt_rt = get_site_option('1pluginjquery_excerpt'); if ($pluginjquery_excerpt_rt == 'full' || $pluginjquery_excerpt_rt == 'clean') { remove_filter('get_the_excerpt', 'wp_trim_excerpt'); // remove_all_filters('get_the_excerpt'); add_filter('get_the_excerpt', '_1pluginjquery_improved_trim_excerpt'); } function _1pluginjquery_activation_notice() { ?>

Welcome to 1pluginjquery Rich Media Plugin - The best way to manage and display photo galleries and slideshows on your site.

On every post page (above the text box) you'll find this icon, click on it to start or use sidebar Widgets (Appearance menu).

"; } } if (get_site_option('1pluginjquery_welcome_notice') != _1pluginjquery_plugin_ver()) add_action( 'admin_notices', '_1pluginjquery_activation_notice' ); if (get_site_option('1pluginjquery_userid') == "") { $uni = uniqid(''); update_site_option('1pluginjquery_userid', $uni); } ?>