Initial commit

This commit is contained in:
Ben Goldsworthy 2017-01-12 23:10:07 +00:00
commit 28e6ddf404
1083 changed files with 191734 additions and 0 deletions

View file

@ -0,0 +1,405 @@
<div class="page-content landing">
<?php Jetpack::init()->load_view( 'admin/network-activated-notice.php' ); ?>
<?php
/**
* Fires when a notice is displayed in the Jetpack menu.
*
* @since 3.0.0
*/
do_action( 'jetpack_notices' );
?>
<?php if ( $data['is_connected'] ) : ?>
<?php if ( $data['show_jumpstart'] && 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) && current_user_can( 'jetpack_manage_modules' ) && ! Jetpack::is_development_mode() ) : ?>
<div id="jump-start-success"></div>
<div id="jump-start-area" class="jump-start-area j-row">
<h1 title="<?php esc_attr_e( 'Jump Start your site by activating these components', 'jetpack' ); ?>" class="jstart"><?php _e( 'Jump Start your site', 'jetpack' ); ?></h1>
<div class="jumpstart-desc j-col j-sm-12 j-md-12">
<div class="jumpstart-message">
<p id="jumpstart-paragraph-before"><?php
if ( count( $data['jumpstart_list'] ) > 1 ) {
$last_item = array_pop( $data['jumpstart_list'] );
/* translators: %1$s is a comma-separated list of module names or a single module name, %2$s is the last item in the module list */
echo sprintf( __( 'To quickly boost performance, security, and engagement we recommend activating <strong>%1$s and %2$s</strong>. Click <strong>Jump Start</strong> to activate these features or <a class="pointer jp-config-list-btn">learn more</a>', 'jetpack' ), implode( $data['jumpstart_list'], ', ' ), $last_item );
} else {
/* translators: %s is a module name */
echo sprintf( __( 'To quickly boost performance, security, and engagement we recommend activating <strong>%s</strong>. Click <strong>Jump Start</strong> to activate this feature or <a class="pointer jp-config-list-btn">learn more</a>', 'jetpack' ), $data['jumpstart_list'][0] );
}
?></p>
</div><!-- /.jumpstart-message -->
</div>
<div class="jumpstart-message hide">
<h1 title="<?php esc_attr_e( 'Your site has been sucessfully Jump Started.', 'jetpack' ); ?>" class="success"><?php _e( 'Success! You\'ve jump started your site.', 'jetpack' ); ?></h1>
<p><?php echo sprintf( __( 'Check out other recommended features below, or go to the <a href="%s">settings</a> page to customize your Jetpack experience.', 'jetpack' ), admin_url( 'admin.php?page=jetpack_modules' ) ); ?></p>
</div><!-- /.jumpstart-message -->
<div id="jumpstart-cta" class="j-col j-sm-12 j-md-12 j-lrg-4">
<img class="jumpstart-spinner" style="margin: 50px auto 14px; display: none;" width="17" height="17" src="<?php echo esc_url( includes_url( 'images/spinner-2x.gif' ) ); ?>" alt="Loading ..." />
<a id="jump-start" class="button-primary" ><?php esc_html_e( 'Jump Start', 'jetpack' ); ?></a>
<a class="dismiss-jumpstart pointer" ><?php esc_html_e( 'Skip', 'jetpack' ); ?></a>
</div>
<div id="jump-start-module-area">
<div id="jp-config-list" class="clear j-row hide">
<a class="pointer jp-config-list-btn close" ><span class="dashicons dashicons-no"></span></a>
</div>
</div>
</div>
<?php endif; ?>
<?php if ( $data['is_connected'] && ! $data['is_user_connected'] && current_user_can( 'jetpack_connect_user' ) ) : ?>
<div class="link-button" style="width: 100%; text-align: center; margin-top: 15px;">
<a href="<?php echo Jetpack::init()->build_connect_url() ?>" class="download-jetpack"><?php esc_html_e( 'Link your account to WordPress.com', 'jetpack' ); ?></a>
</div>
<?php endif; ?>
<div class="nux-intro jp-content" style="display: none;">
<h1 title="<?php esc_attr_e( 'Improve your site with Jetpack', 'jetpack' ); ?>"><?php _e( 'Improve your site with Jetpack', 'jetpack' ); ?></h1>
<p><?php _e( 'Jetpack can help secure your site, increase performance &amp; traffic, and simplify how you manage your site.', 'jetpack' ); ?></p>
<div class="j-row">
<?php // Performance & Security ?>
<div class="j-col j-lrg-4 main-col">
<div class="nux-in">
<h3 title="<?php esc_attr_e( 'Performance &amp; Security', 'jetpack' ); ?>">
<?php /* Leave out until better link is available
<a class="dashicons dashicons-editor-help" href="http://jetpack.com/features/" title="<?php esc_attr_e( 'Learn more about Jetpack\'s Performance &amp; Security tools', 'jetpack' ); ?>" target="_blank"></a>
*/ ?>
<?php _e( 'Performance &amp; Security', 'jetpack' ); ?>
</h3>
<?php // The template container from landing-page-templates.php ?>
<div id="nux-performance-security"></div>
</div> <?php // nux-in ?>
</div><?php // j-col ?>
<?php // END Performance & Security ?>
<?php // Traffic Boosting Tools ?>
<div class="j-col j-lrg-4 main-col">
<div class="nux-in">
<h3 title="<?php esc_attr_e( 'Traffic Growth', 'jetpack' ); ?>">
<?php /* Leave out until better link is available
<a class="dashicons dashicons-editor-help" href="http://jetpack.com/features/" title="<?php esc_attr_e( 'Learn more about Jetpack\'s Traffic Boosting tools', 'jetpack' ); ?>" target="_blank"></a>
*/ ?>
<?php _e( 'Traffic Growth', 'jetpack' ); ?>
</h3>
<?php // The template container from landing-page-templates.php ?>
<div id="nux-traffic"></div>
</div> <?php // nux-in ?>
</div><?php // j-col ?>
<?php // END Traffic Tools ?>
<?php // WordPress.com Tools ?>
<div class="wpcom j-col j-lrg-4 main-col">
<div class="nux-in">
<h3 title="<?php esc_attr_e( 'WordPress.com Tools', 'jetpack' ); ?>"><a class="dashicons dashicons-editor-help" href="http://jetpack.com/support/site-management/" title="<?php esc_attr_e( 'Learn more about WordPress.com\'s free tools', 'jetpack' ); ?>" target="_blank"></a><?php _e( 'WordPress.com Tools', 'jetpack' ); ?></h3>
<div class="j-row">
<div class="j-col j-lrg-12 j-md-12 j-sm-12">
<h4 title="<?php esc_attr_e( 'Manage Multiple Sites', 'jetpack' ); ?>"><?php _e( 'Manage Multiple Sites', 'jetpack' ); ?></h4>
<p title="<?php esc_attr_e( 'Bulk site management from one dashboard.', 'jetpack' ); ?>"><?php _e( 'Bulk site management from one dashboard.', 'jetpack' ); ?></p>
</div>
</div><?php // j-row ?>
<div class="j-row">
<div class="j-col j-lrg-12 j-md-12 j-sm-12">
<h4 title="<?php esc_attr_e( 'Automatic Updates', 'jetpack' ); ?>"><?php _e( 'Automatic Updates', 'jetpack' ); ?></h4>
<p title="<?php esc_attr_e( 'Keep plugins auto-updated.', 'jetpack' ); ?>"><?php _e( 'Keep plugins auto-updated.', 'jetpack' ); ?></p>
</div>
</div><?php // j-row ?>
<div class="j-row">
<div class="j-col j-lrg-12 j-md-12 j-sm-12">
<h4 title="<?php esc_attr_e( 'Centralized Posting', 'jetpack' ); ?>"><?php _e( 'Centralized Posting', 'jetpack' ); ?></h4>
<p title="<?php esc_attr_e( 'Post to your sites via mobile devices.', 'jetpack' ); ?>"><?php _e( 'Post to your sites via mobile devices.', 'jetpack' ); ?></p>
</div>
</div><?php // j-row ?>
<div class="j-row">
<div class="j-col j-lrg-12 j-md-12 j-sm-12">
<h4 title="<?php esc_attr_e( 'Menu Management', 'jetpack' ); ?>"><?php _e( 'Menu Management', 'jetpack' ); ?></h4>
<p title="<?php esc_attr_e( 'A simpler UI for creating and editing menus.', 'jetpack' ); ?>"><?php _e( 'A simpler UI for creating and editing menus.', 'jetpack' ); ?></p>
</div>
</div><?php // j-row ?>
<div class="j-row">
<div class="j-col j-lrg-12 j-md-12 j-sm-12">
<h4 title="<?php esc_attr_e( 'More Statistics', 'jetpack' ); ?>"><?php _e( 'More Statistics', 'jetpack' ); ?></h4>
<p title="<?php esc_attr_e( 'Enhanced site stats and insights.', 'jetpack' ); ?>"><?php _e( 'Enhanced site stats and insights.', 'jetpack' ); ?></p>
</div>
</div><?php // j-row ?>
<?php
$normalized_site_url = Jetpack::build_raw_urls( get_home_url() );
$manage_active = Jetpack::is_module_active( 'manage' );
?>
<?php if ( current_user_can( 'jetpack_manage_modules' ) && $data['is_user_connected'] && ! Jetpack::is_development_mode() ) : ?>
<div id="manage-row" class="j-row goto <?php echo ( $manage_active ) ? 'activated' : ''; ?>">
<div class="feat j-col j-lrg-7 j-md-8 j-sm-7">
<a href="<?php echo esc_url( 'https://wordpress.com/plugins/' . $normalized_site_url . '?from=jpnux' ); ?>" class="button button-primary manage-cta-active" target="_blank" style="display: <?php echo ( $manage_active ) ? 'inline-block' : 'none'; ?>;" title="<?php esc_attr_e( 'Go to WordPress.com to try these features', 'jetpack' ); ?>"><?php _e( 'Go to WordPress.com', 'jetpack' ); ?></a>
<label for="active-manage" class="button button-primary form-toggle manage-cta-inactive" style="display: <?php echo ( $manage_active ) ? 'none' : 'inline-block'; ?>" title="<?php esc_attr_e( 'Activate free WordPress.com features', 'jetpack' ); ?>"><?php _e( 'Activate features', 'jetpack' ); ?></label>
</div>
<div class="act j-col j-lrg-5 j-md-4 j-sm-5">
<div class="module-action">
<span>
<?php $manage_active = Jetpack::is_module_active( 'manage' ); ?>
<input class="is-compact form-toggle" type="checkbox" id="active-manage" <?php echo ( $manage_active ) ? 'checked' : ''; ?> />
<label class="form-toggle__label" for="active-manage">
<img class="module-spinner-manage" style="display: none;" width="16" height="16" src="<?php echo esc_url( includes_url( 'images/spinner-2x.gif' ) ); ?>" alt="Loading ..." />
<label class="plugin-action__label" for="active-manage">
<?php ( $manage_active ) ? esc_html_e( 'Active', 'jetpack' ) : esc_html_e( 'Inactive', 'jetpack' ); ?>
</label>
<span class="form-toggle__switch"></span>
</label>
</span>
</div>
</div>
</div><?php // j-row ?>
<?php endif; ?>
</div> <?php // nux-in ?>
</div><?php // j-col ?>
<?php // END WordPress.com Tools ?>
</div><?php // j-row ?>
<?php if ( current_user_can( 'jetpack_manage_modules' ) ) : ?>
<p><?php _e( 'Jetpack includes many other features that you can use to customize how your site looks and functions. These include Contact Forms, Tiled Photo Galleries, Custom CSS, Image Carousel, and a lot more.', 'jetpack' ); ?></p>
<p><a href="<?php echo admin_url( 'admin.php?page=jetpack_modules' ); ?>" class="button full-features-btn" ><?php echo sprintf( __( 'See the other %s Jetpack features', 'jetpack' ), count( Jetpack::get_available_modules() ) - count( $data['recommended_list'] ) ); ?></a></p>
<?php endif; ?>
<div class="nux-foot j-row">
<div class="j-col j-lrg-8 j-md-8 j-sm-12">
<?php
// Get a list of Jetpack Happiness Engineers.
$jetpack_hes = array(
'623f42e878dbd146ddb30ebfafa1375b',
'561be467af56cefa58e02782b7ac7510',
'd8ad409290a6ae7b60f128a0b9a0c1c5',
'790618302648bd80fa8a55497dfd8ac8',
'6e238edcb0664c975ccb9e8e80abb307',
'4e6c84eeab0a1338838a9a1e84629c1a',
'9d4b77080c699629e846d3637b3a661c',
'4626de7797aada973c1fb22dfe0e5109',
'190cf13c9cd358521085af13615382d5',
'f7006d10e9f7dd7bea89a001a2a2fd59',
'16acbc88e7aa65104ed289d736cb9698',
'4d5ad4219c6f676ea1e7d40d2e8860e8',
'e301f7d01b09e7578fdfc1b1ec1bc08d',
'42f4c73f5337486e199f6e3b3910f168',
'e7b26de48e76498cff880abca1eed8da',
'764fb02aaae2ff64c0625c763d82b74e',
'4988305772319fb9bc8fce0a7acb3aa1',
'5d8695c4b81592f1255721d2644627ca',
'0e2249a7de3404bc6d5207a45e911187',
);
// Get a fallback profile image.
$default_he_img = plugins_url( 'images/jetpack-icon.jpg', JETPACK__PLUGIN_FILE );
printf(
'<a href="http://jetpack.com/support/" target="_blank"><img src="https://secure.gravatar.com/avatar/%1$s?s=75&d=%2$s" alt="Jetpack Happiness Engineer" /></a>',
$jetpack_hes[ array_rand( $jetpack_hes ) ],
urlencode( $default_he_img )
);
?>
<p><?php _e( 'Help and Support', 'jetpack' ); ?></p>
<p><?php _e( 'We offer free, full support to all Jetpack users. Our support team is always around to help you.', 'jetpack' ); ?></p>
<ul class="actions">
<li><a href="http://jetpack.com/support/" target="_blank" class="button"><?php esc_html_e( 'Visit support site', 'jetpack' ); ?></a></li>
<li><a href="https://wordpress.org/support/plugin/jetpack" target="_blank"><?php esc_html_e( 'Browse forums', 'jetpack' ); ?></a></li>
<li><a href="http://jetpack.com/contact-support/" target="_blank"><?php esc_html_e( 'Contact us directly', 'jetpack' ); ?></a></li>
</ul>
</div>
<div class="j-col j-lrg-4 j-md-4 j-sm-12">
<p><?php _e( 'Premium Add-ons', 'jetpack' ); ?></p>
<p><?php esc_html_e( 'Business site? Safeguard it with real-time backups, security scans, and anti-spam.', 'jetpack' ); ?></p>
<p>&nbsp;</p>
<?php $normalized_site_url = Jetpack::build_raw_urls( get_home_url() ); ?>
<div class="actions jptracks" data-jptracks-name="nudge_click" data-jptracks-prop="nux-addons"><a href="<?php echo esc_url( 'https://wordpress.com/plans/' . $normalized_site_url ); ?>" target="_blank" class="button"><?php esc_html_e( 'Compare Options', 'jetpack' ); ?></a></div>
</div>
</div><?php // nux-foot ?>
</div><?php // nux-intro ?>
</div><!-- .landing -->
<?php else : ?>
<div class="connection-landing">
<div class="connect-card j-row">
<h1 title="<?php esc_attr_e( 'Please Connect Jetpack', 'jetpack' ); ?>"><?php esc_html_e( 'Please Connect Jetpack', 'jetpack' ); ?></h1>
<div class="connect-btn j-col j-sm-12 j-md-12">
<p><?php echo wp_kses( __( 'Connecting Jetpack will show you <strong>stats</strong> about your traffic, <strong>protect</strong> you from brute force attacks, <strong>speed up</strong> your images and photos, and enable other <strong>traffic and security</strong> features.', 'jetpack' ), 'jetpack' ) ?></p>
<?php if ( ! $data['is_connected'] && current_user_can( 'jetpack_connect' ) ) : ?>
<a href="<?php echo Jetpack::init()->build_connect_url( false, false, 'landing-page-top' ) ?>" class="download-jetpack"><?php esc_html_e( 'Connect Jetpack', 'jetpack' ); ?></a>
<?php elseif ( $data['is_connected'] && ! $data['is_user_connected'] && current_user_can( 'jetpack_connect_user' ) ) : ?>
<a href="<?php echo Jetpack::init()->build_connect_url( false, false, 'landing-page-top' ) ?>" class="download-jetpack"><?php esc_html_e( 'Connect your account', 'jetpack' ); ?></a>
<?php endif; ?>
</div>
</div> <?php // connect-card ?>
<div class="j-traffic feature-container jp-card">
<header class="first-header j-int">
<h2 title="<?php esc_attr_e( 'Drive more traffic to your site', 'jetpack' ); ?>"><?php
esc_html_e( 'Drive more traffic to your site', 'jetpack' );
?></h2>
<div class="j-header-img">
<img src="<?php echo plugins_url( 'images/connection-landing/long-clouds.svg', JETPACK__PLUGIN_FILE ); ?>" width="1135" height="63" alt="<?php echo esc_attr_x( 'Jetpack clouds image', 'Image alternative text', 'jetpack' ); ?>" /> <?php // must define dimensions here for older IEs ?>
<img src="<?php echo plugins_url( 'images/connection-landing/stat-bars.svg', JETPACK__PLUGIN_FILE ); ?>" width="400" alt="<?php echo esc_attr_x( 'Decorative graph image', 'Image alternative text', 'jetpack' ); ?>" />
</div>
</header>
<div class="three-feature j-row">
<div class="j-col j-sm-12 j-md-12 j-lrg-4">
<h3 title="<?php esc_attr_e( 'Automated social marketing', 'jetpack' ); ?>"><?php
esc_html_e( 'Automated social marketing', 'jetpack' );
?></h3>
<p><?php esc_html_e( 'Use Publicize to automatically share your posts with friends, followers, and the world.', 'jetpack' ); ?></p>
</div>
<div class="j-col j-sm-12 j-md-12 j-lrg-4">
<h3 title="<?php esc_attr_e( 'Build a community', 'jetpack' ); ?>"><?php
esc_html_e( 'Build a community', 'jetpack' );
?></h3>
<p><?php esc_html_e( 'Give visitors the tools to Share and Subscribe to your content.', 'jetpack' ); ?></p>
</div>
<div class="j-col j-sm-12 j-md-12 j-lrg-4">
<h3 title="<?php esc_attr_e( 'Increase page views', 'jetpack' ); ?>"><?php
esc_html_e( 'Increase page views', 'jetpack' );
?></h3>
<p><?php esc_html_e( 'Keep visitors engaged, by giving them more to share and read with Related Posts.', 'jetpack' ); ?></p>
</div>
</div><?php // three-feature ?>
<header class="secondary-header j-int">
<h2 title="<?php esc_attr_e( 'Track your growth', 'jetpack' ); ?>">
<?php esc_html_e( 'Track your growth', 'jetpack' ); ?>
</h2>
</header>
<div class="j-feature-img">
<img src="<?php
echo plugins_url( 'images/connection-landing/stats-example-med.png', JETPACK__PLUGIN_FILE );
?>"
srcset="<?php
echo plugins_url( 'images/connection-landing/stats-example-sm.png', JETPACK__PLUGIN_FILE );
?> 500w, <?php
echo plugins_url( 'images/connection-landing/stats-example-med.png', JETPACK__PLUGIN_FILE );
?> 600w, <?php
echo plugins_url( 'images/connection-landing/stats-example-lrg.png', JETPACK__PLUGIN_FILE );
?> 900w" alt="<?php esc_attr_e( 'View detailed insights and analytics about your site with Jetpack', 'jetpack' ); ?>" />
</div>
</div><?php // jp-card ?>
<div class="j-security feature-container jp-card">
<header class="first-header j-int">
<h2 title="<?php esc_attr_e( 'Site Security and Peace of Mind', 'jetpack' ); ?>"><?php
esc_html_e( 'Site Security and Peace of Mind', 'jetpack' );
?></h2>
<div class="j-header-img">
<img src="<?php echo plugins_url( 'images/connection-landing/long-clouds.svg', JETPACK__PLUGIN_FILE ); ?>" width="1135" height="63" alt="<?php echo esc_attr_x( 'Decorative graph image', 'Image alternative text', 'jetpack' ); ?>" /> <?php // must define dimensions here for older IEs ?>
<img src="<?php echo plugins_url( 'images/connection-landing/jp-shield.svg', JETPACK__PLUGIN_FILE ); ?>" width="180" alt="<?php echo esc_attr_x( 'Decorative shield image', 'Image alternative text', 'jetpack' ); ?>" />
</div>
</header>
<div class="three-feature j-row">
<div class="j-col j-sm-12 j-md-12 j-lrg-4">
<h3 title="<?php esc_attr_e( 'Block site attacks', 'jetpack' ); ?>"><?php
esc_html_e( 'Block site attacks', 'jetpack' );
?></h3>
<p><?php esc_html_e( 'Gain peace of mind with Protect, the tool that has blocked billions of login attacks on millions of sites.', 'jetpack' ); ?></p>
</div>
<div class="j-col j-sm-12 j-md-12 j-lrg-4">
<h3 title="<?php esc_attr_e( 'Live site monitoring', 'jetpack' ); ?>"><?php
esc_html_e( 'Live site monitoring', 'jetpack' );
?></h3>
<p><?php esc_html_e( 'Stress less. Monitor will send you real-time alerts if your site ever goes down.', 'jetpack' ); ?></p>
</div>
<div class="j-col j-sm-12 j-md-12 j-lrg-4">
<h3 title="<?php esc_attr_e( 'Automatic Updates', 'jetpack' ); ?>"><?php
esc_html_e( 'Automatic updates', 'jetpack' );
?></h3>
<p><?php esc_html_e( 'With Manage, youll never be behind on a security release or waste time updating multiple sites.', 'jetpack' ); ?></p>
</div>
</div><?php // three-feature ?>
</div><?php // jp-card ?>
<div class="j-security feature-container jp-card">
<header class="secondary-header j-int">
<h2 title="<?php esc_attr_e( 'Optimized Images, Lightning Fast', 'jetpack' ); ?>"><?php
esc_html_e( 'Optimized Images, Lightning Fast', 'jetpack' );
?></h2>
<p><?php esc_html_e( 'Jetpack utilizes the state-of-the-art WordPress.com content delivery network to load your gorgeous images super fast optimized for any device, and its completely free.', 'jetpack' ); ?></p>
</header>
<div class="j-feature-img">
<img src="<?php
echo plugins_url( 'images/connection-landing/feature-photon-med.jpg', JETPACK__PLUGIN_FILE );
?>"
srcset="<?php
echo plugins_url( 'images/connection-landing/feature-photon-sm.jpg', JETPACK__PLUGIN_FILE );
?> 500w, <?php
echo plugins_url( 'images/connection-landing/feature-photon-med.jpg', JETPACK__PLUGIN_FILE );
?> 600w, <?php
echo plugins_url( 'images/connection-landing/feature-photon-lrg.jpg', JETPACK__PLUGIN_FILE );
?> 900w" alt="<?php esc_attr_e( 'Have faster loading images with Jetpack Photon', 'jetpack' ); ?>" />
</div>
</div><?php // jp-card ?>
<div class="j-security feature-container jp-card">
<header class="secondary-header j-int">
<h2 title="<?php esc_attr_e( 'Free professional support', 'jetpack' ); ?>"><?php
esc_html_e( 'Free professional support', 'jetpack' );
?></h2>
<p><?php esc_html_e( 'Jetpack is supported by some of the most technical and passionate people in the community. Located around the globe and ready to help you.', 'jetpack' ); ?></p>
</header>
<div class="j-feature-img">
<img src="<?php
echo plugins_url( 'images/connection-landing/aurora-med.jpg', JETPACK__PLUGIN_FILE );
?>"
srcset="<?php
echo plugins_url( 'images/connection-landing/aurora-sm.jpg', JETPACK__PLUGIN_FILE );
?> 500w, <?php
echo plugins_url( 'images/connection-landing/aurora-med.jpg', JETPACK__PLUGIN_FILE );
?> 600w, <?php
echo plugins_url( 'images/connection-landing/aurora-lrg.jpg', JETPACK__PLUGIN_FILE );
?> 900w" alt="<?php esc_attr_e( 'Jetpack has an amazing free support team', 'jetpack' ); ?>" />
</div>
</div><?php // jp-card ?>
<div class="connect-card j-row">
<div class="connect-btn j-col j-sm-12 j-md-12">
<?php if ( ! $data['is_connected'] && current_user_can( 'jetpack_connect' ) ) : ?>
<a href="<?php echo Jetpack::init()->build_connect_url( false, false, 'landing-page-bottom' ) ?>" class="download-jetpack"><?php esc_html_e( 'Connect Jetpack', 'jetpack' ); ?></a>
<?php elseif ( $data['is_connected'] && ! $data['is_user_connected'] && current_user_can( 'jetpack_connect_user' ) ) : ?>
<a href="<?php echo Jetpack::init()->build_connect_url() ?>" class="download-jetpack"><?php esc_html_e( 'Connect your account', 'jetpack' ); ?></a>
<?php endif; ?>
</div>
</div> <?php // connect-card ?>
</div> <?php // connection landing ?>
<?php endif; ?>
<div id="deactivate-success"></div>
<?php if ( Jetpack::is_development_version() ) { ?>
<a id="jump-start-deactivate" style="cursor:pointer; display: block; text-align: center; margin-top: 25px;"><?php esc_html_e( 'RESET EVERYTHING (during testing only) - will reset modules to default as well', 'jetpack' ); ?></a>
<?php } // is_development_version ?>

