Changeset 2049205
- Timestamp:
- 03/12/2019 05:25:53 PM (7 years ago)
- File:
-
- 1 edited
-
sitespeaker-widget/trunk/sitespeaker.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sitespeaker-widget/trunk/sitespeaker.php
r2049081 r2049205 43 43 44 44 function sitespeaker_main_settings_section_text() { 45 echo "< divstyle='max-width: 60em;'>You can find your API key in the SiteSpeaker <a target='_blank' href='https://dashboard.sitespeaker.com/'>dashboard</a> under 'Get Code'. " .45 echo "<p style='max-width: 60em;'>You can find your API key in the SiteSpeaker <a target='_blank' href='https://dashboard.sitespeaker.com/'>dashboard</a> under 'Get Code'. " . 46 46 "If you don't have an account, you can sign up for one <a target='_blank' href='https://dashboard.sitespeaker.com/?p=SignUp'>here</a>. " . 47 "Note: your site domain must be whitelisted in the SiteSpeaker dashboard for the API key to work. " . 48 "Once you have generated the embedded code, a 'Listen to this article' button will automatically appear at the top of every post. " . 49 "You can modify the appearance of the button by editing the embedded code.</div>"; 47 "Note: your site domain must be whitelisted in the SiteSpeaker dashboard for the API key to work.</p>"; 48 49 $options = get_option('sitespeaker_settings'); 50 if (!empty($options['code'])) { 51 echo "<p style='color: #080; font-weight: bold;'>Your widget is LIVE.</p>"; 52 } 53 else { 54 echo "<p style='max-width: 60em;'>Once you have generated the embedded code, a 'Listen to this article' button will automatically appear at the top of every post. " . 55 "You can modify the appearance of the button by editing the embedded code.</p>"; 56 } 50 57 } 51 58 52 59 function sitespeaker_settings_key() { 53 60 $options = get_option('sitespeaker_settings'); 54 echo "<input id='sitespeaker_key' name='sitespeaker_settings[api_key]' size='32' type='text' value='{$options['api_key']}' />"; 61 $api_key = $options['api_key'] ?? 'demo'; 62 echo "<input id='sitespeaker_key' name='sitespeaker_settings[api_key]' size='32' type='text' value='{$api_key}' />"; 55 63 } 56 64
Note: See TracChangeset
for help on using the changeset viewer.