Пример #1
0
</span>
  
    <button class='app_wide_settings btn' data-href='monetizations/edit'><?php 
_e('Edit Monetization Settings', 'shareaholic');
?>
</button>
  
  </fieldset>
  </div>

  <div class="row" style="padding-top:20px; padding-bottom:35px; clear:both;">
    <div class="span2"><input type='submit' onclick="this.value='<?php 
echo sprintf(__('Saving Changes...', 'shareaholic'));
?>
';" value='<?php 
echo sprintf(__('Save Changes', 'shareaholic'));
?>
'></div>
  </div>
  </form>
</div>
<?php 
ShareaholicUtilities::load_template('why_to_sign_up', array('url' => Shareaholic::URL));
?>
</div>


<?php 
ShareaholicAdmin::show_footer();
ShareaholicAdmin::include_snapengage();
Пример #2
0
 /**
  * This function is in charge of determining whether to send the "get started" email
  */
 public static function welcome_email()
 {
     // check whether email has been sent
     if (ShareaholicUtilities::get_option('welcome_email_sent') != true) {
         ShareaholicAdmin::send_welcome_email();
         // set flag that the email has been sent
         ShareaholicUtilities::update_options(array('welcome_email_sent' => true));
     }
 }
Пример #3
0
 /**
  * This function fires once any activated plugins have been loaded. Is generally used for immediate filter setup, or plugin overrides.
  */
 public function shareaholic_init()
 {
     ShareaholicUtilities::localize();
     // Send Welcome email if we haven't sent it already (check whenever a new site ID is set)
     if (ShareaholicUtilities::get_option('api_key') != NULL) {
         ShareaholicAdmin::welcome_email();
     }
 }
<?php

ShareaholicAdmin::include_css_js_assets();
?>
<script>
  window.first_part_of_url = "<?php 
echo $settings['base_link'];
?>
";
  window.verification_key = "<?php 
echo $settings['verification_key'];
?>
";
  window.shareaholic_api_key = "<?php 
echo $settings['api_key'];
?>
";
  window.SHAREAHOLIC_PLUGIN_VERSION = '<?php 
echo ShareaholicUtilities::get_version();
?>
';
</script>

<script>
  // override default jquery with sQuery (from jquery_custom) on shareaholic admin pages only
  $ = jQuery = sQuery;
</script>

<script type="text/javascript"
        data-sorendpoint="<?php 
echo ShareaholicUtilities::URL;