View file

@ -0,0 +1,98 @@
<?php
if ( is_plugin_active( 'vaultpress/vaultpress.php' ) ) {
if ( VaultPress::init()->is_registered() ) {
$vp_link = 'https://dashboard.vaultpress.com';
$target = '_blank';
} else {
$vp_link = admin_url( 'admin.php?page=vaultpress' );
$target = '_self';
}
} else {
$vp_link = esc_url( 'https://wordpress.com/plans/' . Jetpack::build_raw_urls( get_home_url() ) );
$target = '_blank';
}
$modules = array('Appearance', 'Developers', 'Mobile', 'Other', 'Photos and Videos', 'Social', 'Site Stats', 'Writing' );
?>
<script id="tmpl-category" type="text/html">
<?php foreach( $modules as $module ){
$translated_module = Jetpack::translate_module_tag( $module );
$module_slug = strtolower ( str_replace( array( ' ', '.' ) , array( '-', '' ) , $translated_module ) ); ?>
<div class="cat category-<?php echo esc_attr( $module_slug ); ?> "><h3><?php echo esc_html( $translated_module ); ?></h3><div class="clear"></div></div>
<?php } ?>
</script>
<script id="tmpl-modalLoading" type="text/html">
<div class="loading"><span><?php esc_html_e( 'loading&hellip;', 'jetpack' ); ?></span></div>
</script>
<script id="tmpl-mod" type="text/html">
<div href="{{ data.url }}" tabindex="0" data-index="{{ data.index }}" data-name="{{ data.name }}" class="module{{ ( data.new ) ? ' new' : '' }}{{ data.activated ? ' active' : '' }}">
<h3 class="icon {{ data.module }}">{{{ data.name }}}<# if ( ! data.free ) { #><span class="paid"><?php echo esc_html_x( 'Paid', 'As in Premium. Premium module description', 'jetpack' ); ?></span><# } #></h3>
<p>{{{ data.short_description }}}</p>
</div>
</script>
<script id="tmpl-modconfig" type="text/html">
<tr class="configs{{ ( data.active ) ? ' active' : '' }}">
<td class="sm"><input type="checkbox"></td>
<td><a href="{{ data.url }}" data-name="{{ data.name }}">{{{ data.name }}}</a></td>
<td class="med"><a href="{{ data.url }}" data-name="{{{ data.name }}}"><span class="genericon genericon-help" title="<?php esc_attr_e( 'Learn more', 'jetpack' ); ?>"></span></a><# if ( data.hasConfig ) { #><a href="{{ data.url }}" data-name="{{ data.name }}"><span class="genericon genericon-cog" title="<?php esc_attr_e( 'Configure', 'jetpack' ); ?>"></span></a><# } #></td>
</tr>
</script>
<script id="tmpl-mod-jumpstart" type="text/html">
<div class="j-col j-lrg-4 jp-jumpstart {{ ( data.activated ) ? 'active' : '' }}">
<strong>{{{ data.name }}}</strong>
<# if ( data.activated ) { #>
<span class="jp-config-status"><?php esc_html_e( 'Activated', 'jetpack' ); ?></span>
<# } #>
<small>{{{ data.jumpstart_desc }}}</small>
</div>
</script>
<?php // NUX - Performance and security section ?>
<script id="tmpl-mod-nux" type="text/html">
<?php if ( Jetpack::is_development_mode() ) : ?>
<div id="toggle-{{ data.module }}" data-index="{{ data.index }}" class="{{ data.activated ? 'activated' : '' }} {{ data.requires_connection && 'vaultpress' !== data.module ? 'unavailable' : '' }} j-row">
<?php else : ?>
<div id="toggle-{{ data.module }}" data-index="{{ data.index }}" class="{{ data.activated ? 'activated' : '' }} j-row">
<?php endif; ?>
<div href="{{ data.url }}" tabindex="0" data-index="{{ data.index }}" data-name="{{ data.name }}" class="feat j-col j-lrg-8 j-md-12 j-sm-7">
<h4 title="{{ data.name }}" style="cursor: pointer; display: inline;">{{{ data.name }}}</h4>
<# if ( 'vaultpress' == data.module ) { #>
<span class="paid" title="<?php esc_attr_e( 'Premium Jetpack Service', 'jetpack' ); ?>"><?php esc_attr_e( 'PAID', 'jetpack' ); ?></span>
<# } else if ( -1 == data.noConfig || data.configurable ) { #>
<a href="{{ data.configure_url }}" class="dashicons dashicons-admin-generic" title="<?php esc_attr_e( 'Configure', 'jetpack' ); ?>"></a>
<# } #>
<p title="{{ data.short_description }}">{{{ data.short_description }}}</p>
</div>
<?php if ( current_user_can( 'jetpack_manage_modules' ) ) : ?>
<div class="act j-col j-lrg-4 j-md-12 j-sm-5">
<div class="module-action">
<# if ( data.activated ) { #>
<input class="is-compact form-toggle" type="checkbox" id="active-{{ data.module }}" checked />
<# } else { #>
<input class="is-compact form-toggle" type="checkbox" id="active-{{ data.module }}" />
<# } #>
<label class="form-toggle__label" for="active-{{ data.module }}">
<img class="module-spinner-{{ data.module }}" style="display: none;" width="16" height="16" src="<?php echo esc_url( includes_url( 'images/spinner-2x.gif' ) ); ?>" alt="Loading ..." />
<# if ( 'vaultpress' !== data.module ) { #>
<label class="plugin-action__label" for="active-{{ data.module }}">
<# if ( data.activated ) { #>
<?php _e( 'Active', 'jetpack' ); ?>
<# } else { #>
<?php _e( 'Inactive', 'jetpack' ); ?>
<# } #>
</label>
<# } #>
<# if ( 'vaultpress' == data.module ) { #>
<?php if ( is_plugin_active( 'vaultpress/vaultpress.php' ) ) : ?>
<a href="<?php echo esc_url( $vp_link ); ?>" class="dashicons dashicons-external jptracks" data-jptracks-name="nudge_click" data-jptracks-prop="nux-vaultpress-configure" title="<?php esc_attr_e( 'Configure', 'jetpack' ); ?>" target="<?php echo $target; ?>"></a>
<?php else : ?>
<a href="<?php echo esc_url( $vp_link ); ?>" class="lmore jptracks" data-jptracks-name="nudge_click" data-jptracks-prop="nux-vaultpress-learnmore" title="<?php esc_attr_e( 'Learn More', 'jetpack' ); ?>" target="<?php echo $target; ?>"><?php _e( 'Learn More', 'jetpack' ); ?></a>
<?php endif; ?>
<# } else { #>
<span class="form-toggle__switch"></span>
<# } #>
</label>
</div>
</div>
<?php endif; ?>
</div><?php // j-row ?>
</script>

