| @@ -1,74 +1,78 @@ | ||
| 1 | -<style> | |
| 2 | -#TB_window { width:50% !important; height: 100px !important; | |
| 3 | -margin-left: 25% !important; | |
| 4 | -left: 0% !important; | |
| 5 | -} | |
| 6 | -</style> | |
| 7 | -<?php add_thickbox();?> | |
| 8 | -<script type="text/javascript"> | |
| 9 | -function share_html_code_snippet(){ | |
| 10 | -tb_show("Share on","#TB_inline?width=500&height=75&inlineId=show_share_icons_ihs&class=thickbox"); | |
| 11 | -} | |
| 12 | -</script> | |
| 13 | - | |
| 14 | - | |
| 15 | - | |
| 16 | 1 | <?php |
| 17 | -function wp_ihsap_admin_notice() | |
| 2 | +function xyz_ihs_admin_notice() | |
| 18 | 3 | { |
| 19 | - | |
| 4 | + add_thickbox(); | |
| 20 | 5 | $sharelink_text_array_ihs = array |
| 21 | 6 | ( |
| 22 | - "I use Insert HTML Code Snippet wordpress plugin from @xyzscripts and you should too.", | |
| 23 | - "Insert HTML Code Snippet wordpress plugin from @xyzscripts is awesome", | |
| 7 | + "I use Insert HTML Snippet wordpress plugin from @xyzscripts and you should too.", | |
| 8 | + "Insert HTML Snippet wordpress plugin from @xyzscripts is awesome", | |
| 24 | 9 | "Thanks @xyzscripts for developing such a wonderful wordpress plugin for inserting html", |
| 25 | - "I was looking for a HTML Code Snippet insertion plugin and I found this. Thanks @xyzscripts", | |
| 26 | - "Its very easy to use Insert HTML Code Snippet wordpress plugin from @xyzscripts", | |
| 27 | - "I installed Insert HTML Code Snippet from @xyzscripts,it works flawlessly", | |
| 28 | - "Insert HTML Code Snippet wordpress plugin that i use works terrific", | |
| 29 | - "I am using Insert HTML Code Snippet wordpress plugin from @xyzscripts and I like it", | |
| 30 | - "The Insert HTML Code Snippet plugin from @xyzscripts is simple and works fine", | |
| 10 | + "I was looking for a HTML Snippet insertion plugin and I found this. Thanks @xyzscripts", | |
| 11 | + "Its very easy to use Insert HTML Snippet wordpress plugin from @xyzscripts", | |
| 12 | + "I installed Insert HTML Snippet from @xyzscripts,it works flawlessly", | |
| 13 | + "Insert HTML Snippet wordpress plugin that i use works terrific", | |
| 14 | + "I am using Insert HTML Snippet wordpress plugin from @xyzscripts and I like it", | |
| 15 | + "The Insert HTML Snippet plugin from @xyzscripts is simple and works fine", | |
| 31 | 16 | "I've been using this Snippet plugin for a while now and it is really good", |
| 32 | - "Insert HTML Code Snippet wordpress plugin is a fantastic plugin", | |
| 33 | - "Insert HTML Code Snippet wordpress plugin is easy to use and works great. Thank you!", | |
| 34 | - "Good and flexible Insert HTML Code Snippet plugin especially for beginners", | |
| 35 | - "The best Insert HTML Code Snippet wordpress plugin I have used ! THANKS @xyzscripts", | |
| 17 | + "Insert HTML Snippet wordpress plugin is a fantastic plugin", | |
| 18 | + "Insert HTML Snippet wordpress plugin is easy to use and works great. Thank you!", | |
| 19 | + "Good and flexible Insert HTML Snippet plugin especially for beginners", | |
| 20 | + "The best Insert HTML Snippet wordpress plugin I have used ! THANKS @xyzscripts", | |
| 36 | 21 | ); |
| 37 | 22 | $sharelink_text_ihs = array_rand($sharelink_text_array_ihs, 1); |
| 38 | 23 | $sharelink_text_ihs = $sharelink_text_array_ihs[$sharelink_text_ihs]; |
| 24 | +$xyz_ihs_link = admin_url('admin.php?page=insert-html-snippet-settings&ihs_blink=en'); | |
| 25 | +$xyz_ihs_link = wp_nonce_url($xyz_ihs_link,'ihs-blk'); | |
| 26 | +$xyz_ihs_notice = admin_url('admin.php?page=insert-html-snippet-settings&ihs_notice=hide'); | |
| 27 | +$xyz_ihs_notice = wp_nonce_url($xyz_ihs_notice,'ihs-shw'); | |
| 39 | 28 | |
| 40 | 29 | |
| 41 | - echo '<div id="ihs_notice_td" class="error" style="color: #666666;margin-left: 2px;background: none repeat scroll 0pt 0pt infobackground; border: 1px solid inactivecaption; padding: 5px;line-height:16px;"> | |
| 42 | - <p>It looks like you have been enjoying using <a href="https://wordpress.org/plugins/insert-html-snippet/" target="_blank"> Insert HTML Code Snippet </a> plugin from Xyzscripts for atleast 30 days.Would you consider supporting us with the continued development of the plugin using any of the below methods?</p> | |
| 30 | + echo '<style> | |
| 31 | + #TB_window { width:50% !important; height: 100px !important; | |
| 32 | + margin-left: 25% !important; | |
| 33 | + left: 0% !important; | |
| 34 | + } | |
| 35 | + </style> | |
| 36 | + <script type="text/javascript"> | |
| 37 | + function xyz_ihs_share_snippet(){ | |
| 38 | + tb_show("Share on","#TB_inline?width=500&height=75&inlineId=show_share_icons_ihs&class=thickbox"); | |
| 39 | + } | |
| 40 | + </script> | |
| 41 | + <div id="xyz_ihs_notice_td" class="error" style="color: #666666;margin-left: 2px; padding: 5px;line-height:16px;"> | |
| 42 | + <p>Thank you for using <a href="https://wordpress.org/plugins/insert-html-snippet/" target="_blank">Insert HTML Snippet</a> plugin from <a href="https://xyzscripts.com/" target="_blank">xyzscripts.com</a>. Would you consider supporting us with the continued development of the plugin using any of the below methods?</p> | |
| 43 | 43 | <p> |
| 44 | - <a href="https://wordpress.org/support/view/plugin-reviews/insert-html-snippet" class="button" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Rate it 5★\'s on wordpress</a>'; | |
| 44 | + <a href="https://wordpress.org/support/plugin/insert-html-snippet/reviews/" class="button xyz_ihs_rate_btn" target="_blank">Rate it 5★\'s on wordpress</a>'; | |
| 45 | + | |
| 45 | 46 | if(get_option('xyz_credit_link')=="0") |
| 46 | - echo '<a class="button xyz_ihs_backlink" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Enable Backlink</a>'; | |
| 47 | + echo '<a href="'.$xyz_ihs_link.'" class="button xyz_ihs_backlink_btn xyz_blink">Enable Backlink</a>'; | |
| 47 | 48 | |
| 48 | - echo '<a class="button" onclick=share_html_code_snippet(); style="color:black;text-decoration:none;margin-right:4px;">Share on</a> | |
| 49 | + echo '<a class="button xyz_ihs_share_btn" onclick=xyz_ihs_share_snippet();>Share on</a> | |
| 49 | 50 | |
| 50 | - <a href="admin.php?page=insert-html-snippet-settings&ihsap_notice=hide" class="button" style="color:black;text-decoration:none;margin-right:4px;">Don\'t Show This Again</a> | |
| 51 | + <a href="https://xyzscripts.com/donate/5" class="button xyz_ihs_donate_btn" target="_blank">Donate</a> | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + <a href="'.$xyz_ihs_notice.'" class="button xyz_ihs_show_btn">Don\'t Show This Again</a> | |
| 51 | 56 | </p> |
| 52 | 57 | |
| 53 | 58 | <div id="show_share_icons_ihs" style="display: none;"> |
| 54 | - <a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="http://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/insert-html-snippet/&text='.$sharelink_text_ihs.'" target="_blank">Facebook</a> | |
| 55 | - <a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://twitter.com/share?url=https://wordpress.org/plugins/insert-html-snippet/&text='.$sharelink_text_ihs.'" target="_blank">Twitter</a> | |
| 56 | - <a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://www.linkedin.com/shareArticle?mini=true&url=https://wordpress.org/plugins/insert-html-snippet/" target="_blank">LinkedIn</a> | |
| 57 | - <a class="button" style="background-color:#dd4b39;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://plus.google.com/share?&hl=en&url=https://wordpress.org/plugins/insert-html-snippet/" target="_blank">google+</a> | |
| 59 | + <a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="https://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/insert-html-snippet/&text='.$sharelink_text_ihs.'" target="_blank">Facebook</a> | |
| 60 | + <a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://twitter.com/share?url=https://wordpress.org/plugins/insert-html-snippet/&text='.$sharelink_text_ihs.'" target="_blank">Twitter</a> | |
| 61 | + <a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://www.linkedin.com/shareArticle?mini=true&url=https://wordpress.org/plugins/insert-html-snippet/" target="_blank">LinkedIn</a> | |
| 58 | 62 | </div> |
| 59 | 63 | </div>'; |
| 60 | 64 | |
| 61 | 65 | } |
| 62 | -$ihsap_installed_date = get_option('ihsap_installed_date'); | |
| 63 | -if ($ihsap_installed_date=="") { | |
| 64 | - $ihsap_installed_date = time(); | |
| 66 | +$xyz_ihs_installed_date = get_option('xyz_ihs_installed_date'); | |
| 67 | +if ($xyz_ihs_installed_date=="") { | |
| 68 | + $xyz_ihs_installed_date = time(); | |
| 65 | 69 | } |
| 66 | 70 | |
| 67 | -if($ihsap_installed_date < ( time() - (30*24*60*60) )) | |
| 71 | +if($xyz_ihs_installed_date < ( time() - (30*24*60*60) )) | |
| 68 | 72 | { |
| 69 | - if (get_option('xyz_ihsap_dnt_shw_notice') != "hide") | |
| 73 | + if (get_option('xyz_ihs_dnt_shw_notice') != "hide") | |
| 70 | 74 | { |
| 71 | - add_action('admin_notices', 'wp_ihsap_admin_notice'); | |
| 75 | + add_action('admin_notices', 'xyz_ihs_admin_notice'); | |
| 72 | 76 | } |
| 73 | 77 | } |
| 74 | 78 | ?> |