| @@ -1,29 +1,34 @@ | ||
| 1 | 1 | <?php if(!$in_userlike) exit; ?> |
| 2 | - <div class="wrap"> | |
| 3 | - <?php screen_icon() ?> | |
| 4 | - <h2><?php _e('Userlike', 'userlike') ?></h2> | |
| 5 | - <div class="metabox-holder meta-box-sortables ui-sortable pointer"> | |
| 6 | - <div class="postbox" style="float:left;width:30em;margin-right:20px;width:500px;"> | |
| 7 | - <h3 class="hndle"><span><?php _e('Userlike Settings', 'userlike') ?></span></h3> | |
| 8 | - <div class="inside" style="padding: 0 10px"> | |
| 9 | - <p style="text-align:center"><a href="https://www.userlike.com/" title="Userlike"><img src="<?php echo $plugin_dir; ?>userlike.png" alt="Userlike" /></a></p> | |
| 10 | - <form method="post" action="options.php"> | |
| 11 | - <?php settings_fields('userlike'); ?> | |
| 12 | - <p> | |
| 13 | - <label for="userlike_secret"><?php echo __('Your Userlike Secret', 'userlike') ?></label><br /> | |
| 2 | + <div class="wrap"> | |
| 3 | + <?php screen_icon() ?> | |
| 4 | + <h2><?php _e('Userlike', 'userlike') ?></h2> | |
| 5 | + <div class="metabox-holder meta-box-sortables ui-sortable pointer"> | |
| 6 | + <div class="postbox" style="float:left;width:30em;margin-right:20px;width:500px;"> | |
| 7 | + <h3 class="hndle"><span><?php _e('Userlike Settings', 'userlike') ?></span></h3> | |
| 8 | + <div class="inside" style="padding: 0 10px"> | |
| 9 | + <p style="text-align:center"><a href="http://userlike.com/" title="Userlike"><img src="<?php echo $plugin_dir; ?>userlike.png" alt="Userlike" /></a></p> | |
| 10 | + <form method="post" action="options.php"> | |
| 11 | + <?php settings_fields('userlike'); ?> | |
| 12 | + <p> | |
| 13 | + <label for="userlike_secret"><?php echo __('Your Userlike Secret', 'userlike') ?></label><br /> | |
| 14 | 14 | |
| 15 | - <input type="text" name="userlike_secret" value="<?php echo esc_attr(get_option('userlike_secret')); ?>" style="width:100%" /> | |
| 16 | - </p> | |
| 17 | - <p class="submit"> | |
| 18 | - <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> | |
| 19 | - <input type="button" class="button-secondary" value="Help!" onClick="userlikeStartChat(); return false;" /> | |
| 20 | - </p> | |
| 21 | - </form> | |
| 15 | + <input type="text" name="userlike_secret" value="<?php echo get_option('userlike_secret'); ?>" style="width:100%" /> | |
| 16 | + </p> | |
| 17 | + <p class="submit"> | |
| 18 | + <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> | |
| 19 | + <input type="button" class="button-secondary" value="Help!" onClick="userlikeChat(); return false;" /> | |
| 20 | + </p> | |
| 21 | + </form> | |
| 22 | 22 | |
| 23 | - <p style="color:#999239;background-color:#ffffe0;font-size:smaller;padding:0.4em 0.6em !important;border:1px solid #e6db55;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px"><?php printf(__('Don’t have an Userlike account? No problem! %1$sRegister for an Userlike account%2$sRegister for an Userlike account!%3$s', 'userlike'), '<a href="https://www.userlike.com/register" title="', '">', '</a>') ?></p> | |
| 24 | - </div> | |
| 25 | - </div> | |
| 26 | - </div> | |
| 27 | - </div> | |
| 23 | + <p style="color:#999239;background-color:#ffffe0;font-size:smaller;padding:0.4em 0.6em !important;border:1px solid #e6db55;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px"><?php printf(__('Don’t have an Userlike account? No problem! %1$sRegister for an Userlike account%2$sRegister for an Userlike account!%3$s', 'userlike'), '<a href="http://userlike.com/" title="', '">', '</a>') ?></p> | |
| 24 | + </div> | |
| 25 | + </div> | |
| 26 | + </div> | |
| 27 | + </div> | |
| 28 | 28 | |
| 29 | - <script async type="text/javascript" src="https://userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/2332e6c6cf805b633de06554f1e75fde75cbdbba669e2cdac6b7ce44e6fbedec.js"></script> | |
| 29 | +<script src="//userlike.com/static/chat/javascripts/userlike.min.js"></script> | |
| 30 | +<script type="text/javascript"> | |
| 31 | + userlikeInit('a4e99b2f-2d7c-3785-ae0f-231eb2a7282a', | |
| 32 | + 'a5156bc60c33dae45919ac6b9bb22a8b8ac7556f6d5077d21514059591695837', | |
| 33 | + 'eyJwcm9hY3RpdmVfdGltZW91dCI6IDMwLCAib3JpZW50YXRpb24iOiAicmlnaHQiLCAiaGFzX3JlZ2lzdHJhdGlvbiI6IGZhbHNlLCAicHJvYWN0aXZlX21lc3NhZ2UiOiAiSGVsbG8sIGhvdyBjYW4gaSBoZWxwIHlvdT8iLCAibGFuZyI6ICJlbiIsICJzdXBwb3J0X3NzbCI6IHRydWUsICJ0cmFja2luZyI6IG51bGwsICJ0YWJfY29sb3IiOiAiZ3JlZW4iLCAic3VwcG9ydF9zY3JlZW5zaG90IjogdHJ1ZSwgInByb2FjdGl2ZV9tb2RlIjogImFjdGl2ZSIsICJpc19wcm9hY3RpdmUiOiBmYWxzZSwgInN1cHBvcnRfb2ZmbGluZW1vZGUiOiB0cnVlLCAic3VwcG9ydF9jaGF0X3N0YXRlIjogdHJ1ZX0='); | |
| 34 | +</script> | |