View file

@ -0,0 +1,30 @@
<script id="tmpl-modal" type="text/html">
<span id="modal-label" class="screen-reader-text"><?php _e( 'Modal window. Press escape to close.', 'jetpack' ); ?></span>
<a href="#" class="close">&times; <span class="screen-reader-text"><?php _e( 'Close modal window', 'jetpack' ); ?></span></a>
<div class="content-container <# if ( data.available) { #>modal-footer<# } #>">
<div class="content">
<h2>{{{ data.name }}}</h2>
{{{ data.long_description }}}
</div>
</div>
<# if ( data.available ) { #>
<?php if ( ( Jetpack::is_active() || Jetpack::is_development_mode() )
&& current_user_can( 'jetpack_manage_modules' )
) : ?>
<footer>
<ul>
<li>
<# if ( data.activated ) { #>
<span class='delete'><a class="button-secondary"href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=deactivate&#038;module={{{ data.module }}}&#038;_wpnonce={{{ data.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span>
<# } else if ( data.available ) { #>
<span class='activate'><a class="button-primary"href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=activate&#038;module={{{ data.module }}}&#038;_wpnonce={{{ data.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span>
<# } #>
</li>
<# if ( ( data.configurable && -1 !== data.noConfig ) || ( data.activated && -1 == data.noConfig ) ) { #>
<li><a class="button-primary" href="{{ data.configure_url }}"><?php _e( 'Configure', 'jetpack' ); ?></a></li>
<# } #>
</ul>
</footer>
<?php endif; ?>
<# } #>
</script>

