Changeset 2485930
- Timestamp:
- 03/03/2021 04:15:32 PM (5 years ago)
- Location:
- smaily-for-wp
- Files:
-
- 58 added
- 14 deleted
- 12 edited
- 1 copied
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (modified) (previous)
-
tags/3.0.0 (copied) (copied from smaily-for-wp/trunk)
-
tags/3.0.0/action.php (deleted)
-
tags/3.0.0/admin (added)
-
tags/3.0.0/admin/class-smaily-for-wp-admin.php (added)
-
tags/3.0.0/admin/css (added)
-
tags/3.0.0/admin/css/smaily-for-wp-admin.css (added)
-
tags/3.0.0/admin/index.php (added)
-
tags/3.0.0/admin/js (added)
-
tags/3.0.0/admin/js/smaily-for-wp-admin.js (added)
-
tags/3.0.0/admin/partials (added)
-
tags/3.0.0/admin/partials/smaily-for-wp-admin-form.php (added)
-
tags/3.0.0/admin/partials/smaily-for-wp-admin-page.php (added)
-
tags/3.0.0/code (deleted)
-
tags/3.0.0/html (deleted)
-
tags/3.0.0/includes/activator.php (deleted)
-
tags/3.0.0/includes/class-smaily-for-wp-i18n.php (added)
-
tags/3.0.0/includes/class-smaily-for-wp-lifecycle.php (added)
-
tags/3.0.0/includes/class-smaily-for-wp-loader.php (added)
-
tags/3.0.0/includes/class-smaily-for-wp-options.php (added)
-
tags/3.0.0/includes/class-smaily-for-wp-request.php (added)
-
tags/3.0.0/includes/class-smaily-for-wp-template.php (added)
-
tags/3.0.0/includes/class-smaily-for-wp-widget.php (added)
-
tags/3.0.0/includes/class-smaily-for-wp.php (added)
-
tags/3.0.0/includes/index.php (added)
-
tags/3.0.0/includes/subscribe-widget.php (deleted)
-
tags/3.0.0/index.php (added)
-
tags/3.0.0/js (deleted)
-
tags/3.0.0/lang/smaily-for-wp-et.mo (modified) (previous)
-
tags/3.0.0/lang/smaily-for-wp-et.po (modified) (3 diffs)
-
tags/3.0.0/lang/smaily-for-wp.pot (modified) (3 diffs)
-
tags/3.0.0/migrations (added)
-
tags/3.0.0/migrations/index.php (added)
-
tags/3.0.0/migrations/upgrade-3_0_0.php (added)
-
tags/3.0.0/public (added)
-
tags/3.0.0/public/class-smaily-for-wp-public.php (added)
-
tags/3.0.0/public/index.php (added)
-
tags/3.0.0/public/partials (added)
-
tags/3.0.0/public/partials/smaily-for-wp-public-advanced.php (added)
-
tags/3.0.0/public/partials/smaily-for-wp-public-basic.php (added)
-
tags/3.0.0/readme.txt (modified) (3 diffs)
-
tags/3.0.0/smaily-for-wp.php (modified) (2 diffs)
-
tags/3.0.0/uninstall.php (deleted)
-
trunk/action.php (deleted)
-
trunk/admin (added)
-
trunk/admin/class-smaily-for-wp-admin.php (added)
-
trunk/admin/css (added)
-
trunk/admin/css/smaily-for-wp-admin.css (added)
-
trunk/admin/index.php (added)
-
trunk/admin/js (added)
-
trunk/admin/js/smaily-for-wp-admin.js (added)
-
trunk/admin/partials (added)
-
trunk/admin/partials/smaily-for-wp-admin-form.php (added)
-
trunk/admin/partials/smaily-for-wp-admin-page.php (added)
-
trunk/code (deleted)
-
trunk/html (deleted)
-
trunk/includes/activator.php (deleted)
-
trunk/includes/class-smaily-for-wp-i18n.php (added)
-
trunk/includes/class-smaily-for-wp-lifecycle.php (added)
-
trunk/includes/class-smaily-for-wp-loader.php (added)
-
trunk/includes/class-smaily-for-wp-options.php (added)
-
trunk/includes/class-smaily-for-wp-request.php (added)
-
trunk/includes/class-smaily-for-wp-template.php (added)
-
trunk/includes/class-smaily-for-wp-widget.php (added)
-
trunk/includes/class-smaily-for-wp.php (added)
-
trunk/includes/index.php (added)
-
trunk/includes/subscribe-widget.php (deleted)
-
trunk/index.php (added)
-
trunk/js (deleted)
-
trunk/lang/smaily-for-wp-et.mo (modified) (previous)
-
trunk/lang/smaily-for-wp-et.po (modified) (3 diffs)
-
trunk/lang/smaily-for-wp.pot (modified) (3 diffs)
-
trunk/migrations (added)
-
trunk/migrations/index.php (added)
-
trunk/migrations/upgrade-3_0_0.php (added)
-
trunk/public (added)
-
trunk/public/class-smaily-for-wp-public.php (added)
-
trunk/public/index.php (added)
-
trunk/public/partials (added)
-
trunk/public/partials/smaily-for-wp-public-advanced.php (added)
-
trunk/public/partials/smaily-for-wp-public-basic.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/smaily-for-wp.php (modified) (2 diffs)
-
trunk/uninstall.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
smaily-for-wp/tags/3.0.0/lang/smaily-for-wp-et.po
r2451736 r2485930 2 2 msgstr "" 3 3 "Project-Id-Version: Smaily for WP\n" 4 "POT-Creation-Date: 2021-0 1-06 12:29+0200\n"5 "PO-Revision-Date: 2021-0 1-06 14:09+0200\n"4 "POT-Creation-Date: 2021-02-18 11:58+0200\n" 5 "PO-Revision-Date: 2021-02-18 12:01+0200\n" 6 6 "Last-Translator: Smaily <[email protected]>\n" 7 7 "Language-Team: Smaily <[email protected]>\n" … … 18 18 "X-Poedit-SearchPath-0: .\n" 19 19 20 #: a ction.php:5420 #: admin/class-smaily-for-wp-admin.php:190 21 21 msgid "Please enter subdomain!" 22 22 msgstr "Palun sisesta alamdomeen!" 23 23 24 #: a ction.php:6224 #: admin/class-smaily-for-wp-admin.php:194 25 25 msgid "Please enter username!" 26 26 msgstr "Palun sisesta kasutajatunnus!" 27 27 28 #: a ction.php:7028 #: admin/class-smaily-for-wp-admin.php:198 29 29 msgid "Please enter password!" 30 30 msgstr "Palun sisesta parool!" 31 31 32 #: a ction.php:9032 #: admin/class-smaily-for-wp-admin.php:214 33 33 msgid "Wrong credentials" 34 34 msgstr "Valed autentimise tunnused" 35 35 36 #: a ction.php:9736 #: admin/class-smaily-for-wp-admin.php:219 37 37 msgid "Error in subdomain" 38 38 msgstr "Viga alamdomeenis" 39 39 40 #: a ction.php:11140 #: admin/class-smaily-for-wp-admin.php:229 41 41 msgid "Something went wrong with request to Smaily" 42 42 msgstr "Ilmnes probleem Smaily-ga ühendamisel" 43 43 44 #: a ction.php:14644 #: admin/class-smaily-for-wp-admin.php:238 45 45 msgid "Credentials validated." 46 46 msgstr "Autentimise tunnused valideeritud." 47 47 48 #: a ction.php:16348 #: admin/class-smaily-for-wp-admin.php:255 49 49 msgid "Credentials removed." 50 50 msgstr "Autentimise tunnused eemaldatud." 51 51 52 #: a ction.php:18252 #: admin/class-smaily-for-wp-admin.php:272 53 53 msgid "Newsletter subscription form reset to default." 54 54 msgstr "Liitumisvormi kood taasloodud." 55 55 56 #: action.php:208 57 msgid "Could not find any autoresponders!" 58 msgstr "Ei leidnud Automaatvastajaid!" 59 60 #: action.php:232 61 msgid "Autoresponders refreshed." 62 msgstr "Automaatvastajad uuendatud." 63 64 #: action.php:276 56 #: admin/class-smaily-for-wp-admin.php:312 65 57 msgid "Changes saved." 66 58 msgstr "Salvestatud." 67 59 68 #: html/admin/html/form.php:1360 #: admin/partials/smaily-for-wp-admin-form.php:8 69 61 msgid "Your API credentials are valid" 70 62 msgstr "Kasutajatunnused valideeritud" 71 63 72 #: html/admin/html/form.php:1464 #: admin/partials/smaily-for-wp-admin-form.php:9 73 65 msgid "Remove" 74 66 msgstr "Eemalda" 75 67 76 #: html/admin/html/form.php:2168 #: admin/partials/smaily-for-wp-admin-form.php:16 77 69 msgid "Subdomain" 78 70 msgstr "Alamdomeen" 79 71 80 #: html/admin/html/form.php:3172 #: admin/partials/smaily-for-wp-admin-form.php:26 81 73 msgid "API username" 82 74 msgstr "API kasutajatunnus" 83 75 84 #: html/admin/html/form.php:3576 #: admin/partials/smaily-for-wp-admin-form.php:30 85 77 msgid "API password" 86 78 msgstr "API salasõna" 87 79 88 #: html/admin/html/form.php:4080 #: admin/partials/smaily-for-wp-admin-form.php:35 89 81 msgid "How to create API credentials?" 90 82 msgstr "Kuidas luua API kasutaja?" 91 83 92 #: html/admin/html/form.php:4784 #: admin/partials/smaily-for-wp-admin-form.php:42 93 85 msgid "Check" 94 86 msgstr "Kontrolli" 95 87 96 #: html/admin/html/form.php:5388 #: admin/partials/smaily-for-wp-admin-form.php:48 97 89 msgid "Basic" 98 90 msgstr "Tavaseaded" 99 91 100 #: html/admin/html/form.php:5492 #: admin/partials/smaily-for-wp-admin-form.php:49 101 93 msgid "Advanced" 102 94 msgstr "Spetsialisti seaded" 103 95 104 #: html/admin/html/form.php:60 105 msgid "Autoresponders" 106 msgstr "Automaatvastajad" 107 108 #: html/admin/html/form.php:60 109 msgid "Refresh" 110 msgstr "Uuenda" 111 112 #: html/admin/html/form.php:61 113 msgid "Select autoresponder to change regular opt-in functionality" 114 msgstr "Vali automaatika, et muuta tavalist opt-in funktsionaalsust" 115 116 #: html/admin/html/form.php:64 117 msgid "No autoresponder" 118 msgstr "Ilma automaatvastajata vorm" 119 120 #: html/admin/html/form.php:70 121 msgid "No autoresponders. Please click on refresh link to update." 122 msgstr "Automaatvastajad puuduvad. Uuendamiseks vajutage värskenda viidet." 123 124 #: html/admin/html/form.php:77 96 #: admin/partials/smaily-for-wp-admin-form.php:55 125 97 msgid "Newsletter subscription form" 126 98 msgstr "Uudiskirja liitumisvorm" 127 99 128 #: html/admin/html/form.php:77100 #: admin/partials/smaily-for-wp-admin-form.php:55 129 101 msgid "Restore original subscription form" 130 102 msgstr "Taasta algne liitumisvorm" 131 103 132 #: html/admin/html/form.php:77104 #: admin/partials/smaily-for-wp-admin-form.php:55 133 105 msgid "Regenerate" 134 106 msgstr "Taastekita" 135 107 136 #: html/admin/html/form.php:78108 #: admin/partials/smaily-for-wp-admin-form.php:56 137 109 msgid "HTML of subscription form" 138 110 msgstr "Liitumisvormi HTML" 139 111 140 #: html/admin/html/form.php:83112 #: admin/partials/smaily-for-wp-admin-form.php:61 141 113 msgid "Note: When you save under Basic tab, default form will be used." 142 114 msgstr "" 143 115 "Hoiatus: Kui salvestad Tavaseadete vaates, kasutatakse lehel vaikimisi vormi." 144 116 145 #: html/admin/html/form.php:86117 #: admin/partials/smaily-for-wp-admin-form.php:64 146 118 msgid "Save changes" 147 119 msgstr "Salvesta muudatused" 148 120 149 #: html/admin/page.php:26150 msgid "Smaily Word press plugin"151 msgstr "Smaily Word pressi pistikmoodul"152 153 #: html/admin/page.php:27121 #: admin/partials/smaily-for-wp-admin-page.php:3 122 msgid "Smaily WordPress plugin" 123 msgstr "Smaily WordPressi pistikmoodul" 124 125 #: admin/partials/smaily-for-wp-admin-page.php:4 154 126 msgid "Please wait, working..." 155 127 msgstr "Palun oota..." 156 128 157 #: html/form/advanced.php:9 html/form/basic.php:3 158 msgid "Thank you for subscribing to our newsletter." 159 msgstr "Täname, et liitusite meie uudiskirjaga." 160 161 #: html/form/advanced.php:16 html/form/basic.php:10 162 msgid "Email" 163 msgstr "E-post" 164 165 #: html/form/advanced.php:18 html/form/basic.php:12 166 msgid "Name" 167 msgstr "Nimi" 168 169 #: html/form/advanced.php:20 html/form/basic.php:14 170 msgid "Subscribe" 171 msgstr "Liitu" 172 173 #: includes/subscribe-widget.php:18 129 #: includes/class-smaily-for-wp-widget.php:37 174 130 msgid "Smaily newsletter subscription form" 175 131 msgstr "Smaily uudiskirjaga liitumise vorm" 176 132 177 #: includes/ subscribe-widget.php:19133 #: includes/class-smaily-for-wp-widget.php:38 178 134 msgid "Smaily Newsletter Subscription" 179 135 msgstr "Smaily uudiskirjaga liitumine" 180 136 181 #: includes/subscribe-widget.php:63 smaily-for-wp.php:132 137 #: includes/class-smaily-for-wp-widget.php:89 138 #: public/class-smaily-for-wp-public.php:104 182 139 msgid "Smaily credentials not validated. Subscription form will not work!" 183 140 msgstr "Smaily kasutajatunnused on valideerimata. Uudiskirja vorm ei tööta!" 184 141 185 #: includes/subscribe-widget.php:70 smaily-for-wp.php:139 142 #: includes/class-smaily-for-wp-widget.php:96 143 #: public/class-smaily-for-wp-public.php:111 186 144 msgid "Form was not submitted using POST method." 187 145 msgstr "Andmeid peab saatma POST tegevusviisiga." 188 146 189 #: includes/subscribe-widget.php:73 smaily-for-wp.php:142 147 #: includes/class-smaily-for-wp-widget.php:99 148 #: public/class-smaily-for-wp-public.php:114 190 149 msgid "Input does not contain a recognizable email address." 191 150 msgstr "Sisend ei sisalda tuntavat emaili aadressi." 192 151 193 #: includes/subscribe-widget.php:76 smaily-for-wp.php:145 152 #: includes/class-smaily-for-wp-widget.php:102 153 #: public/class-smaily-for-wp-public.php:117 194 154 msgid "" 195 155 "Could not add to subscriber list for an unknown reason. Probably something " … … 199 159 "probleem Smaily-s." 200 160 201 #: includes/ subscribe-widget.php:129161 #: includes/class-smaily-for-wp-widget.php:166 202 162 msgid "Title" 203 163 msgstr "Pealkiri" 204 164 205 #: includes/ subscribe-widget.php:139165 #: includes/class-smaily-for-wp-widget.php:176 206 166 msgid "Display name field?" 207 167 msgstr "Näita nime välja?" 208 168 209 #: includes/ subscribe-widget.php:146169 #: includes/class-smaily-for-wp-widget.php:183 210 170 msgid "Success URL" 211 171 msgstr "Õnnestumise URL" 212 172 213 #: includes/ subscribe-widget.php:154173 #: includes/class-smaily-for-wp-widget.php:191 214 174 msgid "Failure URL" 215 175 msgstr "Ebaõnnestumise URL" 176 177 #: includes/class-smaily-for-wp-widget.php:199 178 msgid "Autoresponders" 179 msgstr "Automaatvastajad" 180 181 #: includes/class-smaily-for-wp-widget.php:201 182 msgid "No autoresponder" 183 msgstr "Ilma automaatvastajata vorm" 184 185 #: public/partials/smaily-for-wp-public-advanced.php:9 186 #: public/partials/smaily-for-wp-public-basic.php:3 187 msgid "Thank you for subscribing to our newsletter." 188 msgstr "Täname, et liitusite meie uudiskirjaga." 189 190 #: public/partials/smaily-for-wp-public-advanced.php:16 191 #: public/partials/smaily-for-wp-public-basic.php:10 192 msgid "Email" 193 msgstr "E-post" 194 195 #: public/partials/smaily-for-wp-public-advanced.php:18 196 #: public/partials/smaily-for-wp-public-basic.php:12 197 msgid "Name" 198 msgstr "Nimi" 199 200 #: public/partials/smaily-for-wp-public-advanced.php:20 201 #: public/partials/smaily-for-wp-public-basic.php:14 202 msgid "Subscribe" 203 msgstr "Liitu" -
smaily-for-wp/tags/3.0.0/lang/smaily-for-wp.pot
r2451736 r2485930 3 3 msgstr "" 4 4 "Project-Id-Version: Smaily for WP\n" 5 "POT-Creation-Date: 2021-0 1-06 14:06+0200\n"5 "POT-Creation-Date: 2021-02-18 12:00+0200\n" 6 6 "PO-Revision-Date: 2021-01-05 20:12+0200\n" 7 7 "Last-Translator: Smaily <[email protected]>\n" … … 19 19 "X-Poedit-SearchPath-0: .\n" 20 20 21 #: a ction.php:5421 #: admin/class-smaily-for-wp-admin.php:190 22 22 msgid "Please enter subdomain!" 23 23 msgstr "" 24 24 25 #: a ction.php:6225 #: admin/class-smaily-for-wp-admin.php:194 26 26 msgid "Please enter username!" 27 27 msgstr "" 28 28 29 #: a ction.php:7029 #: admin/class-smaily-for-wp-admin.php:198 30 30 msgid "Please enter password!" 31 31 msgstr "" 32 32 33 #: a ction.php:9033 #: admin/class-smaily-for-wp-admin.php:214 34 34 msgid "Wrong credentials" 35 35 msgstr "" 36 36 37 #: a ction.php:9737 #: admin/class-smaily-for-wp-admin.php:219 38 38 msgid "Error in subdomain" 39 39 msgstr "" 40 40 41 #: a ction.php:11141 #: admin/class-smaily-for-wp-admin.php:229 42 42 msgid "Something went wrong with request to Smaily" 43 43 msgstr "" 44 44 45 #: a ction.php:14645 #: admin/class-smaily-for-wp-admin.php:238 46 46 msgid "Credentials validated." 47 47 msgstr "" 48 48 49 #: a ction.php:16349 #: admin/class-smaily-for-wp-admin.php:255 50 50 msgid "Credentials removed." 51 51 msgstr "" 52 52 53 #: a ction.php:18253 #: admin/class-smaily-for-wp-admin.php:272 54 54 msgid "Newsletter subscription form reset to default." 55 55 msgstr "" 56 56 57 #: action.php:208 58 msgid "Could not find any autoresponders!" 59 msgstr "" 60 61 #: action.php:232 62 msgid "Autoresponders refreshed." 63 msgstr "" 64 65 #: action.php:276 57 #: admin/class-smaily-for-wp-admin.php:312 66 58 msgid "Changes saved." 67 59 msgstr "" 68 60 69 #: html/admin/html/form.php:1361 #: admin/partials/smaily-for-wp-admin-form.php:8 70 62 msgid "Your API credentials are valid" 71 63 msgstr "" 72 64 73 #: html/admin/html/form.php:1465 #: admin/partials/smaily-for-wp-admin-form.php:9 74 66 msgid "Remove" 75 67 msgstr "" 76 68 77 #: html/admin/html/form.php:2169 #: admin/partials/smaily-for-wp-admin-form.php:16 78 70 msgid "Subdomain" 79 71 msgstr "" 80 72 81 #: html/admin/html/form.php:3173 #: admin/partials/smaily-for-wp-admin-form.php:26 82 74 msgid "API username" 83 75 msgstr "" 84 76 85 #: html/admin/html/form.php:3577 #: admin/partials/smaily-for-wp-admin-form.php:30 86 78 msgid "API password" 87 79 msgstr "" 88 80 89 #: html/admin/html/form.php:4081 #: admin/partials/smaily-for-wp-admin-form.php:35 90 82 msgid "How to create API credentials?" 91 83 msgstr "" 92 84 93 #: html/admin/html/form.php:4785 #: admin/partials/smaily-for-wp-admin-form.php:42 94 86 msgid "Check" 95 87 msgstr "" 96 88 97 #: html/admin/html/form.php:5389 #: admin/partials/smaily-for-wp-admin-form.php:48 98 90 msgid "Basic" 99 91 msgstr "" 100 92 101 #: html/admin/html/form.php:5493 #: admin/partials/smaily-for-wp-admin-form.php:49 102 94 msgid "Advanced" 103 95 msgstr "" 104 96 105 #: html/admin/html/form.php:60 106 msgid "Autoresponders" 107 msgstr "" 108 109 #: html/admin/html/form.php:60 110 msgid "Refresh" 111 msgstr "" 112 113 #: html/admin/html/form.php:61 114 msgid "Select autoresponder to change regular opt-in functionality" 115 msgstr "" 116 117 #: html/admin/html/form.php:64 118 msgid "No autoresponder" 119 msgstr "" 120 121 #: html/admin/html/form.php:70 122 msgid "No autoresponders. Please click on refresh link to update." 123 msgstr "" 124 125 #: html/admin/html/form.php:77 97 #: admin/partials/smaily-for-wp-admin-form.php:55 126 98 msgid "Newsletter subscription form" 127 99 msgstr "" 128 100 129 #: html/admin/html/form.php:77101 #: admin/partials/smaily-for-wp-admin-form.php:55 130 102 msgid "Restore original subscription form" 131 103 msgstr "" 132 104 133 #: html/admin/html/form.php:77105 #: admin/partials/smaily-for-wp-admin-form.php:55 134 106 msgid "Regenerate" 135 107 msgstr "" 136 108 137 #: html/admin/html/form.php:78109 #: admin/partials/smaily-for-wp-admin-form.php:56 138 110 msgid "HTML of subscription form" 139 111 msgstr "" 140 112 141 #: html/admin/html/form.php:83113 #: admin/partials/smaily-for-wp-admin-form.php:61 142 114 msgid "Note: When you save under Basic tab, default form will be used." 143 115 msgstr "" 144 116 145 #: html/admin/html/form.php:86117 #: admin/partials/smaily-for-wp-admin-form.php:64 146 118 msgid "Save changes" 147 119 msgstr "" 148 120 149 #: html/admin/page.php:26150 msgid "Smaily Word press plugin"151 msgstr "" 152 153 #: html/admin/page.php:27121 #: admin/partials/smaily-for-wp-admin-page.php:3 122 msgid "Smaily WordPress plugin" 123 msgstr "" 124 125 #: admin/partials/smaily-for-wp-admin-page.php:4 154 126 msgid "Please wait, working..." 155 127 msgstr "" 156 128 157 #: html/form/advanced.php:9 html/form/basic.php:3 158 msgid "Thank you for subscribing to our newsletter." 159 msgstr "" 160 161 #: html/form/advanced.php:16 html/form/basic.php:10 162 msgid "Email" 163 msgstr "" 164 165 #: html/form/advanced.php:18 html/form/basic.php:12 166 msgid "Name" 167 msgstr "" 168 169 #: html/form/advanced.php:20 html/form/basic.php:14 170 msgid "Subscribe" 171 msgstr "" 172 173 #: includes/subscribe-widget.php:18 129 #: includes/class-smaily-for-wp-widget.php:37 174 130 msgid "Smaily newsletter subscription form" 175 131 msgstr "" 176 132 177 #: includes/ subscribe-widget.php:19133 #: includes/class-smaily-for-wp-widget.php:38 178 134 msgid "Smaily Newsletter Subscription" 179 135 msgstr "" 180 136 181 #: includes/subscribe-widget.php:63 smaily-for-wp.php:132 137 #: includes/class-smaily-for-wp-widget.php:89 138 #: public/class-smaily-for-wp-public.php:104 182 139 msgid "Smaily credentials not validated. Subscription form will not work!" 183 140 msgstr "" 184 141 185 #: includes/subscribe-widget.php:70 smaily-for-wp.php:139 142 #: includes/class-smaily-for-wp-widget.php:96 143 #: public/class-smaily-for-wp-public.php:111 186 144 msgid "Form was not submitted using POST method." 187 145 msgstr "" 188 146 189 #: includes/subscribe-widget.php:73 smaily-for-wp.php:142 147 #: includes/class-smaily-for-wp-widget.php:99 148 #: public/class-smaily-for-wp-public.php:114 190 149 msgid "Input does not contain a recognizable email address." 191 150 msgstr "" 192 151 193 #: includes/subscribe-widget.php:76 smaily-for-wp.php:145 152 #: includes/class-smaily-for-wp-widget.php:102 153 #: public/class-smaily-for-wp-public.php:117 194 154 msgid "" 195 155 "Could not add to subscriber list for an unknown reason. Probably something " … … 197 157 msgstr "" 198 158 199 #: includes/ subscribe-widget.php:129159 #: includes/class-smaily-for-wp-widget.php:166 200 160 msgid "Title" 201 161 msgstr "" 202 162 203 #: includes/ subscribe-widget.php:139163 #: includes/class-smaily-for-wp-widget.php:176 204 164 msgid "Display name field?" 205 165 msgstr "" 206 166 207 #: includes/ subscribe-widget.php:146167 #: includes/class-smaily-for-wp-widget.php:183 208 168 msgid "Success URL" 209 169 msgstr "" 210 170 211 #: includes/ subscribe-widget.php:154171 #: includes/class-smaily-for-wp-widget.php:191 212 172 msgid "Failure URL" 213 173 msgstr "" 174 175 #: includes/class-smaily-for-wp-widget.php:199 176 msgid "Autoresponders" 177 msgstr "" 178 179 #: includes/class-smaily-for-wp-widget.php:201 180 msgid "No autoresponder" 181 msgstr "" 182 183 #: public/partials/smaily-for-wp-public-advanced.php:9 184 #: public/partials/smaily-for-wp-public-basic.php:3 185 msgid "Thank you for subscribing to our newsletter." 186 msgstr "" 187 188 #: public/partials/smaily-for-wp-public-advanced.php:16 189 #: public/partials/smaily-for-wp-public-basic.php:10 190 msgid "Email" 191 msgstr "" 192 193 #: public/partials/smaily-for-wp-public-advanced.php:18 194 #: public/partials/smaily-for-wp-public-basic.php:12 195 msgid "Name" 196 msgstr "" 197 198 #: public/partials/smaily-for-wp-public-advanced.php:20 199 #: public/partials/smaily-for-wp-public-basic.php:14 200 msgid "Subscribe" 201 msgstr "" -
smaily-for-wp/tags/3.0.0/readme.txt
r2451736 r2485930 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Stable tag: 2.3.06 Stable tag: 3.0.0 7 7 Tags: widget, plugin, sidebar, api, mail, email, marketing, smaily 8 8 Tested up to: 5.6.0 … … 76 76 == Changelog == 77 77 78 = 3.0.0 = 79 - Autoresponders can be now be configured in widget settings and per widget. 80 - Fix spelling of plugin's admin page title. 81 - Plugin migrations are now automatically executed when plugin is updated. 82 78 83 = 2.3.0 = 79 84 - Restructured plugin localizations (see upgrade notice section) … … 107 112 == Upgrade Notice == 108 113 114 = 3.0.0 = 115 116 Since version 3.0.0, autoresponders can be configured in widget settings. 117 109 118 = 2.3.0 = 110 119 -
smaily-for-wp/tags/3.0.0/smaily-for-wp.php
r2451736 r2485930 10 10 * Text Domain: smaily-for-wp 11 11 * Description: Smaily newsletter subscription form. 12 * Version: 2.3.012 * Version: 3.0.0 13 13 * Author: Sendsmaily LLC 14 14 * Author URI: https://smaily.com … … 17 17 */ 18 18 19 // Exit if accessed directly. 20 if ( ! defined( 'ABSPATH' ) ) exit; 19 // If this file is called directly, abort. 20 if ( ! defined( 'ABSPATH' ) ) { 21 die; 22 } 21 23 22 define( 'SMLY4WP_PLUGIN_VERSION', '2.3.0' ); 23 // Absolute URL to the plugin, for HTML markup. 24 /** 25 * Current plugin version. 26 */ 27 define( 'SMLY4WP_PLUGIN_VERSION', '3.0.0' ); 28 29 /** 30 * Absolute URL to the Smaily for WP plugin directory. 31 */ 24 32 define( 'SMLY4WP_PLUGIN_URL', plugins_url( '', __FILE__ ) ); 33 34 /** 35 * Absolute path to the Smaily for WP plugin directory. 36 */ 25 37 define( 'SMLY4WP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 26 38 27 require_once( SMLY4WP_PLUGIN_PATH . 'includes/activator.php' ); 28 require_once( SMLY4WP_PLUGIN_PATH . 'action.php' ); 29 register_activation_hook( __FILE__, 'smaily_install' ); 39 /** 40 * Absolute path to the core plugin file. 41 */ 42 define( 'SMLY4WP_PLUGIN_FILE', __FILE__ ); 30 43 31 44 /** 32 * Initialize. 33 * 34 * @param mixed $hook Hook. 35 * @return void 45 * The core plugin class. 36 46 */ 37 function smaily_enqueue( $hook ) { 38 wp_enqueue_script( 'smaily', plugins_url( '/js/default.js', __FILE__ ), array( 'jquery' ) ); 39 wp_localize_script( 'smaily', 'smaily', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); 40 } 41 add_action( 'wp_enqueue_scripts', 'smaily_enqueue' ); 42 add_action( 'admin_enqueue_scripts', 'smaily_enqueue' ); 47 require SMLY4WP_PLUGIN_PATH . 'includes/class-smaily-for-wp.php'; 43 48 44 49 /** 45 * Load plugin textdomain.50 * Begins execution of the plugin. 46 51 * 47 * @since 1.0.0 52 * Since everything within the plugin is registered via hooks, 53 * then kicking off the plugin from this point in the file does 54 * not affect the page life cycle. 55 * 56 * @since 3.0.0 48 57 */ 49 function smaily_load_textdomain() { 50 load_plugin_textdomain( 'smaily-for-wp', false, plugin_basename( SMLY4WP_PLUGIN_PATH ) . '/lang' ); 58 function run_smaily_for_wp() { 59 $plugin = new Smaily_For_WP(); 60 $plugin->run(); 51 61 } 52 add_action( 'plugins_loaded', 'smaily_load_textdomain' ); 53 54 /** 55 * Load subscribe widget. 56 */ 57 function smaily_subscription_widget_init() { 58 require_once( SMLY4WP_PLUGIN_PATH . 'includes/subscribe-widget.php' ); 59 register_widget( 'Smaily_Newsletter_Subscription_Widget' ); 60 } 61 add_action( 'widgets_init', 'smaily_subscription_widget_init' ); 62 63 /** 64 * Render admin page. 65 * 66 * @return void 67 */ 68 function smaily_admin_render() { 69 global $wpdb; 70 71 // Create admin template. 72 require_once( SMLY4WP_PLUGIN_PATH . '/code/Template.php' ); 73 $template = new Smaily_Plugin_Template( 'html/admin/page.php' ); 74 75 // Load configuration data. 76 $table_name = esc_sql( $wpdb->prefix . 'smaily_config' ); 77 $data = $wpdb->get_row( "SELECT * FROM `$table_name` LIMIT 1" ); 78 $template->assign( (array) $data ); 79 80 // Load autoresponders. 81 $table_name = esc_sql( $wpdb->prefix . 'smaily_autoresponders' ); 82 $data = $wpdb->get_results( "SELECT * FROM `$table_name`" ); 83 $template->assign( 'autoresponders', $data ); 84 85 // Add menu elements. 86 add_menu_page( 'smaily', 'Smaily', 'manage_options', SMLY4WP_PLUGIN_PATH, '', plugins_url( 'gfx/icon.png', __FILE__ ) ); 87 add_submenu_page( 'smaily', 'Newsletter subscription form', 'Form', 'manage_options', SMLY4WP_PLUGIN_PATH, array( $template, 'dispatch' ) ); 88 } 89 add_action( 'admin_menu', 'smaily_admin_render' ); 90 91 92 /** 93 * Render smaily form using shortcode. 94 * 95 * @param array $atts shortcode attributes. 96 * @return string 97 */ 98 function smaily_shortcode_render( $atts ) { 99 global $wpdb; 100 101 // Load configuration data. 102 $table_name = esc_sql( $wpdb->prefix . 'smaily_config' ); 103 $config = (array) $wpdb->get_row( "SELECT * FROM `$table_name` LIMIT 1" ); 104 105 // Parse attributes out of shortcode tag. 106 $shortcode_atts = shortcode_atts( 107 array( 108 'success_url' => get_site_url(), 109 'failure_url' => get_site_url(), 110 'show_name' => false, 111 'autoresponder_id' => '', 112 ), 113 $atts 114 ); 115 $config['success_url'] = $shortcode_atts['success_url']; 116 $config['failure_url'] = $shortcode_atts['failure_url']; 117 $config['show_name'] = $shortcode_atts['show_name']; 118 $config['autoresponder_id'] = $shortcode_atts['autoresponder_id']; 119 120 // Create admin template. 121 require_once( SMLY4WP_PLUGIN_PATH . '/code/Template.php' ); 122 $file = ( isset( $config['is_advanced'] ) && '1' === $config['is_advanced'] ) ? 'advanced.php' : 'basic.php'; 123 $template = new Smaily_Plugin_Template( 'html/form/' . $file ); 124 $template->assign( $config ); 125 // Display responses on Smaily subscription form. 126 $form_has_response = false; 127 $form_is_successful = false; 128 $response_message = null; 129 130 if ( ! isset( $config['api_credentials'] ) || empty( $config['api_credentials'] ) ) { 131 $form_has_response = true; 132 $response_message = __( 'Smaily credentials not validated. Subscription form will not work!', 'smaily-for-wp' ); 133 } elseif ( isset( $_GET['code'] ) && (int) $_GET['code'] === 101 ) { 134 $form_is_successful = true; 135 } elseif ( isset( $_GET['code'] ) || ! empty( $_GET['code'] ) ) { 136 $form_has_response = true; 137 switch ( (int) $_GET['code'] ) { 138 case 201: 139 $response_message = __( 'Form was not submitted using POST method.', 'smaily-for-wp' ); 140 break; 141 case 204: 142 $response_message = __( 'Input does not contain a recognizable email address.', 'smaily-for-wp' ); 143 break; 144 default: 145 $response_message = __( 'Could not add to subscriber list for an unknown reason. Probably something in Smaily.', 'smaily-for-wp' ); 146 break; 147 } 148 } 149 150 $template->assign( 151 array( 152 'form_has_response' => $form_has_response, 153 'response_message' => $response_message, 154 'form_is_successful' => $form_is_successful, 155 ) 156 ); 157 158 // Render template. 159 return $template->render(); 160 } 161 add_shortcode( 'smaily_for_wp_newsletter_form', 'smaily_shortcode_render' ); 62 run_smaily_for_wp(); -
smaily-for-wp/trunk/lang/smaily-for-wp-et.po
r2451736 r2485930 2 2 msgstr "" 3 3 "Project-Id-Version: Smaily for WP\n" 4 "POT-Creation-Date: 2021-0 1-06 12:29+0200\n"5 "PO-Revision-Date: 2021-0 1-06 14:09+0200\n"4 "POT-Creation-Date: 2021-02-18 11:58+0200\n" 5 "PO-Revision-Date: 2021-02-18 12:01+0200\n" 6 6 "Last-Translator: Smaily <[email protected]>\n" 7 7 "Language-Team: Smaily <[email protected]>\n" … … 18 18 "X-Poedit-SearchPath-0: .\n" 19 19 20 #: a ction.php:5420 #: admin/class-smaily-for-wp-admin.php:190 21 21 msgid "Please enter subdomain!" 22 22 msgstr "Palun sisesta alamdomeen!" 23 23 24 #: a ction.php:6224 #: admin/class-smaily-for-wp-admin.php:194 25 25 msgid "Please enter username!" 26 26 msgstr "Palun sisesta kasutajatunnus!" 27 27 28 #: a ction.php:7028 #: admin/class-smaily-for-wp-admin.php:198 29 29 msgid "Please enter password!" 30 30 msgstr "Palun sisesta parool!" 31 31 32 #: a ction.php:9032 #: admin/class-smaily-for-wp-admin.php:214 33 33 msgid "Wrong credentials" 34 34 msgstr "Valed autentimise tunnused" 35 35 36 #: a ction.php:9736 #: admin/class-smaily-for-wp-admin.php:219 37 37 msgid "Error in subdomain" 38 38 msgstr "Viga alamdomeenis" 39 39 40 #: a ction.php:11140 #: admin/class-smaily-for-wp-admin.php:229 41 41 msgid "Something went wrong with request to Smaily" 42 42 msgstr "Ilmnes probleem Smaily-ga ühendamisel" 43 43 44 #: a ction.php:14644 #: admin/class-smaily-for-wp-admin.php:238 45 45 msgid "Credentials validated." 46 46 msgstr "Autentimise tunnused valideeritud." 47 47 48 #: a ction.php:16348 #: admin/class-smaily-for-wp-admin.php:255 49 49 msgid "Credentials removed." 50 50 msgstr "Autentimise tunnused eemaldatud." 51 51 52 #: a ction.php:18252 #: admin/class-smaily-for-wp-admin.php:272 53 53 msgid "Newsletter subscription form reset to default." 54 54 msgstr "Liitumisvormi kood taasloodud." 55 55 56 #: action.php:208 57 msgid "Could not find any autoresponders!" 58 msgstr "Ei leidnud Automaatvastajaid!" 59 60 #: action.php:232 61 msgid "Autoresponders refreshed." 62 msgstr "Automaatvastajad uuendatud." 63 64 #: action.php:276 56 #: admin/class-smaily-for-wp-admin.php:312 65 57 msgid "Changes saved." 66 58 msgstr "Salvestatud." 67 59 68 #: html/admin/html/form.php:1360 #: admin/partials/smaily-for-wp-admin-form.php:8 69 61 msgid "Your API credentials are valid" 70 62 msgstr "Kasutajatunnused valideeritud" 71 63 72 #: html/admin/html/form.php:1464 #: admin/partials/smaily-for-wp-admin-form.php:9 73 65 msgid "Remove" 74 66 msgstr "Eemalda" 75 67 76 #: html/admin/html/form.php:2168 #: admin/partials/smaily-for-wp-admin-form.php:16 77 69 msgid "Subdomain" 78 70 msgstr "Alamdomeen" 79 71 80 #: html/admin/html/form.php:3172 #: admin/partials/smaily-for-wp-admin-form.php:26 81 73 msgid "API username" 82 74 msgstr "API kasutajatunnus" 83 75 84 #: html/admin/html/form.php:3576 #: admin/partials/smaily-for-wp-admin-form.php:30 85 77 msgid "API password" 86 78 msgstr "API salasõna" 87 79 88 #: html/admin/html/form.php:4080 #: admin/partials/smaily-for-wp-admin-form.php:35 89 81 msgid "How to create API credentials?" 90 82 msgstr "Kuidas luua API kasutaja?" 91 83 92 #: html/admin/html/form.php:4784 #: admin/partials/smaily-for-wp-admin-form.php:42 93 85 msgid "Check" 94 86 msgstr "Kontrolli" 95 87 96 #: html/admin/html/form.php:5388 #: admin/partials/smaily-for-wp-admin-form.php:48 97 89 msgid "Basic" 98 90 msgstr "Tavaseaded" 99 91 100 #: html/admin/html/form.php:5492 #: admin/partials/smaily-for-wp-admin-form.php:49 101 93 msgid "Advanced" 102 94 msgstr "Spetsialisti seaded" 103 95 104 #: html/admin/html/form.php:60 105 msgid "Autoresponders" 106 msgstr "Automaatvastajad" 107 108 #: html/admin/html/form.php:60 109 msgid "Refresh" 110 msgstr "Uuenda" 111 112 #: html/admin/html/form.php:61 113 msgid "Select autoresponder to change regular opt-in functionality" 114 msgstr "Vali automaatika, et muuta tavalist opt-in funktsionaalsust" 115 116 #: html/admin/html/form.php:64 117 msgid "No autoresponder" 118 msgstr "Ilma automaatvastajata vorm" 119 120 #: html/admin/html/form.php:70 121 msgid "No autoresponders. Please click on refresh link to update." 122 msgstr "Automaatvastajad puuduvad. Uuendamiseks vajutage värskenda viidet." 123 124 #: html/admin/html/form.php:77 96 #: admin/partials/smaily-for-wp-admin-form.php:55 125 97 msgid "Newsletter subscription form" 126 98 msgstr "Uudiskirja liitumisvorm" 127 99 128 #: html/admin/html/form.php:77100 #: admin/partials/smaily-for-wp-admin-form.php:55 129 101 msgid "Restore original subscription form" 130 102 msgstr "Taasta algne liitumisvorm" 131 103 132 #: html/admin/html/form.php:77104 #: admin/partials/smaily-for-wp-admin-form.php:55 133 105 msgid "Regenerate" 134 106 msgstr "Taastekita" 135 107 136 #: html/admin/html/form.php:78108 #: admin/partials/smaily-for-wp-admin-form.php:56 137 109 msgid "HTML of subscription form" 138 110 msgstr "Liitumisvormi HTML" 139 111 140 #: html/admin/html/form.php:83112 #: admin/partials/smaily-for-wp-admin-form.php:61 141 113 msgid "Note: When you save under Basic tab, default form will be used." 142 114 msgstr "" 143 115 "Hoiatus: Kui salvestad Tavaseadete vaates, kasutatakse lehel vaikimisi vormi." 144 116 145 #: html/admin/html/form.php:86117 #: admin/partials/smaily-for-wp-admin-form.php:64 146 118 msgid "Save changes" 147 119 msgstr "Salvesta muudatused" 148 120 149 #: html/admin/page.php:26150 msgid "Smaily Word press plugin"151 msgstr "Smaily Word pressi pistikmoodul"152 153 #: html/admin/page.php:27121 #: admin/partials/smaily-for-wp-admin-page.php:3 122 msgid "Smaily WordPress plugin" 123 msgstr "Smaily WordPressi pistikmoodul" 124 125 #: admin/partials/smaily-for-wp-admin-page.php:4 154 126 msgid "Please wait, working..." 155 127 msgstr "Palun oota..." 156 128 157 #: html/form/advanced.php:9 html/form/basic.php:3 158 msgid "Thank you for subscribing to our newsletter." 159 msgstr "Täname, et liitusite meie uudiskirjaga." 160 161 #: html/form/advanced.php:16 html/form/basic.php:10 162 msgid "Email" 163 msgstr "E-post" 164 165 #: html/form/advanced.php:18 html/form/basic.php:12 166 msgid "Name" 167 msgstr "Nimi" 168 169 #: html/form/advanced.php:20 html/form/basic.php:14 170 msgid "Subscribe" 171 msgstr "Liitu" 172 173 #: includes/subscribe-widget.php:18 129 #: includes/class-smaily-for-wp-widget.php:37 174 130 msgid "Smaily newsletter subscription form" 175 131 msgstr "Smaily uudiskirjaga liitumise vorm" 176 132 177 #: includes/ subscribe-widget.php:19133 #: includes/class-smaily-for-wp-widget.php:38 178 134 msgid "Smaily Newsletter Subscription" 179 135 msgstr "Smaily uudiskirjaga liitumine" 180 136 181 #: includes/subscribe-widget.php:63 smaily-for-wp.php:132 137 #: includes/class-smaily-for-wp-widget.php:89 138 #: public/class-smaily-for-wp-public.php:104 182 139 msgid "Smaily credentials not validated. Subscription form will not work!" 183 140 msgstr "Smaily kasutajatunnused on valideerimata. Uudiskirja vorm ei tööta!" 184 141 185 #: includes/subscribe-widget.php:70 smaily-for-wp.php:139 142 #: includes/class-smaily-for-wp-widget.php:96 143 #: public/class-smaily-for-wp-public.php:111 186 144 msgid "Form was not submitted using POST method." 187 145 msgstr "Andmeid peab saatma POST tegevusviisiga." 188 146 189 #: includes/subscribe-widget.php:73 smaily-for-wp.php:142 147 #: includes/class-smaily-for-wp-widget.php:99 148 #: public/class-smaily-for-wp-public.php:114 190 149 msgid "Input does not contain a recognizable email address." 191 150 msgstr "Sisend ei sisalda tuntavat emaili aadressi." 192 151 193 #: includes/subscribe-widget.php:76 smaily-for-wp.php:145 152 #: includes/class-smaily-for-wp-widget.php:102 153 #: public/class-smaily-for-wp-public.php:117 194 154 msgid "" 195 155 "Could not add to subscriber list for an unknown reason. Probably something " … … 199 159 "probleem Smaily-s." 200 160 201 #: includes/ subscribe-widget.php:129161 #: includes/class-smaily-for-wp-widget.php:166 202 162 msgid "Title" 203 163 msgstr "Pealkiri" 204 164 205 #: includes/ subscribe-widget.php:139165 #: includes/class-smaily-for-wp-widget.php:176 206 166 msgid "Display name field?" 207 167 msgstr "Näita nime välja?" 208 168 209 #: includes/ subscribe-widget.php:146169 #: includes/class-smaily-for-wp-widget.php:183 210 170 msgid "Success URL" 211 171 msgstr "Õnnestumise URL" 212 172 213 #: includes/ subscribe-widget.php:154173 #: includes/class-smaily-for-wp-widget.php:191 214 174 msgid "Failure URL" 215 175 msgstr "Ebaõnnestumise URL" 176 177 #: includes/class-smaily-for-wp-widget.php:199 178 msgid "Autoresponders" 179 msgstr "Automaatvastajad" 180 181 #: includes/class-smaily-for-wp-widget.php:201 182 msgid "No autoresponder" 183 msgstr "Ilma automaatvastajata vorm" 184 185 #: public/partials/smaily-for-wp-public-advanced.php:9 186 #: public/partials/smaily-for-wp-public-basic.php:3 187 msgid "Thank you for subscribing to our newsletter." 188 msgstr "Täname, et liitusite meie uudiskirjaga." 189 190 #: public/partials/smaily-for-wp-public-advanced.php:16 191 #: public/partials/smaily-for-wp-public-basic.php:10 192 msgid "Email" 193 msgstr "E-post" 194 195 #: public/partials/smaily-for-wp-public-advanced.php:18 196 #: public/partials/smaily-for-wp-public-basic.php:12 197 msgid "Name" 198 msgstr "Nimi" 199 200 #: public/partials/smaily-for-wp-public-advanced.php:20 201 #: public/partials/smaily-for-wp-public-basic.php:14 202 msgid "Subscribe" 203 msgstr "Liitu" -
smaily-for-wp/trunk/lang/smaily-for-wp.pot
r2451736 r2485930 3 3 msgstr "" 4 4 "Project-Id-Version: Smaily for WP\n" 5 "POT-Creation-Date: 2021-0 1-06 14:06+0200\n"5 "POT-Creation-Date: 2021-02-18 12:00+0200\n" 6 6 "PO-Revision-Date: 2021-01-05 20:12+0200\n" 7 7 "Last-Translator: Smaily <[email protected]>\n" … … 19 19 "X-Poedit-SearchPath-0: .\n" 20 20 21 #: a ction.php:5421 #: admin/class-smaily-for-wp-admin.php:190 22 22 msgid "Please enter subdomain!" 23 23 msgstr "" 24 24 25 #: a ction.php:6225 #: admin/class-smaily-for-wp-admin.php:194 26 26 msgid "Please enter username!" 27 27 msgstr "" 28 28 29 #: a ction.php:7029 #: admin/class-smaily-for-wp-admin.php:198 30 30 msgid "Please enter password!" 31 31 msgstr "" 32 32 33 #: a ction.php:9033 #: admin/class-smaily-for-wp-admin.php:214 34 34 msgid "Wrong credentials" 35 35 msgstr "" 36 36 37 #: a ction.php:9737 #: admin/class-smaily-for-wp-admin.php:219 38 38 msgid "Error in subdomain" 39 39 msgstr "" 40 40 41 #: a ction.php:11141 #: admin/class-smaily-for-wp-admin.php:229 42 42 msgid "Something went wrong with request to Smaily" 43 43 msgstr "" 44 44 45 #: a ction.php:14645 #: admin/class-smaily-for-wp-admin.php:238 46 46 msgid "Credentials validated." 47 47 msgstr "" 48 48 49 #: a ction.php:16349 #: admin/class-smaily-for-wp-admin.php:255 50 50 msgid "Credentials removed." 51 51 msgstr "" 52 52 53 #: a ction.php:18253 #: admin/class-smaily-for-wp-admin.php:272 54 54 msgid "Newsletter subscription form reset to default." 55 55 msgstr "" 56 56 57 #: action.php:208 58 msgid "Could not find any autoresponders!" 59 msgstr "" 60 61 #: action.php:232 62 msgid "Autoresponders refreshed." 63 msgstr "" 64 65 #: action.php:276 57 #: admin/class-smaily-for-wp-admin.php:312 66 58 msgid "Changes saved." 67 59 msgstr "" 68 60 69 #: html/admin/html/form.php:1361 #: admin/partials/smaily-for-wp-admin-form.php:8 70 62 msgid "Your API credentials are valid" 71 63 msgstr "" 72 64 73 #: html/admin/html/form.php:1465 #: admin/partials/smaily-for-wp-admin-form.php:9 74 66 msgid "Remove" 75 67 msgstr "" 76 68 77 #: html/admin/html/form.php:2169 #: admin/partials/smaily-for-wp-admin-form.php:16 78 70 msgid "Subdomain" 79 71 msgstr "" 80 72 81 #: html/admin/html/form.php:3173 #: admin/partials/smaily-for-wp-admin-form.php:26 82 74 msgid "API username" 83 75 msgstr "" 84 76 85 #: html/admin/html/form.php:3577 #: admin/partials/smaily-for-wp-admin-form.php:30 86 78 msgid "API password" 87 79 msgstr "" 88 80 89 #: html/admin/html/form.php:4081 #: admin/partials/smaily-for-wp-admin-form.php:35 90 82 msgid "How to create API credentials?" 91 83 msgstr "" 92 84 93 #: html/admin/html/form.php:4785 #: admin/partials/smaily-for-wp-admin-form.php:42 94 86 msgid "Check" 95 87 msgstr "" 96 88 97 #: html/admin/html/form.php:5389 #: admin/partials/smaily-for-wp-admin-form.php:48 98 90 msgid "Basic" 99 91 msgstr "" 100 92 101 #: html/admin/html/form.php:5493 #: admin/partials/smaily-for-wp-admin-form.php:49 102 94 msgid "Advanced" 103 95 msgstr "" 104 96 105 #: html/admin/html/form.php:60 106 msgid "Autoresponders" 107 msgstr "" 108 109 #: html/admin/html/form.php:60 110 msgid "Refresh" 111 msgstr "" 112 113 #: html/admin/html/form.php:61 114 msgid "Select autoresponder to change regular opt-in functionality" 115 msgstr "" 116 117 #: html/admin/html/form.php:64 118 msgid "No autoresponder" 119 msgstr "" 120 121 #: html/admin/html/form.php:70 122 msgid "No autoresponders. Please click on refresh link to update." 123 msgstr "" 124 125 #: html/admin/html/form.php:77 97 #: admin/partials/smaily-for-wp-admin-form.php:55 126 98 msgid "Newsletter subscription form" 127 99 msgstr "" 128 100 129 #: html/admin/html/form.php:77101 #: admin/partials/smaily-for-wp-admin-form.php:55 130 102 msgid "Restore original subscription form" 131 103 msgstr "" 132 104 133 #: html/admin/html/form.php:77105 #: admin/partials/smaily-for-wp-admin-form.php:55 134 106 msgid "Regenerate" 135 107 msgstr "" 136 108 137 #: html/admin/html/form.php:78109 #: admin/partials/smaily-for-wp-admin-form.php:56 138 110 msgid "HTML of subscription form" 139 111 msgstr "" 140 112 141 #: html/admin/html/form.php:83113 #: admin/partials/smaily-for-wp-admin-form.php:61 142 114 msgid "Note: When you save under Basic tab, default form will be used." 143 115 msgstr "" 144 116 145 #: html/admin/html/form.php:86117 #: admin/partials/smaily-for-wp-admin-form.php:64 146 118 msgid "Save changes" 147 119 msgstr "" 148 120 149 #: html/admin/page.php:26150 msgid "Smaily Word press plugin"151 msgstr "" 152 153 #: html/admin/page.php:27121 #: admin/partials/smaily-for-wp-admin-page.php:3 122 msgid "Smaily WordPress plugin" 123 msgstr "" 124 125 #: admin/partials/smaily-for-wp-admin-page.php:4 154 126 msgid "Please wait, working..." 155 127 msgstr "" 156 128 157 #: html/form/advanced.php:9 html/form/basic.php:3 158 msgid "Thank you for subscribing to our newsletter." 159 msgstr "" 160 161 #: html/form/advanced.php:16 html/form/basic.php:10 162 msgid "Email" 163 msgstr "" 164 165 #: html/form/advanced.php:18 html/form/basic.php:12 166 msgid "Name" 167 msgstr "" 168 169 #: html/form/advanced.php:20 html/form/basic.php:14 170 msgid "Subscribe" 171 msgstr "" 172 173 #: includes/subscribe-widget.php:18 129 #: includes/class-smaily-for-wp-widget.php:37 174 130 msgid "Smaily newsletter subscription form" 175 131 msgstr "" 176 132 177 #: includes/ subscribe-widget.php:19133 #: includes/class-smaily-for-wp-widget.php:38 178 134 msgid "Smaily Newsletter Subscription" 179 135 msgstr "" 180 136 181 #: includes/subscribe-widget.php:63 smaily-for-wp.php:132 137 #: includes/class-smaily-for-wp-widget.php:89 138 #: public/class-smaily-for-wp-public.php:104 182 139 msgid "Smaily credentials not validated. Subscription form will not work!" 183 140 msgstr "" 184 141 185 #: includes/subscribe-widget.php:70 smaily-for-wp.php:139 142 #: includes/class-smaily-for-wp-widget.php:96 143 #: public/class-smaily-for-wp-public.php:111 186 144 msgid "Form was not submitted using POST method." 187 145 msgstr "" 188 146 189 #: includes/subscribe-widget.php:73 smaily-for-wp.php:142 147 #: includes/class-smaily-for-wp-widget.php:99 148 #: public/class-smaily-for-wp-public.php:114 190 149 msgid "Input does not contain a recognizable email address." 191 150 msgstr "" 192 151 193 #: includes/subscribe-widget.php:76 smaily-for-wp.php:145 152 #: includes/class-smaily-for-wp-widget.php:102 153 #: public/class-smaily-for-wp-public.php:117 194 154 msgid "" 195 155 "Could not add to subscriber list for an unknown reason. Probably something " … … 197 157 msgstr "" 198 158 199 #: includes/ subscribe-widget.php:129159 #: includes/class-smaily-for-wp-widget.php:166 200 160 msgid "Title" 201 161 msgstr "" 202 162 203 #: includes/ subscribe-widget.php:139163 #: includes/class-smaily-for-wp-widget.php:176 204 164 msgid "Display name field?" 205 165 msgstr "" 206 166 207 #: includes/ subscribe-widget.php:146167 #: includes/class-smaily-for-wp-widget.php:183 208 168 msgid "Success URL" 209 169 msgstr "" 210 170 211 #: includes/ subscribe-widget.php:154171 #: includes/class-smaily-for-wp-widget.php:191 212 172 msgid "Failure URL" 213 173 msgstr "" 174 175 #: includes/class-smaily-for-wp-widget.php:199 176 msgid "Autoresponders" 177 msgstr "" 178 179 #: includes/class-smaily-for-wp-widget.php:201 180 msgid "No autoresponder" 181 msgstr "" 182 183 #: public/partials/smaily-for-wp-public-advanced.php:9 184 #: public/partials/smaily-for-wp-public-basic.php:3 185 msgid "Thank you for subscribing to our newsletter." 186 msgstr "" 187 188 #: public/partials/smaily-for-wp-public-advanced.php:16 189 #: public/partials/smaily-for-wp-public-basic.php:10 190 msgid "Email" 191 msgstr "" 192 193 #: public/partials/smaily-for-wp-public-advanced.php:18 194 #: public/partials/smaily-for-wp-public-basic.php:12 195 msgid "Name" 196 msgstr "" 197 198 #: public/partials/smaily-for-wp-public-advanced.php:20 199 #: public/partials/smaily-for-wp-public-basic.php:14 200 msgid "Subscribe" 201 msgstr "" -
smaily-for-wp/trunk/readme.txt
r2451736 r2485930 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Stable tag: 2.3.06 Stable tag: 3.0.0 7 7 Tags: widget, plugin, sidebar, api, mail, email, marketing, smaily 8 8 Tested up to: 5.6.0 … … 76 76 == Changelog == 77 77 78 = 3.0.0 = 79 - Autoresponders can be now be configured in widget settings and per widget. 80 - Fix spelling of plugin's admin page title. 81 - Plugin migrations are now automatically executed when plugin is updated. 82 78 83 = 2.3.0 = 79 84 - Restructured plugin localizations (see upgrade notice section) … … 107 112 == Upgrade Notice == 108 113 114 = 3.0.0 = 115 116 Since version 3.0.0, autoresponders can be configured in widget settings. 117 109 118 = 2.3.0 = 110 119 -
smaily-for-wp/trunk/smaily-for-wp.php
r2451736 r2485930 10 10 * Text Domain: smaily-for-wp 11 11 * Description: Smaily newsletter subscription form. 12 * Version: 2.3.012 * Version: 3.0.0 13 13 * Author: Sendsmaily LLC 14 14 * Author URI: https://smaily.com … … 17 17 */ 18 18 19 // Exit if accessed directly. 20 if ( ! defined( 'ABSPATH' ) ) exit; 19 // If this file is called directly, abort. 20 if ( ! defined( 'ABSPATH' ) ) { 21 die; 22 } 21 23 22 define( 'SMLY4WP_PLUGIN_VERSION', '2.3.0' ); 23 // Absolute URL to the plugin, for HTML markup. 24 /** 25 * Current plugin version. 26 */ 27 define( 'SMLY4WP_PLUGIN_VERSION', '3.0.0' ); 28 29 /** 30 * Absolute URL to the Smaily for WP plugin directory. 31 */ 24 32 define( 'SMLY4WP_PLUGIN_URL', plugins_url( '', __FILE__ ) ); 33 34 /** 35 * Absolute path to the Smaily for WP plugin directory. 36 */ 25 37 define( 'SMLY4WP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 26 38 27 require_once( SMLY4WP_PLUGIN_PATH . 'includes/activator.php' ); 28 require_once( SMLY4WP_PLUGIN_PATH . 'action.php' ); 29 register_activation_hook( __FILE__, 'smaily_install' ); 39 /** 40 * Absolute path to the core plugin file. 41 */ 42 define( 'SMLY4WP_PLUGIN_FILE', __FILE__ ); 30 43 31 44 /** 32 * Initialize. 33 * 34 * @param mixed $hook Hook. 35 * @return void 45 * The core plugin class. 36 46 */ 37 function smaily_enqueue( $hook ) { 38 wp_enqueue_script( 'smaily', plugins_url( '/js/default.js', __FILE__ ), array( 'jquery' ) ); 39 wp_localize_script( 'smaily', 'smaily', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); 40 } 41 add_action( 'wp_enqueue_scripts', 'smaily_enqueue' ); 42 add_action( 'admin_enqueue_scripts', 'smaily_enqueue' ); 47 require SMLY4WP_PLUGIN_PATH . 'includes/class-smaily-for-wp.php'; 43 48 44 49 /** 45 * Load plugin textdomain.50 * Begins execution of the plugin. 46 51 * 47 * @since 1.0.0 52 * Since everything within the plugin is registered via hooks, 53 * then kicking off the plugin from this point in the file does 54 * not affect the page life cycle. 55 * 56 * @since 3.0.0 48 57 */ 49 function smaily_load_textdomain() { 50 load_plugin_textdomain( 'smaily-for-wp', false, plugin_basename( SMLY4WP_PLUGIN_PATH ) . '/lang' ); 58 function run_smaily_for_wp() { 59 $plugin = new Smaily_For_WP(); 60 $plugin->run(); 51 61 } 52 add_action( 'plugins_loaded', 'smaily_load_textdomain' ); 53 54 /** 55 * Load subscribe widget. 56 */ 57 function smaily_subscription_widget_init() { 58 require_once( SMLY4WP_PLUGIN_PATH . 'includes/subscribe-widget.php' ); 59 register_widget( 'Smaily_Newsletter_Subscription_Widget' ); 60 } 61 add_action( 'widgets_init', 'smaily_subscription_widget_init' ); 62 63 /** 64 * Render admin page. 65 * 66 * @return void 67 */ 68 function smaily_admin_render() { 69 global $wpdb; 70 71 // Create admin template. 72 require_once( SMLY4WP_PLUGIN_PATH . '/code/Template.php' ); 73 $template = new Smaily_Plugin_Template( 'html/admin/page.php' ); 74 75 // Load configuration data. 76 $table_name = esc_sql( $wpdb->prefix . 'smaily_config' ); 77 $data = $wpdb->get_row( "SELECT * FROM `$table_name` LIMIT 1" ); 78 $template->assign( (array) $data ); 79 80 // Load autoresponders. 81 $table_name = esc_sql( $wpdb->prefix . 'smaily_autoresponders' ); 82 $data = $wpdb->get_results( "SELECT * FROM `$table_name`" ); 83 $template->assign( 'autoresponders', $data ); 84 85 // Add menu elements. 86 add_menu_page( 'smaily', 'Smaily', 'manage_options', SMLY4WP_PLUGIN_PATH, '', plugins_url( 'gfx/icon.png', __FILE__ ) ); 87 add_submenu_page( 'smaily', 'Newsletter subscription form', 'Form', 'manage_options', SMLY4WP_PLUGIN_PATH, array( $template, 'dispatch' ) ); 88 } 89 add_action( 'admin_menu', 'smaily_admin_render' ); 90 91 92 /** 93 * Render smaily form using shortcode. 94 * 95 * @param array $atts shortcode attributes. 96 * @return string 97 */ 98 function smaily_shortcode_render( $atts ) { 99 global $wpdb; 100 101 // Load configuration data. 102 $table_name = esc_sql( $wpdb->prefix . 'smaily_config' ); 103 $config = (array) $wpdb->get_row( "SELECT * FROM `$table_name` LIMIT 1" ); 104 105 // Parse attributes out of shortcode tag. 106 $shortcode_atts = shortcode_atts( 107 array( 108 'success_url' => get_site_url(), 109 'failure_url' => get_site_url(), 110 'show_name' => false, 111 'autoresponder_id' => '', 112 ), 113 $atts 114 ); 115 $config['success_url'] = $shortcode_atts['success_url']; 116 $config['failure_url'] = $shortcode_atts['failure_url']; 117 $config['show_name'] = $shortcode_atts['show_name']; 118 $config['autoresponder_id'] = $shortcode_atts['autoresponder_id']; 119 120 // Create admin template. 121 require_once( SMLY4WP_PLUGIN_PATH . '/code/Template.php' ); 122 $file = ( isset( $config['is_advanced'] ) && '1' === $config['is_advanced'] ) ? 'advanced.php' : 'basic.php'; 123 $template = new Smaily_Plugin_Template( 'html/form/' . $file ); 124 $template->assign( $config ); 125 // Display responses on Smaily subscription form. 126 $form_has_response = false; 127 $form_is_successful = false; 128 $response_message = null; 129 130 if ( ! isset( $config['api_credentials'] ) || empty( $config['api_credentials'] ) ) { 131 $form_has_response = true; 132 $response_message = __( 'Smaily credentials not validated. Subscription form will not work!', 'smaily-for-wp' ); 133 } elseif ( isset( $_GET['code'] ) && (int) $_GET['code'] === 101 ) { 134 $form_is_successful = true; 135 } elseif ( isset( $_GET['code'] ) || ! empty( $_GET['code'] ) ) { 136 $form_has_response = true; 137 switch ( (int) $_GET['code'] ) { 138 case 201: 139 $response_message = __( 'Form was not submitted using POST method.', 'smaily-for-wp' ); 140 break; 141 case 204: 142 $response_message = __( 'Input does not contain a recognizable email address.', 'smaily-for-wp' ); 143 break; 144 default: 145 $response_message = __( 'Could not add to subscriber list for an unknown reason. Probably something in Smaily.', 'smaily-for-wp' ); 146 break; 147 } 148 } 149 150 $template->assign( 151 array( 152 'form_has_response' => $form_has_response, 153 'response_message' => $response_message, 154 'form_is_successful' => $form_is_successful, 155 ) 156 ); 157 158 // Render template. 159 return $template->render(); 160 } 161 add_shortcode( 'smaily_for_wp_newsletter_form', 'smaily_shortcode_render' ); 62 run_smaily_for_wp();
Note: See TracChangeset
for help on using the changeset viewer.