Changeset 1673372
- Timestamp:
- 06/08/2017 01:50:55 PM (9 years ago)
- Location:
- botosub/trunk
- Files:
-
- 2 edited
-
botosub.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
botosub/trunk/botosub.php
r1669465 r1673372 4 4 Plugin URI: https://www.botosub.com/ 5 5 Description: Send Newsletters directly to Facebook Messenger users 6 Version: 1. 06 Version: 1.1 7 7 Author: Botosub Dev 8 8 License: GPL2 … … 29 29 register_setting('bs_botosub_options', 'botosub_switch_color'); 30 30 register_setting('bs_botosub_options', 'botosub_plugin_type'); 31 register_setting('bs_botosub_options', 'botosub_sc_title'); 32 register_setting('bs_botosub_options', 'botosub_sc_title_color'); 33 register_setting('bs_botosub_options', 'botosub_sc_desc'); 34 register_setting('bs_botosub_options', 'botosub_sc_desc_color'); 35 register_setting('bs_botosub_options', 'botosub_sc_bg_color'); 36 register_setting('bs_botosub_options', 'botosub_sc_img'); 31 37 } 32 38 … … 106 112 </tr> 107 113 <tr valign="top"> 108 <th scope="row">Text</th> 109 <td> 114 <!-- bar --> 115 <th class="botosub_bar_class" scope="row">Text</th> 116 <td class="botosub_bar_class"> 110 117 <input type="text" name="botosub_text" style="width:70%;" placeholder="<?php echo $botosub_newsletter_text; ?>" value="<?php echo get_option('botosub_text'); ?>" /> 111 118 </td> 112 119 113 120 <th class="botosub_bar_class" scope="row">Text Color</th> 114 <td class="botosub_bar_class"><input class="bar_input"type="text" name="botosub_text_color" placeholder="#ffffff"121 <td class="botosub_bar_class"><input type="text" name="botosub_text_color" placeholder="#ffffff" 115 122 value="<?php echo get_option('botosub_text_color'); ?>"/></td> 116 123 124 <!-- scode --> 125 <th class="botosub_scode_class" scope="row">Title</th> 126 <td class="botosub_scode_class"> 127 <input type="text" name="botosub_sc_title" style="width:70%;" placeholder="<?php echo $botosub_newsletter_text; ?>" value="<?php echo get_option('botosub_sc_title'); ?>" /> 128 </td> 129 130 <th class="botosub_scode_class" scope="row">Title Color</th> 131 <td class="botosub_scode_class"><input type="text" name="botosub_sc_title_color" placeholder="#333" 132 value="<?php echo get_option('botosub_sc_title_color'); ?>"/></td> 133 134 </tr> 135 <tr valign="top"> 136 137 <!-- bar --> 138 <th class="botosub_bar_class" scope="row">Text Style</th> 139 <td class="botosub_bar_class"> 140 <input type="text" name="botosub_text_style" style="width:70%;" placeholder="font-weight:bold; padding-right: 10px;" value="<?php echo get_option('botosub_text_style'); ?>" /> 141 </td> 142 <th class="botosub_bar_class" scope="row">Switch Color</th> 143 <td class="botosub_bar_class"> 144 <input type="text" name="botosub_switch_color" placeholder="#000" value="<?php echo get_option('botosub_switch_color'); ?>" /> 145 </td> 146 147 <!-- scode --> 148 <th class="botosub_scode_class" scope="row">Description</th> 149 <td class="botosub_scode_class"> 150 <input type="text" name="botosub_sc_desc" style="width:70%;" value="<?php echo get_option('botosub_sc_desc'); ?>" /> 151 </td> 152 153 <th class="botosub_scode_class" scope="row">Description Color</th> 154 <td class="botosub_scode_class"><input type="text" name="botosub_sc_desc_color" placeholder="#333" 155 value="<?php echo get_option('botosub_sc_desc_color'); ?>"/></td> 156 </tr> 157 <tr valign="top"> 158 <!-- bar --> 159 <th class="botosub_bar_class" scope="row">Background Color</th> 160 <td class="botosub_bar_class"><input type="text" name="botosub_box_bg_color" placeholder="#fed136" 161 value="<?php echo get_option('botosub_box_bg_color'); ?>"/></td> 162 163 <!-- scode --> 164 <th class="botosub_scode_class" scope="row">Background Color</th> 165 <td class="botosub_scode_class"> 166 <input type="text" name="botosub_sc_bg_color" placeholder="#ffffff" style="width:70%;" value="<?php echo get_option('botosub_sc_bg_color'); ?>" /> 167 </td> 168 117 169 <th class="botosub_scode_class" scope="row">Shortcode</th> 118 170 <td class="botosub_scode_class"><span style="margin-bottom: 20px; font-size: 21px; font-weight: 300; line-height: 1.4;">[botosub_newsletters]</span></td> 119 171 </tr> 120 <tr valign="top"> 121 <th class="botosub_bar_class" scope="row">Text Style</th> 122 <td class="botosub_bar_class"> 123 <input class="bar_input" type="text" name="botosub_text_style" style="width:70%;" placeholder="font-weight:bold; padding-right: 10px;" value="<?php echo get_option('botosub_text_style'); ?>" /> 124 </td> 125 <th class="botosub_bar_class" scope="row">Switch Color</th> 126 <td class="botosub_bar_class"> 127 <input class="bar_input" type="text" name="botosub_switch_color" placeholder="#000" value="<?php echo get_option('botosub_switch_color'); ?>" /> 128 </td> 129 </tr> 130 <tr valign="top"> 131 <th class="botosub_bar_class" scope="row">Background Color</th> 132 <td class="botosub_bar_class"><input class="bar_input" type="text" name="botosub_box_bg_color" placeholder="#fed136" 133 value="<?php echo get_option('botosub_box_bg_color'); ?>"/></td> 172 173 <tr valign="top"> 174 175 <!-- scode --> 176 <th class="botosub_scode_class" scope="row">Image URL</th> 177 <td class="botosub_scode_class"> 178 <input type="text" name="botosub_sc_img" placeholder="" style="width:70%;" value="<?php echo get_option('botosub_sc_img'); ?>" /> 179 </td> 180 134 181 </tr> 135 182 </table> … … 246 293 247 294 248 <!-- Botosub - Newsletters From Messenger Chatbot-->295 <!-- Botosub - SWITCH --> 249 296 <div class="botosub-plugin-outer <?php echo $plugin_class ?> "> 250 297 <div id="botosub-plugin" class="botosub-plugin-style" style="background: <?php … … 284 331 } 285 332 286 333 // SHORTCODE 287 334 function botosub_letter_shortcode_init() { 288 335 // Add Shortcode 289 336 function botosub_letter_shortcode( $atts , $content = null ) { 290 337 291 // PLUGIN TEXT 292 $myOption = (get_option('botosub_text') == FALSE) ? $botosub_newsletter_text : get_option('botosub_text'); 293 294 $div = "<div style='margin: 20px 0; border-radius: 16px; padding: 20px 20px; border: 1px solid #ccc!important;'> 295 <span style='font-size: 1.2em; text-align: center; display: block; margin-bottom: 20px;'> 296 " . $myOption . " 297 </span> 298 <div class='fb-messengermessageus' style='display:block; text-align:center;' 299 messenger_app_id='627891880745321' 300 page_id=" . get_option('botosub_page_id') . " 301 color='blue' 302 size='large' > 338 $botosub_newsletter_text = "Subscribe to our Newsletters from Messenger Chatbot!"; 339 // PLUGIN TITLE 340 $myOption = (get_option('botosub_sc_title') == FALSE) ? $botosub_newsletter_text : get_option('botosub_sc_title'); 341 $sc_title_color = (get_option('botosub_sc_title_color') == FALSE) ? "" : "color:" . get_option('botosub_sc_title_color') . ";"; 342 $sc_desc = (get_option('botosub_sc_desc') == FALSE) ? "" : get_option('botosub_sc_desc'); 343 $sc_desc_color = (get_option('botosub_sc_desc_color') == FALSE) ? "" : "color:" . get_option('botosub_sc_desc_color') . ";"; 344 $sc_bg_color = (get_option('botosub_sc_bg_color') == FALSE) ? "" : "background-color:" . get_option('botosub_sc_bg_color') . ";"; 345 346 $sc_img = (get_option('botosub_sc_img') == FALSE) ? "" : "<img src='" . get_option('botosub_sc_img') . "' style='display:inline-block; max-height:158px; float:left;'>"; 347 348 349 $div = "<div style='border-radius: 16px; padding: 20px 20px; border: 1px solid #ccc!important; text-align:center; overflow:auto; height:200px;" . $sc_bg_color . "'>" . $sc_img . " 350 <div style='display:table-cell; vertical-align:middle; line-height:normal; height:158px;'> 351 <span style='font-size: 1.2em; text-align: center; display: block; margin-bottom: 10px; " . $sc_title_color . "'> 352 " . $myOption . " 353 </span> 354 <span style='margin-bottom:10px; display:block; " . $sc_desc_color . "'>" . $sc_desc . "</span> 355 <div class='fb-messengermessageus' style='display:block; text-align:center;' 356 messenger_app_id='627891880745321' 357 page_id=" . get_option('botosub_page_id') . " 358 color='blue' 359 size='large' > 360 </div> 303 361 </div> 304 362 </div>"; -
botosub/trunk/readme.txt
r1670063 r1673372 4 4 Requires at least: 3.1 5 5 Tested up to: 4.7.5 6 Stable tag: 1. 06 Stable tag: 1.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 59 59 2. Users receive your newsletter from your FB page as a private message. 60 60 3. Bottom Bar Botosub Plugin 61 4. Shortcode for Botosub Plugin 61 62 62 63 == Changelog == 64 65 = 1.1 = 66 67 * Shortcode updated for customization 63 68 64 69 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.