View file

@ -0,0 +1,15 @@
<div class="wrap">
<div id="message" class="updated jetpack-message jp-connect" style="display:block !important;">
<div class="jetpack-wrap-container">
<div class="jetpack-text-container">
<h1><?php _e( 'Get started with Jetpack Multisite', 'jetpack' ); ?></h1>
<p>
<?php _e( 'Get started managing your Multisite install of Jetpack by connecting.', 'jetpack' ) ?>
</p>
</div>
<div class="jetpack-install-container">
<p class="submit"><a href="<?php echo esc_url( $data['url'] ); ?>" class="button-connector" id="wpcom-connect"><?php _e( 'Connect to WordPress.com', 'jetpack' ); ?></a></p>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,180 @@
<div class="clouds-sm"></div>
<div class="page-content landing">
<?php Jetpack::init()->load_view( 'admin/network-activated-notice.php' ); ?>
<?php
/** This action is already documented in views/admin/admin-page.php */
do_action( 'jetpack_notices' );
?>
<div id="my-jetpack-page-template"></div>
<script id="tmpl-connection-page" type="text/html">
<div class="content-container">
<div id="my-jetpack-content" class="content">
<h2><?php _e( 'My Jetpack', 'jetpack' ); ?></h2>
<?php
/*
* 3-column row shown to non-masters
*/
?>
<# if ( ! data.currentUser.isMasterUser || ( ! data.currentUser.isMasterUser && data.masterUser ) ) { #>
<div class="connection-details local-user j-row">
<?php // left col ?>
<div class="j-col j-lrg-4 j-md-6 j-sm-12 jp-user">
<h3 title="<?php esc_attr_e( 'Username', 'jetpack' ); ?>"><?php _e( 'Site Username', 'jetpack' ); ?></h3>
<div class="user-01">
{{{ data.currentUser.gravatar }}} {{{ data.currentUser.adminUsername }}}
</div>
</div>
<?php // middle col ?>
<div class="j-col j-lrg-4 j-md-6 j-sm-12 wp-user">
<h3 title="<?php esc_attr_e( 'WordPress.com Username', 'jetpack' ); ?>"><?php _e( 'WordPress.com Username', 'jetpack' ); ?></h3>
<div class="wpuser-02">
<# if ( data.currentUser.isUserConnected ) { #>
{{{ data.currentUser.userComData.login }}}
<# } else { #>
<span><em><?php _e( 'Not connected', 'jetpack' ); ?></em></span>
<# } #>
</div>
</div>
<?php // right col ( Link/Unlink my account ) ?>
<div class="j-col j-lrg-4 j-md-12 j-sm-12 wp-action">
<?php //@todo h3 tags here for styling purposes ?>
<h3>&nbsp</h3>
<div class="action-btns">
<# if ( data.currentUser.isUserConnected ) { #>
<a class="button" title="<?php esc_attr_e( 'Unlink your account from WordPress.com', 'jetpack' ); ?>" href="<?php echo wp_nonce_url( Jetpack::admin_url( 'action=unlink&redirect=my_jetpack' ), 'jetpack-unlink' ); ?>"><?php esc_html_e( 'Unlink my account ', 'jetpack' ); ?></a>
<# } else { #>
<a class="button button-primary" title="<?php esc_attr_e( 'Link your account to WordPress.com', 'jetpack' ); ?>" href="<?php echo Jetpack::init()->build_connect_url( false, Jetpack::admin_url( array( 'page' => 'my_jetpack' ) ) ); ?>" ><?php esc_html_e( 'Link your account', 'jetpack' ); ?></a>
<# } #>
</div>
</div>
</div>
<# } #>
<?php
/*
* 2-column row shown to master users.
*/
?>
<# if ( data.currentUser.isMasterUser ) { #>
<div class="connection-details master-user j-row">
<?php // Left Col ?>
<div class="j-col j-lrg-6 j-md-6 j-sm-12 jp-user">
<h3 title="<?php esc_attr_e( 'Primary User of the site', 'jetpack' ); ?>"><?php _e( 'Site Username (Primary)', 'jetpack' ); ?></h3>
<div class="user-01">
{{{ data.currentUser.gravatar }}} {{{ data.currentUser.adminUsername }}}
</div>
</div>
<?php // Right Col ?>
<div class="j-col j-lrg-6 j-md-6 j-sm-12 wp-user">
<h3 title="<?php esc_attr_e( 'WordPress.com Username', 'jetpack' ); ?>"><?php _e( 'WordPress.com Username', 'jetpack' ); ?></h3>
<div class="wpuser-02">
<span>{{{ data.currentUser.userComData.login }}}</span>
</div>
</div>
</div>
<# } #>
</div><?php // my-jetpack-content ?>
<?php
/*
* User actions, only shown to admins
*
* Disconnect site, or change primary user
*/
?>
<?php if ( current_user_can( 'jetpack_disconnect' ) ) : ?>
<div class="j-row my-jetpack-actions">
<div class="j-col j-lrg-6 j-md-6 j-sm-12">
<h4><?php _e( 'Jetpack Primary User', 'jetpack' ); ?><a title="<?php esc_attr_e( 'Learn about what being the Primary User means.', 'jetpack' ); ?>" class="dashicons dashicons-editor-help what-is-primary" href="https://jetpack.com/support/primary-user" target="_blank"></a></h4>
<?php
// Only show dropdown if there are other admins
$all_users = count_users();
$primary_text = __( '(primary)', 'jetpack' );
if ( 1 < $all_users['avail_roles']['administrator'] ) : ?>
<form action="" method="post">
<select name="jetpack-new-master" id="user-list">
<?php
$all_users = get_users();
foreach ( $all_users as $user ) {
if ( Jetpack::is_user_connected( $user->ID ) && $user->caps['administrator'] ) {
if ( $user->ID == Jetpack_Options::get_option( 'master_user' ) ) {
$master_user_option = "<option selected value='{$user->ID}'>$user->user_login $primary_text</option>";
} else {
$user_options .= "<option value='{$user->ID}'>$user->user_login</option>";
}
}
}
// Show master first
echo $master_user_option;
// Show the rest of the linked admins
$user_options = ! empty( $user_options ) ? $user_options : printf( __( '%sConnect more admins%s', 'jetpack' ), "<option disabled='disabled'>", "</option>" );
echo $user_options;
?>
</select>
<?php wp_nonce_field( 'jetpack_change_primary_user', '_my_jetpack_nonce' ); ?>
<# if ( data.otherAdminsLinked ) { #>
<input type="submit" name="jetpack-set-master-user" id="save-primary-btn" class="button button-primary" value="Save" title="<?php esc_attr_e( 'Set the primary account holder', 'jetpack' ); ?>"/>
<# } else { #>
<input type="submit" disabled="disabled" name="jetpack-set-master-user" id="save-primary-btn" class="button" value="Save" title="<?php esc_attr_e( 'Set the primary account holder', 'jetpack' ); ?>"/>
<# } #>
</form>
<?php else : ?>
<p>{{{ data.masterUser.masterUser.data.user_login }}} <?php echo $primary_text; ?></p>
<p><em><?php
echo wp_kses(
sprintf(
__( 'Create <a href="%s" title="Go to Users → All Users">additional Administrators</a> to change primary user.', 'jetpack' ),
admin_url( 'users.php' ) ),
array( 'a' => array( 'href' => true, 'title' => true ) )
);
?></p>
<?php endif; ?>
</div>
<div class="j-col j-lrg-6 j-md-6 j-sm-12">
<h4><?php _e( 'Disconnect Jetpack', 'jetpack' ); ?></h4>
<a class="button" id="jetpack-disconnect" href="#"><?php esc_html_e( 'Disconnect site from WordPress.com', 'jetpack' ); ?></a>
</div>
</div>
<div id="jetpack-disconnect-content">
<div class="j-row">
<div class="j-col j-lrg-12 j-md-12 j-sm-12">
<?php if ( ! Jetpack::is_staging_site() ) : ?>
<h2><?php _e( 'Disconnecting Jetpack', 'jetpack' ); ?></h2>
<p><?php _e( 'Before you completely disconnect Jetpack is there anything we can do to help?', 'jetpack' ); ?></p>
<a class="button" id="confirm-disconnect" title="<?php esc_attr_e( 'Disconnect Jetpack', 'jetpack' ); ?>" href="<?php echo wp_nonce_url( Jetpack::admin_url( 'action=disconnect' ), 'jetpack-disconnect' ); ?>"><?php _e( 'Confirm Disconnect', 'jetpack' ); ?></a>
<a class="button primary" id="support-no-disconnect" target="_blank" title="<?php esc_attr_e( 'Jetpack Support', 'jetpack' ); ?>" href="http://jetpack.com/contact-support/"><?php esc_html_e( 'I Need Support', 'jetpack' ); ?></a>
<?php else : ?>
<h2><?php _e( 'Can not disconnect Jetpack', 'jetpack' ); ?></h2>
<p><?php
printf(
__( 'Disconnecting is not possible while in staging mode.<br /><a href="%s" target="_blank">Learn more about how staging sites work</a>.', 'jetpack' ),
'https://jetpack.com/support/why-cant-i-disconnect-my-site/'
);
?></p>
<input type="button" class="button" disabled="disabled" id="confirm-disconnect" value="<?php _e( 'Confirm Disconnect', 'jetpack' ); ?>">
<a class="button primary" id="support-no-disconnect" target="_blank" title="<?php esc_attr_e( 'Jetpack Support', 'jetpack' ); ?>" href="https://jetpack.com/support/why-cant-i-disconnect-my-site/"><?php esc_html_e( 'I Need Support', 'jetpack' ); ?></a>
<?php endif; ?>
<a class="cancel-disconnect" id="cancel-disconnect" target="_blank" title="<?php esc_attr_e( 'cancel', 'jetpack' ); ?>" href="#"><?php esc_html_e( 'cancel', 'jetpack' ); ?></a>
</div>
</div>
</div>
<?php endif;?>
</div><?php // div.content-container ?>
</script>
</div><?php // div.page-content ?>

