| @@ -132,147 +132,147 @@ | ||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | public static function gtranslate(): array { |
| 135 | 135 | return [ |
| 136 | - 'af' => esc_attr__( 'Afrikaans', 'floating-button' ), | |
| 137 | - 'sq' => esc_attr__( 'Albanian', 'floating-button' ), | |
| 138 | - 'am' => esc_attr__( 'Amharic', 'floating-button' ), | |
| 139 | - 'ar' => esc_attr__( 'Arabic', 'floating-button' ), | |
| 140 | - 'hy' => esc_attr__( 'Armenian', 'floating-button' ), | |
| 141 | - 'az' => esc_attr__( 'Azerbaijani', 'floating-button' ), | |
| 142 | - 'eu' => esc_attr__( 'Basque', 'floating-button' ), | |
| 143 | - 'be' => esc_attr__( 'Belarusian', 'floating-button' ), | |
| 144 | - 'bn' => esc_attr__( 'Bengali', 'floating-button' ), | |
| 145 | - 'bs' => esc_attr__( 'Bosnian', 'floating-button' ), | |
| 146 | - 'bg' => esc_attr__( 'Bulgarian', 'floating-button' ), | |
| 147 | - 'ca' => esc_attr__( 'Catalan', 'floating-button' ), | |
| 148 | - 'ceb' => esc_attr__( 'Cebuano', 'floating-button' ), | |
| 149 | - 'ny' => esc_attr__( 'Chichewa', 'floating-button' ), | |
| 150 | - 'co' => esc_attr__( 'Corsican', 'floating-button' ), | |
| 151 | - 'hr' => esc_attr__( 'Croatian', 'floating-button' ), | |
| 152 | - 'cs' => esc_attr__( 'Czech', 'floating-button' ), | |
| 153 | - 'da' => esc_attr__( 'Danish', 'floating-button' ), | |
| 154 | - 'nl' => esc_attr__( 'Dutch', 'floating-button' ), | |
| 155 | - 'en' => esc_attr__( 'English', 'floating-button' ), | |
| 156 | - 'eo' => esc_attr__( 'Esperanto', 'floating-button' ), | |
| 157 | - 'et' => esc_attr__( 'Estonian', 'floating-button' ), | |
| 158 | - 'tl' => esc_attr__( 'Filipino', 'floating-button' ), | |
| 159 | - 'fi' => esc_attr__( 'Finnish', 'floating-button' ), | |
| 160 | - 'fr' => esc_attr__( 'French', 'floating-button' ), | |
| 161 | - 'fy' => esc_attr__( 'Frisian', 'floating-button' ), | |
| 162 | - 'gl' => esc_attr__( 'Galician', 'floating-button' ), | |
| 163 | - 'ka' => esc_attr__( 'Georgian', 'floating-button' ), | |
| 164 | - 'de' => esc_attr__( 'German', 'floating-button' ), | |
| 165 | - 'el' => esc_attr__( 'Greek', 'floating-button' ), | |
| 166 | - 'gu' => esc_attr__( 'Gujarati', 'floating-button' ), | |
| 167 | - 'ht' => esc_attr__( 'Haitian Creole', 'floating-button' ), | |
| 168 | - 'ha' => esc_attr__( 'Hausa', 'floating-button' ), | |
| 169 | - 'haw' => esc_attr__( 'Hawaiian', 'floating-button' ), | |
| 170 | - 'iw' => esc_attr__( 'Hebrew', 'floating-button' ), | |
| 171 | - 'hi' => esc_attr__( 'Hindi', 'floating-button' ), | |
| 172 | - 'hmn' => esc_attr__( 'Hmong', 'floating-button' ), | |
| 173 | - 'hu' => esc_attr__( 'Hungarian', 'floating-button' ), | |
| 174 | - 'is' => esc_attr__( 'Icelandic', 'floating-button' ), | |
| 175 | - 'ig' => esc_attr__( 'Igbo', 'floating-button' ), | |
| 176 | - 'id' => esc_attr__( 'Indonesian', 'floating-button' ), | |
| 177 | - 'ga' => esc_attr__( 'Irish', 'floating-button' ), | |
| 178 | - 'it' => esc_attr__( 'Italian', 'floating-button' ), | |
| 179 | - 'ja' => esc_attr__( 'Japanese', 'floating-button' ), | |
| 180 | - 'jw' => esc_attr__( 'Javanese', 'floating-button' ), | |
| 181 | - 'kn' => esc_attr__( 'Kannada', 'floating-button' ), | |
| 182 | - 'kk' => esc_attr__( 'Kazakh', 'floating-button' ), | |
| 183 | - 'km' => esc_attr__( 'Khmer', 'floating-button' ), | |
| 184 | - 'ko' => esc_attr__( 'Korean', 'floating-button' ), | |
| 185 | - 'ku' => esc_attr__( 'Kurdish (Kurmanji)', 'floating-button' ), | |
| 186 | - 'ky' => esc_attr__( 'Kyrgyz', 'floating-button' ), | |
| 187 | - 'lo' => esc_attr__( 'Lao', 'floating-button' ), | |
| 188 | - 'la' => esc_attr__( 'Latin', 'floating-button' ), | |
| 189 | - 'lv' => esc_attr__( 'Latvian', 'floating-button' ), | |
| 190 | - 'lb' => esc_attr__( 'Luxembourgish', 'floating-button' ), | |
| 191 | - 'mk' => esc_attr__( 'Macedonian', 'floating-button' ), | |
| 192 | - 'mg' => esc_attr__( 'Malagasy', 'floating-button' ), | |
| 193 | - 'ms' => esc_attr__( 'Malay', 'floating-button' ), | |
| 194 | - 'ml' => esc_attr__( 'Malayalam', 'floating-button' ), | |
| 195 | - 'mt' => esc_attr__( 'Maltese', 'floating-button' ), | |
| 196 | - 'mi' => esc_attr__( 'Maori', 'floating-button' ), | |
| 197 | - 'mr' => esc_attr__( 'Marathi', 'floating-button' ), | |
| 198 | - 'mn' => esc_attr__( 'Mongolian', 'floating-button' ), | |
| 199 | - 'my' => esc_attr__( 'Myanmar (Burmese)', 'floating-button' ), | |
| 200 | - 'ne' => esc_attr__( 'Nepali', 'floating-button' ), | |
| 201 | - 'no' => esc_attr__( 'Norwegian', 'floating-button' ), | |
| 202 | - 'ps' => esc_attr__( 'Pashto', 'floating-button' ), | |
| 203 | - 'fa' => esc_attr__( 'Persian', 'floating-button' ), | |
| 204 | - 'pl' => esc_attr__( 'Polish', 'floating-button' ), | |
| 205 | - 'pt' => esc_attr__( 'Portuguese', 'floating-button' ), | |
| 206 | - 'pa' => esc_attr__( 'Punjabi', 'floating-button' ), | |
| 207 | - 'ro' => esc_attr__( 'Romanian', 'floating-button' ), | |
| 208 | - 'ru' => esc_attr__( 'Russian', 'floating-button' ), | |
| 209 | - 'sm' => esc_attr__( 'Samoan', 'floating-button' ), | |
| 210 | - 'gd' => esc_attr__( 'Scottish Gaelic', 'floating-button' ), | |
| 211 | - 'sr' => esc_attr__( 'Serbian', 'floating-button' ), | |
| 212 | - 'st' => esc_attr__( 'Sesotho', 'floating-button' ), | |
| 213 | - 'sn' => esc_attr__( 'Shona', 'floating-button' ), | |
| 214 | - 'sd' => esc_attr__( 'Sindhi', 'floating-button' ), | |
| 215 | - 'si' => esc_attr__( 'Sinhala', 'floating-button' ), | |
| 216 | - 'sk' => esc_attr__( 'Slovak', 'floating-button' ), | |
| 217 | - 'sl' => esc_attr__( 'Slovenian', 'floating-button' ), | |
| 218 | - 'so' => esc_attr__( 'Somali', 'floating-button' ), | |
| 219 | - 'es' => esc_attr__( 'Spanish', 'floating-button' ), | |
| 220 | - 'su' => esc_attr__( 'Sudanese', 'floating-button' ), | |
| 221 | - 'sw' => esc_attr__( 'Swahili', 'floating-button' ), | |
| 222 | - 'sv' => esc_attr__( 'Swedish', 'floating-button' ), | |
| 223 | - 'tg' => esc_attr__( 'Tajik', 'floating-button' ), | |
| 224 | - 'ta' => esc_attr__( 'Tamil', 'floating-button' ), | |
| 225 | - 'te' => esc_attr__( 'Telugu', 'floating-button' ), | |
| 226 | - 'th' => esc_attr__( 'Thai', 'floating-button' ), | |
| 227 | - 'tr' => esc_attr__( 'Turkish', 'floating-button' ), | |
| 228 | - 'uk' => esc_attr__( 'Ukrainian', 'floating-button' ), | |
| 229 | - 'ur' => esc_attr__( 'Urdu', 'floating-button' ), | |
| 230 | - 'uz' => esc_attr__( 'Uzbek', 'floating-button' ), | |
| 231 | - 'vi' => esc_attr__( 'Vietnamese', 'floating-button' ), | |
| 232 | - 'cy' => esc_attr__( 'Welsh', 'floating-button' ), | |
| 233 | - 'xh' => esc_attr__( 'Xhosa', 'floating-button' ), | |
| 234 | - 'yi' => esc_attr__( 'Yiddish', 'floating-button' ), | |
| 235 | - 'yo' => esc_attr__( 'Yoruba', 'floating-button' ), | |
| 236 | - 'zu' => esc_attr__( 'Zulu', 'floating-button' ), | |
| 136 | + 'af' => esc_attr__( 'Afrikaans', 'wp-coder' ), | |
| 137 | + 'sq' => esc_attr__( 'Albanian', 'wp-coder' ), | |
| 138 | + 'am' => esc_attr__( 'Amharic', 'wp-coder' ), | |
| 139 | + 'ar' => esc_attr__( 'Arabic', 'wp-coder' ), | |
| 140 | + 'hy' => esc_attr__( 'Armenian', 'wp-coder' ), | |
| 141 | + 'az' => esc_attr__( 'Azerbaijani', 'wp-coder' ), | |
| 142 | + 'eu' => esc_attr__( 'Basque', 'wp-coder' ), | |
| 143 | + 'be' => esc_attr__( 'Belarusian', 'wp-coder' ), | |
| 144 | + 'bn' => esc_attr__( 'Bengali', 'wp-coder' ), | |
| 145 | + 'bs' => esc_attr__( 'Bosnian', 'wp-coder' ), | |
| 146 | + 'bg' => esc_attr__( 'Bulgarian', 'wp-coder' ), | |
| 147 | + 'ca' => esc_attr__( 'Catalan', 'wp-coder' ), | |
| 148 | + 'ceb' => esc_attr__( 'Cebuano', 'wp-coder' ), | |
| 149 | + 'ny' => esc_attr__( 'Chichewa', 'wp-coder' ), | |
| 150 | + 'co' => esc_attr__( 'Corsican', 'wp-coder' ), | |
| 151 | + 'hr' => esc_attr__( 'Croatian', 'wp-coder' ), | |
| 152 | + 'cs' => esc_attr__( 'Czech', 'wp-coder' ), | |
| 153 | + 'da' => esc_attr__( 'Danish', 'wp-coder' ), | |
| 154 | + 'nl' => esc_attr__( 'Dutch', 'wp-coder' ), | |
| 155 | + 'en' => esc_attr__( 'English', 'wp-coder' ), | |
| 156 | + 'eo' => esc_attr__( 'Esperanto', 'wp-coder' ), | |
| 157 | + 'et' => esc_attr__( 'Estonian', 'wp-coder' ), | |
| 158 | + 'tl' => esc_attr__( 'Filipino', 'wp-coder' ), | |
| 159 | + 'fi' => esc_attr__( 'Finnish', 'wp-coder' ), | |
| 160 | + 'fr' => esc_attr__( 'French', 'wp-coder' ), | |
| 161 | + 'fy' => esc_attr__( 'Frisian', 'wp-coder' ), | |
| 162 | + 'gl' => esc_attr__( 'Galician', 'wp-coder' ), | |
| 163 | + 'ka' => esc_attr__( 'Georgian', 'wp-coder' ), | |
| 164 | + 'de' => esc_attr__( 'German', 'wp-coder' ), | |
| 165 | + 'el' => esc_attr__( 'Greek', 'wp-coder' ), | |
| 166 | + 'gu' => esc_attr__( 'Gujarati', 'wp-coder' ), | |
| 167 | + 'ht' => esc_attr__( 'Haitian Creole', 'wp-coder' ), | |
| 168 | + 'ha' => esc_attr__( 'Hausa', 'wp-coder' ), | |
| 169 | + 'haw' => esc_attr__( 'Hawaiian', 'wp-coder' ), | |
| 170 | + 'iw' => esc_attr__( 'Hebrew', 'wp-coder' ), | |
| 171 | + 'hi' => esc_attr__( 'Hindi', 'wp-coder' ), | |
| 172 | + 'hmn' => esc_attr__( 'Hmong', 'wp-coder' ), | |
| 173 | + 'hu' => esc_attr__( 'Hungarian', 'wp-coder' ), | |
| 174 | + 'is' => esc_attr__( 'Icelandic', 'wp-coder' ), | |
| 175 | + 'ig' => esc_attr__( 'Igbo', 'wp-coder' ), | |
| 176 | + 'id' => esc_attr__( 'Indonesian', 'wp-coder' ), | |
| 177 | + 'ga' => esc_attr__( 'Irish', 'wp-coder' ), | |
| 178 | + 'it' => esc_attr__( 'Italian', 'wp-coder' ), | |
| 179 | + 'ja' => esc_attr__( 'Japanese', 'wp-coder' ), | |
| 180 | + 'jw' => esc_attr__( 'Javanese', 'wp-coder' ), | |
| 181 | + 'kn' => esc_attr__( 'Kannada', 'wp-coder' ), | |
| 182 | + 'kk' => esc_attr__( 'Kazakh', 'wp-coder' ), | |
| 183 | + 'km' => esc_attr__( 'Khmer', 'wp-coder' ), | |
| 184 | + 'ko' => esc_attr__( 'Korean', 'wp-coder' ), | |
| 185 | + 'ku' => esc_attr__( 'Kurdish (Kurmanji)', 'wp-coder' ), | |
| 186 | + 'ky' => esc_attr__( 'Kyrgyz', 'wp-coder' ), | |
| 187 | + 'lo' => esc_attr__( 'Lao', 'wp-coder' ), | |
| 188 | + 'la' => esc_attr__( 'Latin', 'wp-coder' ), | |
| 189 | + 'lv' => esc_attr__( 'Latvian', 'wp-coder' ), | |
| 190 | + 'lb' => esc_attr__( 'Luxembourgish', 'wp-coder' ), | |
| 191 | + 'mk' => esc_attr__( 'Macedonian', 'wp-coder' ), | |
| 192 | + 'mg' => esc_attr__( 'Malagasy', 'wp-coder' ), | |
| 193 | + 'ms' => esc_attr__( 'Malay', 'wp-coder' ), | |
| 194 | + 'ml' => esc_attr__( 'Malayalam', 'wp-coder' ), | |
| 195 | + 'mt' => esc_attr__( 'Maltese', 'wp-coder' ), | |
| 196 | + 'mi' => esc_attr__( 'Maori', 'wp-coder' ), | |
| 197 | + 'mr' => esc_attr__( 'Marathi', 'wp-coder' ), | |
| 198 | + 'mn' => esc_attr__( 'Mongolian', 'wp-coder' ), | |
| 199 | + 'my' => esc_attr__( 'Myanmar (Burmese)', 'wp-coder' ), | |
| 200 | + 'ne' => esc_attr__( 'Nepali', 'wp-coder' ), | |
| 201 | + 'no' => esc_attr__( 'Norwegian', 'wp-coder' ), | |
| 202 | + 'ps' => esc_attr__( 'Pashto', 'wp-coder' ), | |
| 203 | + 'fa' => esc_attr__( 'Persian', 'wp-coder' ), | |
| 204 | + 'pl' => esc_attr__( 'Polish', 'wp-coder' ), | |
| 205 | + 'pt' => esc_attr__( 'Portuguese', 'wp-coder' ), | |
| 206 | + 'pa' => esc_attr__( 'Punjabi', 'wp-coder' ), | |
| 207 | + 'ro' => esc_attr__( 'Romanian', 'wp-coder' ), | |
| 208 | + 'ru' => esc_attr__( 'Russian', 'wp-coder' ), | |
| 209 | + 'sm' => esc_attr__( 'Samoan', 'wp-coder' ), | |
| 210 | + 'gd' => esc_attr__( 'Scottish Gaelic', 'wp-coder' ), | |
| 211 | + 'sr' => esc_attr__( 'Serbian', 'wp-coder' ), | |
| 212 | + 'st' => esc_attr__( 'Sesotho', 'wp-coder' ), | |
| 213 | + 'sn' => esc_attr__( 'Shona', 'wp-coder' ), | |
| 214 | + 'sd' => esc_attr__( 'Sindhi', 'wp-coder' ), | |
| 215 | + 'si' => esc_attr__( 'Sinhala', 'wp-coder' ), | |
| 216 | + 'sk' => esc_attr__( 'Slovak', 'wp-coder' ), | |
| 217 | + 'sl' => esc_attr__( 'Slovenian', 'wp-coder' ), | |
| 218 | + 'so' => esc_attr__( 'Somali', 'wp-coder' ), | |
| 219 | + 'es' => esc_attr__( 'Spanish', 'wp-coder' ), | |
| 220 | + 'su' => esc_attr__( 'Sudanese', 'wp-coder' ), | |
| 221 | + 'sw' => esc_attr__( 'Swahili', 'wp-coder' ), | |
| 222 | + 'sv' => esc_attr__( 'Swedish', 'wp-coder' ), | |
| 223 | + 'tg' => esc_attr__( 'Tajik', 'wp-coder' ), | |
| 224 | + 'ta' => esc_attr__( 'Tamil', 'wp-coder' ), | |
| 225 | + 'te' => esc_attr__( 'Telugu', 'wp-coder' ), | |
| 226 | + 'th' => esc_attr__( 'Thai', 'wp-coder' ), | |
| 227 | + 'tr' => esc_attr__( 'Turkish', 'wp-coder' ), | |
| 228 | + 'uk' => esc_attr__( 'Ukrainian', 'wp-coder' ), | |
| 229 | + 'ur' => esc_attr__( 'Urdu', 'wp-coder' ), | |
| 230 | + 'uz' => esc_attr__( 'Uzbek', 'wp-coder' ), | |
| 231 | + 'vi' => esc_attr__( 'Vietnamese', 'wp-coder' ), | |
| 232 | + 'cy' => esc_attr__( 'Welsh', 'wp-coder' ), | |
| 233 | + 'xh' => esc_attr__( 'Xhosa', 'wp-coder' ), | |
| 234 | + 'yi' => esc_attr__( 'Yiddish', 'wp-coder' ), | |
| 235 | + 'yo' => esc_attr__( 'Yoruba', 'wp-coder' ), | |
| 236 | + 'zu' => esc_attr__( 'Zulu', 'wp-coder' ), | |
| 237 | 237 | ]; |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | public static function share_services() { |
| 241 | 241 | return [ |
| 242 | - 'facebook' => __( 'Facebook', 'floating-button' ), | |
| 243 | - 'vk' => __( 'VK', 'floating-button' ), | |
| 244 | - 'twitter' => __( 'Twitter', 'floating-button' ), | |
| 245 | - 'linkedin' => __( 'Linkedin', 'floating-button' ), | |
| 246 | - 'odnoklassniki' => __( 'Odnoklassniki', 'floating-button' ), | |
| 247 | - 'google' => __( 'Google', 'floating-button' ), | |
| 248 | - 'pinterest' => __( 'Pinterest', 'floating-button' ), | |
| 249 | - 'xing' => __( 'XING', 'floating-button' ), | |
| 250 | - 'myspace' => __( 'Myspace', 'floating-button' ), | |
| 251 | - 'weibo' => __( 'Weibo', 'floating-button' ), | |
| 252 | - 'buffer' => __( 'Buffer', 'floating-button' ), | |
| 253 | - 'stumbleupon' => __( 'StumbleUpon', 'floating-button' ), | |
| 254 | - 'reddit' => __( 'Reddit', 'floating-button' ), | |
| 255 | - 'tumblr' => __( 'Tumblr', 'floating-button' ), | |
| 256 | - 'blogger' => __( 'Blogger', 'floating-button' ), | |
| 257 | - 'livejournal' => __( 'LiveJournal', 'floating-button' ), | |
| 258 | - 'pocket' => __( 'Pocket', 'floating-button' ), | |
| 259 | - 'telegram' => __( 'Telegram', 'floating-button' ), | |
| 260 | - 'skype' => __( 'Skype', 'floating-button' ), | |
| 261 | - 'email' => __( 'Email', 'floating-button' ), | |
| 262 | - 'draugiem' => __( 'Draugiem', 'floating-button' ), | |
| 263 | - 'whatsapp' => __( 'Whatsapp', 'floating-button' ), | |
| 264 | - 'diaspora' => __( 'Diaspora', 'floating-button' ), | |
| 265 | - 'digg' => __( 'Digg', 'floating-button' ), | |
| 266 | - 'douban' => __( 'Douban', 'floating-button' ), | |
| 267 | - 'evernote' => __( 'Evernote', 'floating-button' ), | |
| 268 | - 'flipboard' => __( 'Flipboard', 'floating-button' ), | |
| 269 | - 'google-bookmarks' => __( 'Google Bookmarks', 'floating-button' ), | |
| 270 | - 'hacker-news' => __( 'Hacker News', 'floating-button' ), | |
| 271 | - 'instapaper' => __( 'Instapaper', 'floating-button' ), | |
| 272 | - 'line' => __( 'Line', 'floating-button' ), | |
| 273 | - 'qzone' => __( 'Qzone', 'floating-button' ), | |
| 274 | - 'renren' => __( 'Renren', 'floating-button' ), | |
| 242 | + 'facebook' => __( 'Facebook', 'wp-coder' ), | |
| 243 | + 'vk' => __( 'VK', 'wp-coder' ), | |
| 244 | + 'twitter' => __( 'Twitter', 'wp-coder' ), | |
| 245 | + 'linkedin' => __( 'Linkedin', 'wp-coder' ), | |
| 246 | + 'odnoklassniki' => __( 'Odnoklassniki', 'wp-coder' ), | |
| 247 | + 'google' => __( 'Google', 'wp-coder' ), | |
| 248 | + 'pinterest' => __( 'Pinterest', 'wp-coder' ), | |
| 249 | + 'xing' => __( 'XING', 'wp-coder' ), | |
| 250 | + 'myspace' => __( 'Myspace', 'wp-coder' ), | |
| 251 | + 'weibo' => __( 'Weibo', 'wp-coder' ), | |
| 252 | + 'buffer' => __( 'Buffer', 'wp-coder' ), | |
| 253 | + 'stumbleupon' => __( 'StumbleUpon', 'wp-coder' ), | |
| 254 | + 'reddit' => __( 'Reddit', 'wp-coder' ), | |
| 255 | + 'tumblr' => __( 'Tumblr', 'wp-coder' ), | |
| 256 | + 'blogger' => __( 'Blogger', 'wp-coder' ), | |
| 257 | + 'livejournal' => __( 'LiveJournal', 'wp-coder' ), | |
| 258 | + 'pocket' => __( 'Pocket', 'wp-coder' ), | |
| 259 | + 'telegram' => __( 'Telegram', 'wp-coder' ), | |
| 260 | + 'skype' => __( 'Skype', 'wp-coder' ), | |
| 261 | + 'email' => __( 'Email', 'wp-coder' ), | |
| 262 | + 'draugiem' => __( 'Draugiem', 'wp-coder' ), | |
| 263 | + 'whatsapp' => __( 'Whatsapp', 'wp-coder' ), | |
| 264 | + 'diaspora' => __( 'Diaspora', 'wp-coder' ), | |
| 265 | + 'digg' => __( 'Digg', 'wp-coder' ), | |
| 266 | + 'douban' => __( 'Douban', 'wp-coder' ), | |
| 267 | + 'evernote' => __( 'Evernote', 'wp-coder' ), | |
| 268 | + 'flipboard' => __( 'Flipboard', 'wp-coder' ), | |
| 269 | + 'google-bookmarks' => __( 'Google Bookmarks', 'wp-coder' ), | |
| 270 | + 'hacker-news' => __( 'Hacker News', 'wp-coder' ), | |
| 271 | + 'instapaper' => __( 'Instapaper', 'wp-coder' ), | |
| 272 | + 'line' => __( 'Line', 'wp-coder' ), | |
| 273 | + 'qzone' => __( 'Qzone', 'wp-coder' ), | |
| 274 | + 'renren' => __( 'Renren', 'wp-coder' ), | |
| 275 | 275 | ]; |
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | public static function icons() { |
| @@ -2309,85 +2309,85 @@ | ||
| 2309 | 2309 | } |
| 2310 | 2310 | |
| 2311 | 2311 | public static function icon_type() { |
| 2312 | 2312 | return [ |
| 2313 | - 'default' => __( 'Default', 'floating-button' ), | |
| 2314 | - 'img' => __( 'Image', 'floating-button' ), | |
| 2315 | - 'emoji' => __( 'Emoji', 'floating-button' ), | |
| 2316 | - 'class' => __( 'Icon Class', 'floating-button' ), | |
| 2313 | + 'default' => __( 'Default', 'wp-coder' ), | |
| 2314 | + 'img' => __( 'Image', 'wp-coder' ), | |
| 2315 | + 'emoji' => __( 'Emoji', 'wp-coder' ), | |
| 2316 | + 'class' => __( 'Icon Class', 'wp-coder' ), | |
| 2317 | 2317 | ]; |
| 2318 | 2318 | } |
| 2319 | 2319 | |
| 2320 | 2320 | public static function btn_position() { |
| 2321 | 2321 | return [ |
| 2322 | - 'flBtn-position-br' => __( 'bottom-right', 'floating-button' ), | |
| 2323 | - 'flBtn-position-bl' => __( 'bottom-left', 'floating-button' ), | |
| 2324 | - 'flBtn-position-b' => __( 'bottom-center', 'floating-button' ), | |
| 2325 | - 'flBtn-position-tr' => __( 'top-right', 'floating-button' ), | |
| 2326 | - 'flBtn-position-tl' => __( 'top-left', 'floating-button' ), | |
| 2327 | - 'flBtn-position-t' => __( 'top-center', 'floating-button' ), | |
| 2328 | - 'flBtn-position-l' => __( 'left', 'floating-button' ), | |
| 2329 | - 'flBtn-position-r' => __( 'right', 'floating-button' ), | |
| 2322 | + 'flBtn-position-br' => __( 'bottom-right', 'wp-coder' ), | |
| 2323 | + 'flBtn-position-bl' => __( 'bottom-left', 'wp-coder' ), | |
| 2324 | + 'flBtn-position-b' => __( 'bottom-center', 'wp-coder' ), | |
| 2325 | + 'flBtn-position-tr' => __( 'top-right', 'wp-coder' ), | |
| 2326 | + 'flBtn-position-tl' => __( 'top-left', 'wp-coder' ), | |
| 2327 | + 'flBtn-position-t' => __( 'top-center', 'wp-coder' ), | |
| 2328 | + 'flBtn-position-l' => __( 'left', 'wp-coder' ), | |
| 2329 | + 'flBtn-position-r' => __( 'right', 'wp-coder' ), | |
| 2330 | 2330 | ]; |
| 2331 | 2331 | } |
| 2332 | 2332 | |
| 2333 | 2333 | public static function btn_shape() { |
| 2334 | 2334 | return [ |
| 2335 | - 'flBtn-shape-circle' => __( 'Circle', 'floating-button' ), | |
| 2336 | - 'flBtn-shape-ellipse' => __( 'Ellipse', 'floating-button' ), | |
| 2337 | - 'flBtn-shape-square' => __( 'Square', 'floating-button' ), | |
| 2338 | - 'flBtn-shape-rsquare' => __( 'Rounded square', 'floating-button' ), | |
| 2335 | + 'flBtn-shape-circle' => __( 'Circle', 'wp-coder' ), | |
| 2336 | + 'flBtn-shape-ellipse' => __( 'Ellipse', 'wp-coder' ), | |
| 2337 | + 'flBtn-shape-square' => __( 'Square', 'wp-coder' ), | |
| 2338 | + 'flBtn-shape-rsquare' => __( 'Rounded square', 'wp-coder' ), | |
| 2339 | 2339 | ]; |
| 2340 | 2340 | } |
| 2341 | 2341 | |
| 2342 | 2342 | public static function btn_size() { |
| 2343 | 2343 | return [ |
| 2344 | - 'flBtn-size-small' => __( 'Small', 'floating-button' ), | |
| 2345 | - 'flBtn-size-medium' => __( 'Medium', 'floating-button' ), | |
| 2346 | - 'flBtn-size-large' => __( 'Large', 'floating-button' ), | |
| 2347 | - 'flBtn-custom' => __( 'Custom', 'floating-button' ), | |
| 2344 | + 'flBtn-size-small' => __( 'Small', 'wp-coder' ), | |
| 2345 | + 'flBtn-size-medium' => __( 'Medium', 'wp-coder' ), | |
| 2346 | + 'flBtn-size-large' => __( 'Large', 'wp-coder' ), | |
| 2347 | + 'flBtn-custom' => __( 'Custom', 'wp-coder' ), | |
| 2348 | 2348 | ]; |
| 2349 | 2349 | } |
| 2350 | 2350 | |
| 2351 | 2351 | public static function btn_self_animation() { |
| 2352 | 2352 | return [ |
| 2353 | - '' => __( 'None', 'floating-button' ), | |
| 2354 | - 'flBtn-bounce' => __( 'Bounce', 'floating-button' ), | |
| 2355 | - 'flBtn-flash' => __( 'Flash', 'floating-button' ), | |
| 2356 | - 'flBtn-pulse' => __( 'pulse', 'floating-button' ), | |
| 2357 | - 'flBtn-rubberBand' => __( 'rubberBand', 'floating-button' ), | |
| 2358 | - 'flBtn-shake' => __( 'shake', 'floating-button' ), | |
| 2359 | - 'flBtn-headShake' => __( 'headShake', 'floating-button' ), | |
| 2360 | - 'flBtn-swing' => __( 'swing', 'floating-button' ), | |
| 2361 | - 'flBtn-tada' => __( 'tada', 'floating-button' ), | |
| 2362 | - 'flBtn-wobble' => __( 'wobble', 'floating-button' ), | |
| 2363 | - 'flBtn-jello' => __( 'jello', 'floating-button' ), | |
| 2364 | - 'flBtn-heartBeat' => __( 'heartBeat', 'floating-button' ), | |
| 2353 | + '' => __( 'None', 'wp-coder' ), | |
| 2354 | + 'flBtn-bounce' => __( 'Bounce', 'wp-coder' ), | |
| 2355 | + 'flBtn-flash' => __( 'Flash', 'wp-coder' ), | |
| 2356 | + 'flBtn-pulse' => __( 'pulse', 'wp-coder' ), | |
| 2357 | + 'flBtn-rubberBand' => __( 'rubberBand', 'wp-coder' ), | |
| 2358 | + 'flBtn-shake' => __( 'shake', 'wp-coder' ), | |
| 2359 | + 'flBtn-headShake' => __( 'headShake', 'wp-coder' ), | |
| 2360 | + 'flBtn-swing' => __( 'swing', 'wp-coder' ), | |
| 2361 | + 'flBtn-tada' => __( 'tada', 'wp-coder' ), | |
| 2362 | + 'flBtn-wobble' => __( 'wobble', 'wp-coder' ), | |
| 2363 | + 'flBtn-jello' => __( 'jello', 'wp-coder' ), | |
| 2364 | + 'flBtn-heartBeat' => __( 'heartBeat', 'wp-coder' ), | |
| 2365 | 2365 | ]; |
| 2366 | 2366 | } |
| 2367 | 2367 | |
| 2368 | 2368 | public static function btn_animation() { |
| 2369 | 2369 | return [ |
| 2370 | - '' => __( 'Fade', 'floating-button' ), | |
| 2371 | - 'flBtn-effect-rotate' => __( 'Rotate', 'floating-button' ), | |
| 2372 | - 'flBtn-effect-scale' => __( 'Scale', 'floating-button' ), | |
| 2373 | - 'flBtn-effect-rotate-scale' => __( 'Rotate and Scale', 'floating-button' ), | |
| 2374 | - 'flBtn-effect-translate' => __( 'Translate', 'floating-button' ), | |
| 2375 | - 'flBtn-effect-rotate-translate' => __( 'Translate Rotate', 'floating-button' ), | |
| 2376 | - 'flBtn-effect-rotate-translate-scale' => __( 'Rotate Translate Scale', 'floating-button' ), | |
| 2377 | - 'flBtn-effect-translate-scale' => __( 'Translate Scale', 'floating-button' ), | |
| 2370 | + '' => __( 'Fade', 'wp-coder' ), | |
| 2371 | + 'flBtn-effect-rotate' => __( 'Rotate', 'wp-coder' ), | |
| 2372 | + 'flBtn-effect-scale' => __( 'Scale', 'wp-coder' ), | |
| 2373 | + 'flBtn-effect-rotate-scale' => __( 'Rotate and Scale', 'wp-coder' ), | |
| 2374 | + 'flBtn-effect-translate' => __( 'Translate', 'wp-coder' ), | |
| 2375 | + 'flBtn-effect-rotate-translate' => __( 'Translate Rotate', 'wp-coder' ), | |
| 2376 | + 'flBtn-effect-rotate-translate-scale' => __( 'Rotate Translate Scale', 'wp-coder' ), | |
| 2377 | + 'flBtn-effect-translate-scale' => __( 'Translate Scale', 'wp-coder' ), | |
| 2378 | 2378 | ]; |
| 2379 | 2379 | } |
| 2380 | 2380 | |
| 2381 | 2381 | public static function btn_shadow() { |
| 2382 | 2382 | return [ |
| 2383 | - '' => __( 'Yes', 'floating-button' ), | |
| 2384 | - '1' => __( 'No', 'floating-button' ), | |
| 2383 | + '' => __( 'Yes', 'wp-coder' ), | |
| 2384 | + '1' => __( 'No', 'wp-coder' ), | |
| 2385 | 2385 | ]; |
| 2386 | 2386 | } |
| 2387 | 2387 | |
| 2388 | 2388 | public static function user_roles(): array { |
| 2389 | - $add_users = array( 'all' => array( 'name' => __( 'All Users', 'wpcoder' ) ) ); | |
| 2389 | + $add_users = array( 'all' => array( 'name' => __( 'All Users', 'wp-coder' ) ) ); | |
| 2390 | 2390 | $editable_role = array_reverse( get_editable_roles() ); |
| 2391 | 2391 | $editable_roles = array_merge( $add_users, $editable_role ); |
| 2392 | 2392 | $users_arr = array(); |
| 2393 | 2393 | foreach ( $editable_roles as $role => $details ) { |