function jps_start() { if (current_user_can_for_blog(get_current_blog_id(), 'switch_themes')) { if (isset($_GET['jps_wizard_end'])) { add_option('jpstart_wizard_has_run', true); wp_safe_redirect(remove_query_arg('jps_wizard_end')); die; } if (!get_option('jpstart_wizard_has_run') || isset($_GET['jps_wizard_start'])) { // Hack to get sure the welcome panel gets shown. update_user_meta(get_current_user_id(), 'show_welcome_panel', true); require_once plugin_dir_path(__FILE__) . 'class.jetpack-start.php'; if (isset($_GET['jps_wizard_start'])) { delete_option('jpstart_wizard_has_run'); wp_safe_redirect(admin_url()); } Jetpack_Start::init(); } require_once plugin_dir_path(__FILE__) . 'class.jetpack-start-welcome-panel.php'; Jetpack_Start_Welcome_Panel::init(); } }
?> "><?php _e('Publicize your work', 'jetpack-start'); ?> </a></h5> <?php } ?> <?php _e('Effortlessly promote your content by connecting to Twitter, Facebook, Google+, LinkedIn, Tumblr or Path!', 'jetpack-start'); ?> <?php } else { ?> <h5><a href="<?php echo Jetpack_Start_Welcome_Panel::add_action_arg(wp_nonce_url(admin_url('plugins.php?action=activate&plugin=jetpack%2Fjetpack.php'), 'activate-plugin_jetpack/jetpack.php'), 'activate_jetpack'); ?> "><?php _e('Connect Jetpack', 'jetpack-start'); ?> </a></h5> <?php _e('Connect Jetpack to publcise your posts, get free stats, and more.', 'jetpack-start'); ?> <?php } ?> </li> <li> <h5><a href="http://en.support.wordpress.com/widgets/" target="_blank"><?php
<br /><br /> <a class="button button-primary" href="<?php echo Jetpack_Start_Welcome_Panel::add_action_arg(admin_url('widgets.php'), 'blog_widgets'); ?> "><?php _e('Manage Widgets', 'jetpack-start'); ?> </a> </li> <li> <h5>4. Fine Tune It</h5> <?php _e('Customize your site’s colors, fonts, frontpage and other settings. Or completely change your theme!', 'jetpack-start'); ?> <br /><br /> <a class="button button-primary" href="<?php echo Jetpack_Start_Welcome_Panel::add_action_arg(wp_customize_url(), 'blog_customize'); ?> "><?php _e('Customize', 'jetpack-start'); ?> </a> </li> </ul> </div> </div> </div>