Changeset 835991
- Timestamp:
- 01/10/2014 09:21:56 AM (12 years ago)
- Location:
- slimjetpack/trunk
- Files:
-
- 11 added
- 5 deleted
- 9 edited
-
README.md (added)
-
_inc/devicepx-jetpack.js (added)
-
_inc/images/header-clouds-2x.png (modified) (previous)
-
_inc/images/header-clouds-small-2x.png (modified) (previous)
-
_inc/images/header-clouds-small.png (modified) (previous)
-
_inc/images/header-clouds.png (modified) (previous)
-
class.jetpack.php (modified) (4 diffs)
-
modules/custom-css/custom-css.php (modified) (3 diffs)
-
modules/custom-css/custom-css/css/ace.css (added)
-
modules/custom-css/custom-css/css/codemirror.css (deleted)
-
modules/custom-css/custom-css/css/rtl/codemirror-rtl.css (deleted)
-
modules/custom-css/custom-css/css/use-codemirror.css (deleted)
-
modules/custom-css/custom-css/js/ace/ace.js (added)
-
modules/custom-css/custom-css/js/ace/mode-css.js (added)
-
modules/custom-css/custom-css/js/ace/mode-less.js (added)
-
modules/custom-css/custom-css/js/ace/mode-scss.js (added)
-
modules/custom-css/custom-css/js/ace/readme.txt (added)
-
modules/custom-css/custom-css/js/ace/theme-textmate.js (added)
-
modules/custom-css/custom-css/js/ace/worker-css.js (added)
-
modules/custom-css/custom-css/js/codemirror.min.js (deleted)
-
modules/custom-css/custom-css/js/safecss-ace.js (added)
-
modules/custom-css/custom-css/js/use-codemirror.js (deleted)
-
modules/omnisearch/omnisearch-core.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
-
slimjetpack.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
slimjetpack/trunk/class.jetpack.php
r821676 r835991 283 283 284 284 add_action( 'wp_loaded', array( $this, 'register_assets' ) ); 285 add_action( 'wp_enqueue_scripts', array( $this, 'devicepx' ) );286 add_action( 'customize_controls_enqueue_scripts', array( $this, 'devicepx' ) );287 add_action( 'admin_enqueue_scripts', array( $this, 'devicepx' ) );285 //slim//add_action( 'wp_enqueue_scripts', array( $this, 'devicepx' ) ); 286 //slim//add_action( 'customize_controls_enqueue_scripts', array( $this, 'devicepx' ) ); 287 //slim//add_action( 'admin_enqueue_scripts', array( $this, 'devicepx' ) ); 288 288 289 289 add_filter( 'jetpack_require_lib_dir', array( $this, 'require_lib_dir' ) ); … … 379 379 * This improves the resolution of gravatars and wordpress.com uploads on hi-res and zoomed browsers. 380 380 */ 381 //slim// 381 382 function devicepx() { 382 wp_enqueue_script( 'devicepx', ( is_ssl() ? 'https' : 'http' ) . '://s0.wp.com/wp-content/js/devicepx-jetpack.js', array(), gmdate( 'oW' ), true );383 wp_enqueue_script( 'devicepx', plugins_url( '_inc/devicepx-jetpack.js', __FILE__ ), array(), gmdate( 'oW' ), true ); 383 384 } 384 385 … … 1676 1677 //slim// Move the admin menu to settings 1677 1678 $hook = add_submenu_page( 'options-general.php', $title, $title, 'read', 'jetpack', array( $this, 'admin_page' ), 'div' ); 1678 1679 1679 $debugger_hook = add_submenu_page( null, __( 'Jetpack Debugging Center', 'jetpack' ), '', 'manage_options', 'jetpack-debugger', array( $this, 'debugger_page' ) ); 1680 1680 add_action( "admin_head-$debugger_hook", array( 'Jetpack_Debugger', 'jetpack_debug_admin_head' ) ); … … 1697 1697 add_action( "admin_print_scripts-$hook", array( $this, 'admin_scripts' ) ); 1698 1698 1699 if ( function_exists('akismet_conf') ) { 1700 function akismet_reload_menu() { 1701 add_submenu_page('options-general.php', __('Akismet'), __('Akismet'), 'manage_options', 'akismet-key-config', 'akismet_conf'); 1702 add_submenu_page('edit-comments.php', __('Akismet Stats'), __('Akismet Stats'), 'manage_options', 'akismet-stats-display', 'akismet_stats_display'); 1703 } 1704 add_action( 'jetpack_admin_menu', 'akismet_reload_menu' ); 1705 } 1706 1699 1707 do_action( 'jetpack_admin_menu', $hook ); 1700 1708 } -
slimjetpack/trunk/modules/custom-css/custom-css.php
r821676 r835991 605 605 $hook = add_theme_page( $title, $title, 'edit_theme_options', 'editcss', array( 'Jetpack_Custom_CSS', 'admin' ) ); 606 606 607 add_action( "admin_head-$hook", array( 'Jetpack_Custom_CSS', 'admin_head' ) ); 607 608 add_action( "load-revision.php", array( 'Jetpack_Custom_CSS', 'prettify_post_revisions' ) ); 608 609 add_action( "load-$hook", array( 'Jetpack_Custom_CSS', 'update_title' ) ); … … 647 648 648 649 if ( defined( 'SAFECSS_USE_ACE' ) && SAFECSS_USE_ACE ) { 649 wp_register_style( 'jetpack-css-codemirror', plugins_url( 'custom-css/css/codemirror.css', __FILE__ ), array(), '20120905' ); 650 wp_enqueue_style( 'jetpack-css-use-codemirror', plugins_url( 'custom-css/css/use-codemirror.css', __FILE__ ), array( 'jetpack-css-codemirror' ), '20120905' ); 651 652 wp_register_script( 'jetpack-css-codemirror', plugins_url( 'custom-css/js/codemirror.min.js', __FILE__ ), array(), '3.16', true ); 653 wp_enqueue_script( 'jetpack-css-use-codemirror', plugins_url( 'custom-css/js/use-codemirror.js', __FILE__ ), array( 'jquery', 'underscore', 'jetpack-css-codemirror' ), '20131009', true ); 650 $url = plugins_url( 'custom-css/js/', __FILE__ ); 651 652 wp_enqueue_script( 'jquery.spin' ); 653 wp_enqueue_script( 'safecss-ace', $url . 'ace/ace.js', array(), '20130213', true ); 654 wp_enqueue_script( 'safecss-ace-css', $url . 'ace/mode-css.js', array( 'safecss-ace' ), '20130213', true ); 655 wp_enqueue_script( 'safecss-ace-less', $url . 'ace/mode-less.js', array( 'safecss-ace' ), '20130213', true ); 656 wp_enqueue_script( 'safecss-ace-scss', $url . 'ace/mode-scss.js', array( 'safecss-ace' ), '20130213', true ); 657 wp_enqueue_script( 'safecss-ace-use', $url . 'safecss-ace.js', array( 'jquery', 'safecss-ace-css' ), '20130213', true ); 658 659 wp_enqueue_style( 'custom-css-ace', plugins_url( 'custom-css/css/ace.css', __FILE__ ) ); 660 } 661 } 662 663 static function admin_head() { 664 if ( defined( 'SAFECSS_USE_ACE' ) && SAFECSS_USE_ACE ) { 665 ?> 666 <script type="text/javascript"> 667 /*<![CDATA[*/ 668 var SAFECSS_USE_ACE = true; 669 var safecssAceSrcPath = <?php echo json_encode( parse_url( plugins_url( 'custom-css/js/ace/', __FILE__ ), PHP_URL_PATH ) ); ?>; 670 /*]]>*/ 671 </script> 672 <?php 654 673 } 655 674 } … … 685 704 <div id="post-body-content"> 686 705 <div class="postarea"> 687 <textarea id="safecss" name="safecss"<?php if ( SAFECSS_USE_ACE ) echo ' class="hide-if-js"'; ?>><?php echo esc_textarea( Jetpack_Custom_CSS::get_css() ); ?></textarea> 688 <div class="clear"></div> 706 <?php if ( defined( 'SAFECSS_USE_ACE' ) && SAFECSS_USE_ACE ) { ?> 707 <div id="safecss-container"> 708 <div id="safecss-ace"></div> 709 </div> 710 <script type="text/javascript"> 711 jQuery.fn.spin && jQuery("#safecss-container").spin( 'large' ); 712 </script> 713 <textarea id="safecss" name="safecss" class="hide-if-js"><?php echo esc_textarea( Jetpack_Custom_CSS::get_css() ); ?></textarea> 714 <div class="clear"></div> 715 <?php } else { ?> 716 <p><textarea id="safecss" name="safecss"><?php echo str_replace('</textarea>', '</textarea>', Jetpack_Custom_CSS::get_css()); ?></textarea></p> 717 <?php } ?> 689 718 </div> 690 719 </div> -
slimjetpack/trunk/modules/omnisearch/omnisearch-core.php
r773855 r835991 12 12 add_action( 'wp_loaded', array( $this, 'wp_loaded' ) ); 13 13 add_action( 'admin_init', array( $this, 'add_providers' ) ); 14 add_action( 'jetpack_admin_menu', array( $this, 'jetpack_admin_menu' ) );14 //slim//add_action( 'jetpack_admin_menu', array( $this, 'jetpack_admin_menu' ) ); 15 15 add_action( 'admin_menu', array( $this, 'admin_menu' ), 20 ); 16 16 if( ! jetpack_is_mobile() ) { -
slimjetpack/trunk/readme.txt
r821676 r835991 4 4 Requires at least: 3.6 5 5 Tested up to: 3.8 6 Stable tag: 2.7 6 Stable tag: 2.7.0.1 7 7 8 8 Slim version of Jetpack unlinked from WordPress.com :) … … 22 22 SlimJetpack 2.1.1.x is corresponding to Jetpack 2.1.1 and the x is the bugfix mark. 23 23 24 If you need the wordpress.com likes/stats, subscription and push notification services etc., please deactivate Slim Jetpack 25 and use the original Jetpack instead. 24 If you find any bug, please submit a ticket here: https://github.com/HowardMei/slimjetpack/issues 25 Or just fork the repository and send me pull requests ;) 26 27 Please deactivate Slim Jetpack and use the original Jetpack instead if you need the wordpress.com likes/stats, 28 subscription and push notification services etc., 26 29 27 30 ==Modules Included== … … 94 97 http://plugins.svn.wordpress.org/slimjetpack/assets/SlimJetpack.png 95 98 96 == Weight-loss Diary == 99 == Changelog == 100 101 = 2.7.0.1 = 102 * Change custom-css editor back to ACE for better CSS Hint 103 * Completely remove photon to avoid confusion 104 * Remove the devicepx js calling back to s0.wp.com 105 * Fix the Akismet & Omnisearch menu dependency issue 97 106 98 107 = 2.7 = … … 191 200 * Bug Fix: Shortcodes: improvements to Archives, Google+, Presentations, Vine and Youtube. 192 201 * Bug Fix: Tiled Galleries: improve display of panoramic images and fix errors when an image is not uploaded properly. 193 194 -
slimjetpack/trunk/slimjetpack.php
r821676 r835991 4 4 * Plugin Name: Slim Jetpack 5 5 * Plugin URI: http://wordpress.org/extend/plugins/slimjetpack/ 6 * Description: Plug-n-pay Slim Jetpack totally unlinked with WordPress.Com APIwith less obtrusive admin page.6 * Description: Plug-n-pay Slim Jetpack totally unlinked from WordPress.Com with less obtrusive admin page. 7 7 * Author: WingerSpeed 8 * Version: 2.7 9 * Author URI: http ://whitelabelecms.com8 * Version: 2.7.0.1 9 * Author URI: https://github.com/HowardMei/slimjetpack 10 10 * License: GPL2+ 11 11 * Text Domain: jetpack … … 48 48 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-debugger.php' ); 49 49 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-heartbeat.php' ); 50 require_once( JETPACK__PLUGIN_DIR . 'class.photon.php' );51 require_once( JETPACK__PLUGIN_DIR . 'functions.photon.php' );50 //slim//require_once( JETPACK__PLUGIN_DIR . 'class.photon.php' ); 51 //slim//require_once( JETPACK__PLUGIN_DIR . 'functions.photon.php' ); 52 52 require_once( JETPACK__PLUGIN_DIR . 'functions.compat.php' ); 53 53 require_once( JETPACK__PLUGIN_DIR . 'functions.gallery.php' ); … … 71 71 * See: http://jetpack.me/2013/07/11/photon-and-themes/ 72 72 */ 73 /* 74 //slim// 73 75 if ( Jetpack::init()->is_module_active( 'photon' ) ) { 74 76 add_filter( 'jetpack_photon_url', 'jetpack_photon_url', 10, 3 ); … … 76 78 remove_filter( 'jetpack_photon_url', 'jetpack_photon_url', 10, 3 ); 77 79 } 78 80 */ 79 81 /* 80 82 if ( is_admin() && ! Jetpack::check_identity_crisis() ) {
Note: See TracChangeset
for help on using the changeset viewer.