View file

@ -0,0 +1,5 @@
<?php if ( isset( $_GET['jetpack-notice'] ) && 'dismiss' == $_GET['jetpack-notice'] ) : ?>
<div id="message" class="error">
<p><?php _e( 'Jetpack is network activated and notices can not be dismissed.', 'jetpack' ); ?></p>
</div>
<?php endif; ?>

View file

@ -0,0 +1,9 @@
<div id="message" class="updated jetpack-message jp-connect" style="display:block !important;">
<div class="jetpack-wrap-container">
<div class="jetpack-text-container">
<h2>
<?php echo $data['notice']; ?>
</h2>
</div>
</div>
</div>

View file

@ -0,0 +1,26 @@
<div id="survey" class="jp-survey">
<div class="jp-survey-container">
<div class="jp-survey-text">
<h4><?php _e( 'Have feedback on Jetpack?', 'jetpack' ); ?></h4>
<br />
<?php _e( 'Answer a short survey to let us know how we&#8217;re doing and what to add in the future.', 'jetpack' ); ?>
</div>
<div class="jp-survey-button-container">
<p class="submit"><?php printf( '<a id="jp-survey-button" class="button-primary" target="_blank" href="%1$s">%2$s</a>', 'http://jetpack.com/survey/?rel=' . JETPACK__VERSION, __( 'Take Survey', 'jetpack' ) ); ?></p>
</div>
</div>
</div>
<div id="jp-footer">
<p class="automattic"><?php _e( 'An <span>Automattic</span> Airline', 'jetpack' ) ?></p>
<p class="small">
<a href="http://jetpack.com/" target="_blank">Jetpack <?php echo esc_html( JETPACK__VERSION ); ?></a> |
<a href="http://automattic.com/privacy/" target="_blank"><?php _e( 'Privacy Policy', 'jetpack' ); ?></a> |
<a href="http://wordpress.com/tos/" target="_blank"><?php _e( 'Terms of Service', 'jetpack' ); ?></a> |
<?php if ( current_user_can( 'manage_options' ) ) : ?>
<a href="<?php echo Jetpack::admin_url( array( 'page' => 'jetpack-debugger' ) ); ?>"><?php _e( 'Debug', 'jetpack' ); ?></a> |
<?php endif; ?>
<a href="http://jetpack.com/support/" target="_blank"><?php _e( 'Support', 'jetpack' ); ?></a>
</p>
</div>
</div>

