function yelp_widget_options_form() { ?> <div class="wrap" xmlns="http://www.w3.org/1999/html"> <!-- Plugin Title --> <div id="ywp-title-wrap"> <div id="icon-yelp" class=""></div> <h2><?php _e('Yelp Widget Pro Settings', 'ywp'); ?> </h2> <label class="label basic-label">Basic Version</label> <a href="http://wordimpress.com/plugins/yelp-widget-pro/" title="Upgrade to Yelp Widget Premium" target="_blank" class="update-link new-window">Upgrade to Premium</a> </div> <form id="yelp-settings" method="post" action="options.php"> <div class="metabox-holder"> <div class="postbox-container" style="width:75%"> <div id="main-sortables" class="meta-box-sortables ui-sortable"> <div class="postbox" id="yelp-widget-intro"> <div class="handlediv" title="Click to toggle"><br></div> <h3 class="hndle"><span><?php _e('Yelp Widget Pro Introductions', 'ywp'); ?> </span></h3> <div class="inside"> <p><?php _e('Thanks for choosing Yelp Widget Pro! <strong>To start using Yelp Widget Pro you must have a valid Yelp API key</strong>. Don\'t worry, it\'s <em>free</em> and very easy to get one! <strong>Having trouble?</strong> Check out the <a href="http://wordimpress.com/docs/yelp-widget-pro/#how-to-request-a-yelp-api-key" target="_blank" class="new-window">How to Request a Yelp API Key</a> screencast.', 'ywp'); ?> </p> <p><strong><?php _e('Yelp Widget Pro Activation Instructions:', 'ywp'); ?> </strong></p> <ol> <li><?php _e('Sign into Yelp or create an account if you don\'t have one already', 'ywp'); ?> </li> <li><?php _e('Once logged in, <a href="http://www.yelp.com/developers/getting_started/api_access" target="_blank" class="new-window">sign up for API access', 'ywp'); ?> </a></li> <li><?php _e('After you have been granted an API key copy-and-paste the API v2.0 information into the appropriate fields below', 'ywp'); ?> </li> <li><?php _e('Click update to activate and begin using Yelp Widget Pro', 'ywp'); ?> </li> </ol> <p> <strong><?php _e('Like this plugin? Give it a like on Facebook:', 'ywp'); ?> </strong> </p> <div class="social-items-wrap"> <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FWordImpress%2F353658958080509&send=false&layout=button_count&width=100&show_faces=false&font&colorscheme=light&action=like&height=21&appId=220596284639969" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe> <a href="https://twitter.com/wordimpress" class="twitter-follow-button" data-show-count="false">Follow @wordimpress</a> <script>!function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + '://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore(js, fjs); } }(document, 'script', 'twitter-wjs');</script> <div class="google-plus"> <!-- Place this tag where you want the +1 button to render. --> <div class="g-plusone" data-size="medium" data-annotation="inline" data-width="200" data-href="https://plus.google.com/117062083910623146392"></div> <!-- Place this tag after the last +1 button tag. --> <script type="text/javascript"> (function () { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> </div> <!--/.google-plus --> </div> <!--/.social-items-wrap --> </div> <!-- /.inside --> </div> <!-- /#yelp-widget-intro --> <div class="postbox" id="api-options"> <h3 class="hndle"><span><?php _e('Yelp API v2.0 Information', 'ywp'); ?> </span></h3> <div class="inside"> <?php // Tells Wordpress that the options we registered are being // handled by this form settings_fields('yelp_widget_settings'); // Retrieve stored options, if any $options = get_option('yelp_widget_settings'); ?> <div class="control-group"> <div class="control-label"> <label for="yelp_widget_consumer_key"><?php _e('Consumer Key', 'ywp'); ?> : </label> </div> <div class="controls"> <input type="text" id="yelp_widget_consumer_key" name="yelp_widget_settings[yelp_widget_consumer_key]" value="<?php echo yelp_widget_option('yelp_widget_consumer_key', $options); ?> " /> </div> </div> <div class="control-group"> <div class="control-label"> <label for="yelp_widget_consumer_secret"><?php _e('Consumer Secret', 'ywp'); ?> : </label> </div> <div class="controls"> <input type="text" id="yelp_widget_consumer_secret" name="yelp_widget_settings[yelp_widget_consumer_secret]" value="<?php echo yelp_widget_option('yelp_widget_consumer_secret', $options); ?> " /> </div> </div> <div class="control-group"> <div class="control-label"> <label for="yelp_widget_token"><?php _e('Token', 'ywp'); ?> : </label> </div> <div class="controls"> <input type="text" id="yelp_widget_token" name="yelp_widget_settings[yelp_widget_token]" value="<?php echo yelp_widget_option('yelp_widget_token', $options); ?> " /> </div> </div> <div class="control-group"> <div class="control-label"> <label for="yelp_widget_token_secret"><?php _e('Token Secret', 'ywp'); ?> : </label> </div> <div class="controls"> <input type="text" id="yelp_widget_token_secret" name="yelp_widget_settings[yelp_widget_token_secret]" value="<?php echo yelp_widget_option('yelp_widget_token_secret', $options); ?> " /> </div> </div> </div> <!-- /.inside --> </div> <!-- /#api-settings --> <div class="postbox" id="yelp-widget-options"> <h3 class="hndle"><span>Yelp Widget Pro Settings</span></h3> <div class="inside"> <div class="control-group"> <div class="control-label"> <label for="yelp_widget_disable_css">Disable Plugin CSS Output:<img src="<?php echo YELP_WIDGET_PRO_URL . '/includes/images/help.png'; ?> " title="<?php _e('Disabling the widget\'s CSS output is useful for more complete control over customizing the widget styles. Helpful for integration into custom theme designs.', 'ywp'); ?> " class="tooltip-info" width="16" height="16" /></label> </div> <div class="controls"> <input type="checkbox" id="yelp_widget_disable_css" name="yelp_widget_settings[yelp_widget_disable_css]" value="1" <?php $cssOption = empty($options['yelp_widget_disable_css']) ? '' : $options['yelp_widget_disable_css']; checked(1, $cssOption); ?> /> </div> </div> <!--/.control-group --> </div> <!-- /.inside --> </div> <!-- /#yelp-widget-options --> <div class="control-group"> <div class="controls"> <input class="button-primary" type="submit" name="submit-button" value="<?php _e('Update', 'ywp'); ?> " /> </div> </div> </div> <!-- /#main-sortables --> </div> <!-- /.postbox-container --> <div class="alignright" style="width:24%"> <div id="sidebar-sortables" class="meta-box-sortables ui-sortable"> <div id="yelp-widget-pro-premium" class="postbox"> <div class="handlediv" title="Click to toggle"><br></div> <h3 class="hndle"><span><?php _e('Yelp Widget Premium', 'ywp'); ?> </span></h3> <div class="inside"> <p><?php _e('Yelp Widget Premium is a significant upgrade to Yelp Widget Pro that adds many features that will allow you to further customize your widgets with Google Maps, Yelp review snippets, additional graphics and display options plus so much more! Also included is priority support, auto updates, and well documented shortcodes to display Yelp in any page or post', 'ywp'); ?> .</p> </div> </div> <!-- /.premium-metabox --> <div id="yelp-widget-pro-support" class="postbox"> <div class="handlediv" title="Click to toggle"><br></div> <h3 class="hndle"><span><?php _e('Need Support?', 'ywp'); ?> </span></h3> <div class="inside"> <p><?php _e('If you have any problems with this plugin or ideas for improvements or enhancements, please use the WordImpress support forum: <a href="http://wordimpress.com/support/forum/yelp-widget-pro/" target="_blank" class="new-window">Support Forums</a>. Please note, support is prioritized for <a href="http://wordimpress.com/plugins/yelp-widget-pro/" title="Upgrade to Yelp Widget Premium" target="_blank" class="new-window">Premium Users</a>.', 'ywp'); ?> </p> </div> <!-- /.inside --> </div> <!-- /.yelp-widget-pro-support --> </div> <!-- /.sidebar-sortables --> <a href="http://wordimpress.com/" class="wordimpress-link" target="_blank"></a> </div> <!-- /.alignright --> </div> <!-- /.metabox-holder --> </form> </div><!-- /#wrap --> <?php }
<div class="control-label"> <label for="yelp_widget_premium_license"><?php _e('License Key', 'ywp'); ?> <img src="<?php echo YELP_WIDGET_PRO_URL . '/includes/images/help.png'; ?> " title="<?php _e('The license key can be found in your confirmation email. If you lost your license you can <a href=\'http://wordimpress.com/lost-licence/\'>request it sent by email</a>.', 'ywp'); ?> " class="tooltip-info" width="16" height="16" /></label> </div> <div class="controls"> <input type="text" id="yelp_widget_premium_license" name="yelp_widget_settings[yelp_widget_premium_license]" placeholder="VALID LICENSE KEY" value="<?php echo yelp_widget_option('yelp_widget_premium_license', $options); ?> " /> </div> </div> <!--/.control-group --> <div class="control-group"> <div class="controls"> <?php //Output appropriate Submit Button if ($licenseStatus == 1) { ?>