| @@ 983-1001 (lines=19) @@ | ||
| 980 | // Site Icon: STOP |
|
| 981 | ||
| 982 | // Manage: Start |
|
| 983 | function jetpack_custom_jetpack_manage() { ?> |
|
| 984 | ||
| 985 | ||
| 986 | <div class="jp-info-img"> |
|
| 987 | <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/manage.jpg' ) ?>" alt="<?php esc_attr_e( 'Manage all of your WordPress sites, self-hosted or not, from WordPress.com', 'jetpack' ) ?>" width="300" height="150" /> |
|
| 988 | </div> |
|
| 989 | ||
| 990 | <p><em><?php esc_html_e( 'Enabling Manage allows you to update your self-hosted WordPress sites along with any WordPress.com sites you have, all in one simple dashboard.', 'jetpack' ); ?></em></p> |
|
| 991 | <p><strong><?php _e( 'Plugins', 'jetpack' ); ?></strong><br /> |
|
| 992 | <?php printf( __( 'Now you can update plugins, set plugins to automatically update, and activate or deactivate plugins on a per-site basis or in bulk from <a href="%s">wordpress.com/plugins</a>.', 'jetpack' ), 'https://wordpress.com/plugins' ); ?></p> |
|
| 993 | ||
| 994 | <p><strong><?php _e( 'Themes', 'jetpack' ); ?></strong><br /> |
|
| 995 | <?php printf( __( 'List your installed themes, search, and activate them from <a href="%s">wordpress.com/design</a>.', 'jetpack' ), 'https://wordpress.com/design' ); ?></p> |
|
| 996 | ||
| 997 | <p><strong><?php _e( 'Menus', 'jetpack' ); ?></strong><br /> |
|
| 998 | <?php printf( __( 'Create a new menu for your site, or edit existing menus from <a href="%s">wordpress.com/menus</a>.', 'jetpack' ), 'https://wordpress.com/menus' ); ?></p> |
|
| 999 | ||
| 1000 | <?php |
|
| 1001 | } |
|
| 1002 | add_action( 'jetpack_module_more_info_manage', 'jetpack_custom_jetpack_manage' ); |
|
| 1003 | ||
| 1004 | function jetpack_manage_more_link() { |
|
| @@ 333-357 (lines=25) @@ | ||
| 330 | /** |
|
| 331 | * Select a file admin view |
|
| 332 | */ |
|
| 333 | public static function select_page() { |
|
| 334 | // Display the site_icon form to upload the image |
|
| 335 | ?> |
|
| 336 | <form action="<?php echo esc_url( admin_url( 'options-general.php?page=jetpack-site_icon-upload' ) ); ?>" method="post" enctype="multipart/form-data"> |
|
| 337 | ||
| 338 | <h2 class="site-icon-title"> |
|
| 339 | <?php if( jetpack_has_site_icon() ) { |
|
| 340 | esc_html_e( 'Update Site Icon', 'jetpack' ); |
|
| 341 | } else { |
|
| 342 | esc_html_e( 'Add Site Icon', 'jetpack' ); |
|
| 343 | } ?> <span class="small"><?php esc_html_e( 'select a file', 'jetpack' ); ?></span></h2> |
|
| 344 | <p><?php esc_html_e( 'Upload a image that you want to use as your site icon. You will be asked to crop it in the next step.', 'jetpack' ); ?></p> |
|
| 345 | ||
| 346 | ||
| 347 | <p><input name="site-iconfile" id="site-iconfile" type="file" /></p> |
|
| 348 | <p><?php esc_html_e( 'The image needs to be at least', 'jetpack' ); ?> <strong><?php echo self::$min_size; ?>px</strong> <?php esc_html_e( 'in both width and height.', 'jetpack' ); ?></p> |
|
| 349 | <p class="submit site-icon-submit-form"> |
|
| 350 | <input name="submit" value="<?php esc_attr_e( 'Upload Image' , 'jetpack' ); ?>" type="submit" class="button button-primary button-large" /><?php printf( __( ' or <a href="%s">Cancel</a> and go back to the settings.' , 'jetpack' ), esc_url( admin_url( 'options-general.php' ) ) ); ?> |
|
| 351 | <input name="step" value="2" type="hidden" /> |
|
| 352 | ||
| 353 | <?php wp_nonce_field( 'update-site_icon-2', '_nonce' ); ?> |
|
| 354 | </p> |
|
| 355 | </form> |
|
| 356 | <?php |
|
| 357 | } |
|
| 358 | ||
| 359 | /** |
|
| 360 | * Crop a the image admin view |
|