View file

@ -0,0 +1,14 @@
<div class="wrap" id="jetpack-settings">
<div id="jp-header"<?php if ( $data['is_connected'] ) : ?> class="small"<?php endif; ?>>
<div id="jp-clouds">
<h3><?php _e( 'Jetpack by WordPress.com', 'jetpack' ) ?></h3>
</div>
</div>
<h2 style="display: none"></h2> <!-- For WP JS message relocation -->
<?php
Jetpack::init()->load_view( 'admin/network-activated-notice.php' );
/** This action is already documented in views/admin/admin-page.php */
do_action( 'jetpack_notices' );

View file

@ -0,0 +1,87 @@
<?php extract( $data ); ?>
<?php if ( isset( $_GET['updated'] ) && 'true' == $_GET['updated'] ) : ?>
<div class="updated"><?php esc_html_e( 'Jetpack Network Settings Updated!', 'jetpack' ); ?></div>
<?php endif; ?>
<?php if ( isset( $_GET['error'] ) && 'jetpack_protect_whitelist' == $_GET['error'] ) : ?>
<div class="error"><?php esc_html_e( 'One of your IP addresses was not valid.', 'jetpack' ); ?></div>
<?php endif; ?>
<div class="wrap">
<h2><?php _e( 'Network Settings', 'jetpack' ); ?></h2>
<form action="edit.php?action=jetpack-network-settings" method="POST">
<h3><?php _e( 'Global', 'jetpack' ); ?></h3>
<p><?php _e( 'These settings affect all sites on the network.', 'jetpack' ); ?></p>
<?php wp_nonce_field( 'jetpack-network-settings' ); ?>
<table class="form-table">
<?php /*
<tr valign="top">
<th scope="row"><label for="auto-connect">Auto-Connect New Sites</label></th>
<td>
<input type="checkbox" name="auto-connect" id="auto-connect" value="1" <?php checked($options['auto-connect']); ?> />
<label for="auto-connect">Automagically connect all new sites in the network.</label>
</td>
</tr>
/**/ ?>
<tr valign="top">
<th scope="row"><label for="sub-site-override"><?php _e( 'Sub-site override', 'jetpack' ); ?></label></th>
<td>
<input type="checkbox" name="sub-site-connection-override" id="sub-site-override" value="1" <?php checked($options['sub-site-connection-override']); ?> />
<label for="sub-site-override"><?php _e( 'Allow individual site administrators to manage their own connections (connect and disconnect) to <a href="//wordpress.com">WordPress.com</a>', 'jetpack' ); ?></label>
</td>
</tr>
<tr valign="top">
<th scope="row"><label for="sub-site-override"><?php _e( 'Protect whitelist', 'jetpack' ); ?></label></th>
<td>
<p><strong><?php printf( __( 'Your current IP: %s', 'jetpack' ), jetpack_protect_get_ip() ); ?></strong></p>
<textarea name="global-whitelist" style="width: 100%;" rows="8"><?php echo implode( PHP_EOL, $jetpack_protect_whitelist['global'] ); ?></textarea> <br />
<label for="global-whitelist"><?php _e('IPv4 and IPv6 are acceptable. <br />To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100', 'jetpack' ); ?></label>
</td>
</tr>
<?php /* Remove the toggles for 2.9, re-evaluate how they're done and added for a 3.0 release. They don't feel quite right yet.
<tr>
<th scope="row"><label for="manage_auto_activated_modules">Manage modules</label></th>
<td>
<input type="checkbox" name="manage_auto_activated_modules" id="manage_auto_activated_modules" onclick="jQuery('#jpms_settings_modules').toggle();" value="1" <?php checked( $options['manage_auto_activated_modules'] ); ?>/>
<label for="manage_auto_activated_modules">Control which modules are auto-activated</label>
</td>
</tr>
/**/ ?>
</table>
<?php /* Remove the toggles for 2.9, re-evaluate how they're done and added for a 3.0 release. They don't feel quite right yet.
<?php
$display_modules = ( 1 == $this->get_option( 'manage_auto_activated_modules' ) )? 'block': 'none';
?>
<div id="jpms_settings_modules" style="display: <?php echo $display_modules; ?>">
<h3><?php _e( 'Modules', 'jetpack' ); ?></h3>
<p><?php _e( 'Modules to be automatically activated when new sites are created.', 'jetpack' ); ?></p>
<table>
<thead>
<!--
<tr>
<td><input type="checkbox"></td>
<td>Only show checked modules on subsites?</td>
</tr>
-->
</thead>
<tbody>
<?php foreach( $modules AS $module ) { ?>
<tr>
<td><input type="checkbox" name="modules[]" value="<?php echo $module['module']; ?>" id="<?php echo $module['module']; ?>" <?php checked( in_array( $module['module'], $options['modules'] ) ); ?>/></td>
<td><label for="<?php echo $module['module']; ?>"><?php echo $module['name']; ?></label></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
/**/ ?>
<?php submit_button(); ?>
</form>
</div>