Plugin Directory

Changeset 1418519


Ignore:
Timestamp:
05/17/2016 09:10:49 AM (10 years ago)
Author:
ymjid
Message:

Version 1.1 releases: phone number/custom msg debug and adding custom menu

Location:
webinfos/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • webinfos/trunk/css/webinfos.css

    r1397910 r1418519  
    4545    margin-top:0px;
    4646}
     47.custommenu {
     48    background-color:#23282d;
     49}
     50.custombutton {
     51    color:#fff;
     52    width:100px;
     53    text-align:center;
     54    display:table-cell;
     55    cursor:pointer;
     56}
     57.custombuttonused {
     58    background: #32373c none repeat scroll 0 0;
     59    color: #00b9eb;
     60    width:100px;
     61    text-align:center;
     62    display:table-cell;
     63    cursor:pointer;
     64}
     65.custombutton:hover {
     66    background: #32373c none repeat scroll 0 0;
     67    color: #00b9eb;
     68}
  • webinfos/trunk/js/webinfos.js

    r1397910 r1418519  
    1111}   
    1212
     13function toggleForm(id) {  // Hide all forms and show the form number id
     14                for (var i=1; i<4; i++) {
     15                    if (document.getElementById("form" + i) != null && document.getElementById("msgbutton" + i) != null) {
     16                        document.getElementById("form" + i).style.display = "none";
     17                        document.getElementById("msgbutton" + i).className = "custombutton";
     18                    }
     19                }           
     20                if (document.getElementById("form" + id).style.display == "none") {
     21                    document.getElementById("form" + id).style.display = "inline-block";
     22                    document.getElementById("msgbutton" + id).className = "custombuttonused";
     23                }
     24                else {
     25                    document.getElementById("form" + id).style.display = "none";
     26                    document.getElementById("msgbutton" + id).className = "custombutton";
     27                }
     28}
    1329
    1430// check uploaded file format
  • webinfos/trunk/languages/webinfos-fr_FR.po

    r1397910 r1418519  
    66"Project-Id-Version: \n"
    77"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
    8 "POT-Creation-Date: 2016-04-14 18:03+0200\n"
     8"POT-Creation-Date: 2016-05-17 10:34+0200\n"
    99"PO-Revision-Date: \n"
    1010"Last-Translator: \n"
     
    2828msgstr "Pièces jointes : "
    2929
    30 #: custom_welcome.php:100 webinfos.php:1034
     30#: custom_welcome.php:100 webinfos.php:1058
    3131msgid "Your browser does not support HTML5 video."
    3232msgstr "Votre navigateur ne supporte pas les videos HTML5"
     
    7272msgstr "Une erreur est survenue avec les fichiers de pièce jointes"
    7373
    74 #: webinfos.php:199
     74#: webinfos.php:179
     75msgid "An error occurs with contact phone number"
     76msgstr "Une erreur s’est produite avec le numéro de téléphone de contact."
     77
     78#: webinfos.php:203
    7579msgid "An error occurs with contact email"
    7680msgstr "Une erreur est survenue avec l’email de contact"
    7781
    78 #: webinfos.php:208
     82#: webinfos.php:212
    7983msgid "An error occurs with contact checkbox"
    8084msgstr ""
    8185"Une erreur est survenue avec l’option d’affichage des informations de contact"
    8286
    83 #: webinfos.php:250
     87#: webinfos.php:254
    8488msgid "An error occurs with attachment file list"
    8589msgstr "Une erreur est survenue avec la liste des fichiers de pièce jointes"
    8690
    87 #: webinfos.php:266
     91#: webinfos.php:270
    8892msgid "An error occurs with uploaded logo"
    8993msgstr "Une erreur est survenue avec le logo uploadé"
    9094
    91 #: webinfos.php:281
     95#: webinfos.php:285
    9296msgid "An error occurs with uploaded photo"
    9397msgstr "Une erreur est survenue avec la photo uploadé"
    9498
    95 #: webinfos.php:296
     99#: webinfos.php:300
    96100msgid "An error occurs with uploaded video"
    97101msgstr "Une erreur est survenue avec la vidéo uploadé"
    98102
    99 #: webinfos.php:385
     103#: webinfos.php:386
    100104msgid "Modifications saved successfully"
    101105msgstr "Modifications sauvegardées avec succès"
    102106
    103 #: webinfos.php:392
     107#: webinfos.php:395
    104108msgid "Message added successfully"
    105109msgstr "Le message a bien été enregistrer"
    106110
    107 #: webinfos.php:413 webinfos.php:647
     111#: webinfos.php:414 webinfos.php:671
    108112msgid "An error occurs with message id"
    109113msgstr "Une erreur est survenue avec l’identifiant du message"
    110114
    111 #: webinfos.php:466
     115#: webinfos.php:467
    112116msgid "The message have been erased successfully"
    113117msgstr "Le message a été effacer correctement"
    114118
    115 #: webinfos.php:478
     119#: webinfos.php:479
    116120msgid "Webinfos plugin"
    117121msgstr "Extension Webinfos"
    118122
    119 #: webinfos.php:478
     123#: webinfos.php:479
    120124msgid "Webinfos Settings"
    121125msgstr "Options Webinfos"
    122126
    123 #: webinfos.php:518
     127#: webinfos.php:519
    124128#, php-format
    125129msgid "The uploaded file must be in %s format"
    126130msgstr "Le fichier uploadé doit être au format %s"
    127131
    128 #: webinfos.php:518
     132#: webinfos.php:519
    129133msgid "character left."
    130134msgstr "caractère restant."
    131135
    132 #: webinfos.php:518
     136#: webinfos.php:519
    133137msgid "characters left."
    134138msgstr "caractères restants."
    135139
    136 #: webinfos.php:518
     140#: webinfos.php:519
    137141msgid "New attachments list : "
    138142msgstr "Nouvelle liste de pièce jointe :"
    139143
    140 #: webinfos.php:530
     144#: webinfos.php:531
    141145#, php-format
    142146msgid "Version %s"
    143147msgstr "Version %s"
    144148
    145 #: webinfos.php:531
     149#: webinfos.php:532
    146150msgid "Welcome to the setting panel of Webinfos plugin"
    147151msgstr "Bienvenue dans le panneau de configuration de l’extension Webinfos."
    148152
    149 #: webinfos.php:540
     153#: webinfos.php:536
     154msgid "Message Selection"
     155msgstr "Sélection du Message"
     156
     157#: webinfos.php:539
     158msgid "Message Options"
     159msgstr "Options de Message"
     160
     161#: webinfos.php:546
     162msgid "New Message Content"
     163msgstr "Contenu du Message (Ajout)"
     164
     165#: webinfos.php:549
     166msgid "Edit Message Content"
     167msgstr "Contenu du Message (Edition)"
     168
     169#: webinfos.php:564
    150170msgid "Activate message"
    151171msgstr "Activer message"
    152172
    153 #: webinfos.php:546
     173#: webinfos.php:570
    154174msgid "Choose action"
    155175msgstr "Choisir action"
    156176
    157 #: webinfos.php:556
     177#: webinfos.php:580
    158178msgid "Feedback"
    159179msgstr "Réaction"
    160180
    161 #: webinfos.php:557
     181#: webinfos.php:581
    162182msgid "Did you find a bug ?"
    163183msgstr "Vous avez trouvé un bug ?"
    164184
    165 #: webinfos.php:557
     185#: webinfos.php:581
    166186msgid "Do you have suggestions?"
    167187msgstr "Vous avez des idées ?"
    168188
    169 #: webinfos.php:558
     189#: webinfos.php:582
    170190msgid ""
    171191"There are several ways to report bugs and/or give feedback about the "
     
    175195"propos de l’extension Webinfos :"
    176196
    177 #: webinfos.php:560
     197#: webinfos.php:584
    178198#, php-format
    179199msgid "Use a GitHub ticket at this <a href=\"%s\">link</a>."
    180200msgstr "Utiliser un ticket Github en cliquant <a href=\"%s\">ici</a>."
    181201
    182 #: webinfos.php:561
     202#: webinfos.php:585
    183203#, php-format
    184204msgid "Use a Wordpress ticket at this <a href=\"%s\">link</a>."
    185205msgstr "Utiliser un ticket Wordpress en cliquant <a href=\"%s\">ici</a>."
    186206
    187 #: webinfos.php:562
     207#: webinfos.php:586
    188208msgid "Use the form below to contact the plugin author."
    189209msgstr ""
    190210"Utiliser le formulaire ci-dessous pour contacter l’auteur de l’extension."
    191211
    192 #: webinfos.php:569
     212#: webinfos.php:593
    193213msgid "Send feedback"
    194214msgstr "Envoyer réaction"
    195215
    196 #: webinfos.php:600
     216#: webinfos.php:624
    197217msgid "Choose the message that will be shown in the dashboard"
    198218msgstr "Sélectionner le message qui sera afficher dans le tableau de bord"
    199219
    200 #: webinfos.php:601
     220#: webinfos.php:625
    201221msgid "Activate message :"
    202222msgstr "Activer message : "
    203223
    204 #: webinfos.php:607
     224#: webinfos.php:631
    205225msgid "Change welcome message"
    206226msgstr "Modifier le message d’accueil"
    207227
    208 #: webinfos.php:608
     228#: webinfos.php:632
    209229msgid "Action :"
    210230msgstr "Action : "
    211231
    212 #: webinfos.php:621
     232#: webinfos.php:645
    213233msgid "Welcome message settings"
    214234msgstr "Options du message d’accueil"
    215235
    216 #: webinfos.php:622
     236#: webinfos.php:646
    217237msgid "Contact informations"
    218238msgstr "Informations de contact"
    219239
    220 #: webinfos.php:626
     240#: webinfos.php:650
    221241msgid "Message num:"
    222242msgstr "Numéro du message : "
    223243
    224 #: webinfos.php:630
     244#: webinfos.php:654
    225245msgid "Title :"
    226246msgstr "Titre : "
    227247
    228 #: webinfos.php:631
     248#: webinfos.php:655
    229249msgid "Website URL :"
    230250msgstr "URL du site internet : "
    231251
    232 #: webinfos.php:632
     252#: webinfos.php:656
    233253msgid "Upload logo :"
    234254msgstr "Upload logo : "
    235255
    236 #: webinfos.php:633
     256#: webinfos.php:657
    237257msgid "Logo alternate text :"
    238258msgstr "Texte alternatif du logo : "
    239259
    240 #: webinfos.php:634
     260#: webinfos.php:658
    241261msgid "Welcome message :"
    242262msgstr "Message d’accueil : "
    243263
    244 #: webinfos.php:635
     264#: webinfos.php:659
    245265msgid "Attachments :"
    246266msgstr "Pièces jointes : "
    247267
    248 #: webinfos.php:636
     268#: webinfos.php:660
    249269msgid "Upload video :"
    250270msgstr "Upload video : "
    251271
    252 #: webinfos.php:637
     272#: webinfos.php:661
    253273msgid "Show contact infos :"
    254274msgstr "Afficher les informations de contact : "
    255275
    256 #: webinfos.php:638
     276#: webinfos.php:662
    257277msgid "Upload photo :"
    258278msgstr "Upload photo : "
    259279
    260 #: webinfos.php:639
     280#: webinfos.php:663
    261281msgid "Photo alternate text :"
    262282msgstr "Texte alternatif de la photo : "
    263283
    264 #: webinfos.php:640
     284#: webinfos.php:664
    265285msgid "Phone :"
    266286msgstr "Tel : "
    267287
    268 #: webinfos.php:641
     288#: webinfos.php:665
    269289msgid "Email :"
    270290msgstr "Mail : "
    271291
    272 #: webinfos.php:675
     292#: webinfos.php:699
    273293msgid "Fill the form below to send your feedback directly to the author"
    274294msgstr ""
     
    276296"à l’auteur"
    277297
    278 #: webinfos.php:676
     298#: webinfos.php:700
    279299msgid "Feedback sender :"
    280300msgstr "Expéditeur de la réaction :"
    281301
    282 #: webinfos.php:677
     302#: webinfos.php:701
    283303msgid "Feedback subject :"
    284304msgstr "Sujet de la réaction :"
    285305
    286 #: webinfos.php:678
     306#: webinfos.php:702
    287307msgid "Feedback message :"
    288308msgstr "Message de la réaction :"
    289309
    290 #: webinfos.php:763
     310#: webinfos.php:787
    291311msgid "Add message"
    292312msgstr "Ajouter message"
    293313
    294 #: webinfos.php:769
     314#: webinfos.php:793
    295315msgid "Edit message "
    296316msgstr "Editer message"
    297317
    298 #: webinfos.php:770
     318#: webinfos.php:794
    299319msgid "Erase message "
    300320msgstr "Effacer message"
    301321
    302 #: webinfos.php:857 webinfos.php:961
     322#: webinfos.php:881 webinfos.php:985
    303323#, php-format
    304324msgid "Uploaded file must be in %s or %s format."
    305325msgstr "Le fichier uploadé doit être au format %s ou %s."
    306326
    307 #: webinfos.php:894
     327#: webinfos.php:918
    308328#, php-format
    309329msgid "%d character left."
     
    312332msgstr[1] "%d caractères restants."
    313333
    314 #: webinfos.php:898
     334#: webinfos.php:922
    315335msgid "HTML tags are supported."
    316336msgstr "Les balises HTML sont supportés."
    317337
    318 #: webinfos.php:1042
     338#: webinfos.php:1066
    319339#, php-format
    320340msgid "Uploaded file must be in %s format."
    321341msgstr "Le fichier uploadé doit être au format %s."
    322342
    323 #: webinfos.php:1060
     343#: webinfos.php:1084
    324344msgid "The website URL will be applied on the logo."
    325345msgstr ""
    326346"L’URL du site internet sera appliqué sur le logo en tant que lien hypertexte."
    327347
    328 #: webinfos.php:1079
     348#: webinfos.php:1103
    329349msgid "Attachments list : "
    330350msgstr "Liste de pièces jointes : "
    331351
    332 #: webinfos.php:1115
     352#: webinfos.php:1139
    333353msgid "Click or drop your files here"
    334354msgstr "Cliquer ou glissez-déposez vos fichier ici"
    335355
    336 #: webinfos.php:1120
     356#: webinfos.php:1144
    337357msgid "You can upload several files as attachment."
    338358msgstr "Plusieurs fichiers peuvent être uploadé en tant que pièce jointe."
    339359
    340 #: webinfos.php:1128
     360#: webinfos.php:1152
    341361msgid "Save changes"
    342362msgstr "Enregistrer les modifications"
    343363
    344 #: webinfos.php:1140
     364#: webinfos.php:1164
    345365msgid "An error occurs with feedback form"
    346366msgstr "Une erreur est survenue avec le formulaire de réaction"
  • webinfos/trunk/languages/webinfos.pot

    r1397910 r1418519  
    77"Project-Id-Version: \n"
    88"POT-Creation-Date: "
    9 "2016-04-14 18:03+0200\n"
     9"2016-05-17 10:34+0200\n"
    1010"PO-Revision-Date: \n"
    1111"Last-Translator: Your "
     
    5353
    5454#: custom_welcome.php:100
    55 #: webinfos.php:1034
     55#: webinfos.php:1058
    5656msgid ""
    5757"Your browser does not "
     
    109109msgstr ""
    110110
    111 #: webinfos.php:199
     111#: webinfos.php:179
     112msgid ""
     113"An error occurs with "
     114"contact phone number"
     115msgstr ""
     116
     117#: webinfos.php:203
    112118msgid ""
    113119"An error occurs with "
     
    115121msgstr ""
    116122
    117 #: webinfos.php:208
     123#: webinfos.php:212
    118124msgid ""
    119125"An error occurs with "
     
    121127msgstr ""
    122128
    123 #: webinfos.php:250
     129#: webinfos.php:254
    124130msgid ""
    125131"An error occurs with "
     
    127133msgstr ""
    128134
    129 #: webinfos.php:266
     135#: webinfos.php:270
    130136msgid ""
    131137"An error occurs with "
     
    133139msgstr ""
    134140
    135 #: webinfos.php:281
     141#: webinfos.php:285
    136142msgid ""
    137143"An error occurs with "
     
    139145msgstr ""
    140146
    141 #: webinfos.php:296
     147#: webinfos.php:300
    142148msgid ""
    143149"An error occurs with "
     
    145151msgstr ""
    146152
    147 #: webinfos.php:385
     153#: webinfos.php:386
    148154msgid ""
    149155"Modifications saved "
     
    151157msgstr ""
    152158
    153 #: webinfos.php:392
     159#: webinfos.php:395
    154160msgid ""
    155161"Message added "
     
    157163msgstr ""
    158164
    159 #: webinfos.php:413
    160 #: webinfos.php:647
     165#: webinfos.php:414
     166#: webinfos.php:671
    161167msgid ""
    162168"An error occurs with "
     
    164170msgstr ""
    165171
    166 #: webinfos.php:466
     172#: webinfos.php:467
    167173msgid ""
    168174"The message have been "
     
    170176msgstr ""
    171177
    172 #: webinfos.php:478
     178#: webinfos.php:479
    173179msgid "Webinfos plugin"
    174180msgstr ""
    175181
    176 #: webinfos.php:478
     182#: webinfos.php:479
    177183msgid "Webinfos Settings"
    178184msgstr ""
    179185
    180 #: webinfos.php:518
     186#: webinfos.php:519
    181187#, php-format
    182188msgid ""
     
    185191msgstr ""
    186192
    187 #: webinfos.php:518
     193#: webinfos.php:519
    188194msgid "character left."
    189195msgstr ""
    190196
    191 #: webinfos.php:518
     197#: webinfos.php:519
    192198msgid "characters left."
    193199msgstr ""
    194200
    195 #: webinfos.php:518
     201#: webinfos.php:519
    196202msgid ""
    197203"New attachments list : "
    198204msgstr ""
    199205
    200 #: webinfos.php:530
     206#: webinfos.php:531
    201207#, php-format
    202208msgid "Version %s"
    203209msgstr ""
    204210
    205 #: webinfos.php:531
     211#: webinfos.php:532
    206212msgid ""
    207213"Welcome to the setting "
     
    209215msgstr ""
    210216
    211 #: webinfos.php:540
     217#: webinfos.php:536
     218msgid "Message Selection"
     219msgstr ""
     220
     221#: webinfos.php:539
     222msgid "Message Options"
     223msgstr ""
     224
     225#: webinfos.php:546
     226msgid ""
     227"New Message Content"
     228msgstr ""
     229
     230#: webinfos.php:549
     231msgid ""
     232"Edit Message Content"
     233msgstr ""
     234
     235#: webinfos.php:564
    212236msgid "Activate message"
    213237msgstr ""
    214238
    215 #: webinfos.php:546
     239#: webinfos.php:570
    216240msgid "Choose action"
    217241msgstr ""
    218242
    219 #: webinfos.php:556
     243#: webinfos.php:580
    220244msgid "Feedback"
    221245msgstr ""
    222246
    223 #: webinfos.php:557
     247#: webinfos.php:581
    224248msgid ""
    225249"Did you find a bug ?"
    226250msgstr ""
    227251
    228 #: webinfos.php:557
     252#: webinfos.php:581
    229253msgid ""
    230254"Do you have suggestions?"
    231255msgstr ""
    232256
    233 #: webinfos.php:558
     257#: webinfos.php:582
    234258msgid ""
    235259"There are several ways "
     
    239263msgstr ""
    240264
    241 #: webinfos.php:560
     265#: webinfos.php:584
    242266#, php-format
    243267msgid ""
     
    247271msgstr ""
    248272
    249 #: webinfos.php:561
     273#: webinfos.php:585
    250274#, php-format
    251275msgid ""
     
    255279msgstr ""
    256280
    257 #: webinfos.php:562
     281#: webinfos.php:586
    258282msgid ""
    259283"Use the form below to "
     
    262286msgstr ""
    263287
    264 #: webinfos.php:569
     288#: webinfos.php:593
    265289msgid "Send feedback"
    266290msgstr ""
    267291
    268 #: webinfos.php:600
     292#: webinfos.php:624
    269293msgid ""
    270294"Choose the message that "
     
    273297msgstr ""
    274298
    275 #: webinfos.php:601
     299#: webinfos.php:625
    276300msgid "Activate message :"
    277301msgstr ""
    278302
    279 #: webinfos.php:607
     303#: webinfos.php:631
    280304msgid ""
    281305"Change welcome message"
    282306msgstr ""
    283307
    284 #: webinfos.php:608
     308#: webinfos.php:632
    285309msgid "Action :"
    286310msgstr ""
    287311
    288 #: webinfos.php:621
     312#: webinfos.php:645
    289313msgid ""
    290314"Welcome message settings"
    291315msgstr ""
    292316
    293 #: webinfos.php:622
     317#: webinfos.php:646
    294318msgid ""
    295319"Contact informations"
    296320msgstr ""
    297321
    298 #: webinfos.php:626
     322#: webinfos.php:650
    299323msgid "Message num:"
    300324msgstr ""
    301325
    302 #: webinfos.php:630
     326#: webinfos.php:654
    303327msgid "Title :"
    304328msgstr ""
    305329
    306 #: webinfos.php:631
     330#: webinfos.php:655
    307331msgid "Website URL :"
    308332msgstr ""
    309333
    310 #: webinfos.php:632
     334#: webinfos.php:656
    311335msgid "Upload logo :"
    312336msgstr ""
    313337
    314 #: webinfos.php:633
     338#: webinfos.php:657
    315339msgid ""
    316340"Logo alternate text :"
    317341msgstr ""
    318342
    319 #: webinfos.php:634
     343#: webinfos.php:658
    320344msgid "Welcome message :"
    321345msgstr ""
    322346
    323 #: webinfos.php:635
     347#: webinfos.php:659
    324348msgid "Attachments :"
    325349msgstr ""
    326350
    327 #: webinfos.php:636
     351#: webinfos.php:660
    328352msgid "Upload video :"
    329353msgstr ""
    330354
    331 #: webinfos.php:637
     355#: webinfos.php:661
    332356msgid ""
    333357"Show contact infos :"
    334358msgstr ""
    335359
    336 #: webinfos.php:638
     360#: webinfos.php:662
    337361msgid "Upload photo :"
    338362msgstr ""
    339363
    340 #: webinfos.php:639
     364#: webinfos.php:663
    341365msgid ""
    342366"Photo alternate text :"
    343367msgstr ""
    344368
    345 #: webinfos.php:640
     369#: webinfos.php:664
    346370msgid "Phone :"
    347371msgstr ""
    348372
    349 #: webinfos.php:641
     373#: webinfos.php:665
    350374msgid "Email :"
    351375msgstr ""
    352376
    353 #: webinfos.php:675
     377#: webinfos.php:699
    354378msgid ""
    355379"Fill the form below to "
     
    358382msgstr ""
    359383
    360 #: webinfos.php:676
     384#: webinfos.php:700
    361385msgid "Feedback sender :"
    362386msgstr ""
    363387
    364 #: webinfos.php:677
     388#: webinfos.php:701
    365389msgid "Feedback subject :"
    366390msgstr ""
    367391
    368 #: webinfos.php:678
     392#: webinfos.php:702
    369393msgid "Feedback message :"
    370394msgstr ""
    371395
    372 #: webinfos.php:763
     396#: webinfos.php:787
    373397msgid "Add message"
    374398msgstr ""
    375399
    376 #: webinfos.php:769
     400#: webinfos.php:793
    377401msgid "Edit message "
    378402msgstr ""
    379403
    380 #: webinfos.php:770
     404#: webinfos.php:794
    381405msgid "Erase message "
    382406msgstr ""
    383407
    384 #: webinfos.php:857
    385 #: webinfos.php:961
     408#: webinfos.php:881
     409#: webinfos.php:985
    386410#, php-format
    387411msgid ""
     
    390414msgstr ""
    391415
    392 #: webinfos.php:894
     416#: webinfos.php:918
    393417#, php-format
    394418msgid "%d character left."
     
    398422msgstr[1] ""
    399423
    400 #: webinfos.php:898
     424#: webinfos.php:922
    401425msgid ""
    402426"HTML tags are supported."
    403427msgstr ""
    404428
    405 #: webinfos.php:1042
     429#: webinfos.php:1066
    406430#, php-format
    407431msgid ""
     
    410434msgstr ""
    411435
    412 #: webinfos.php:1060
     436#: webinfos.php:1084
    413437msgid ""
    414438"The website URL will be "
     
    416440msgstr ""
    417441
    418 #: webinfos.php:1079
     442#: webinfos.php:1103
    419443msgid ""
    420444"Attachments list : "
    421445msgstr ""
    422446
    423 #: webinfos.php:1115
     447#: webinfos.php:1139
    424448msgid ""
    425449"Click or drop your "
     
    427451msgstr ""
    428452
    429 #: webinfos.php:1120
     453#: webinfos.php:1144
    430454msgid ""
    431455"You can upload several "
     
    433457msgstr ""
    434458
    435 #: webinfos.php:1128
     459#: webinfos.php:1152
    436460msgid "Save changes"
    437461msgstr ""
    438462
    439 #: webinfos.php:1140
     463#: webinfos.php:1164
    440464msgid ""
    441465"An error occurs with "
  • webinfos/trunk/readme.txt

    r1397915 r1418519  
    3838= How do i add a message ? =
    3939
     40Click on the "Message Options" button.
     41A form will appear.
    4042Use the "Action" drop-down list, select "Add message" and click on the "Choose action" button.
     43Click on the "New Message Content" button.
    4144A form will appear, fill it and click on the "Save changes" button.
    4245The message is now created.
     
    4447= How do i activate a message ? =
    4548
     49Click on the "Message Selection" button.
     50A form will appear.
    4651Use the "Activate message" drop-down list, select "X" and click on the "Activate message" button.
    4752
     
    5055= How do i edit a message ? =
    5156
     57Click on the "Message Options" button.
     58A form will appear.
    5259Use the "Action" drop-down list, select "Edit messageX" and click on the "Choose action" button.
     60Click on the "Edit Message Content" button.
    5361A pre-filled form will appear with the options of the message editable.
    5462Modify what you want and click on the "Save changes" button.
     
    5967= How do i erase a message ? =
    6068
     69Click on the "Message Options" button.
     70A form will appear.
    6171Use the "Action" drop-down list, select "Erase messageX" and click on the "Choose action" button.
    6272The message is now erased.
     
    7585
    7686== Upgrade Notice ==
     87= 1.1 =
     88* Contact phone number is now saved properly.
     89* "Edit Message" and  "Add Message" are now show properly.
     90* A menu have been added to show each form.
    7791
  • webinfos/trunk/webinfos.php

    r1397910 r1418519  
    44Plugin URI:
    55Description: A plugin showing a customisable welcome message in the dashboard.
    6 Version: 1.0
     6Version: 1.1
    77Author: ymjid
    88Author URI:
     
    175175           
    176176            $safe_tel = is_numeric($_POST['webinfos_tel'] );
    177             if ( ! $safe_tel ) {
     177            if ( $safe_tel== 0 ) {
    178178                $tel = '';
     179                $error= $error + __('An error occurs with contact phone number', 'webinfos') + "|";
     180            }
     181            else {
     182                $tel=$_POST['webinfos_tel'];
    179183            }
    180184            if ( strlen( $tel ) > 15 ) {
     
    376380            else {
    377381                add_action( 'admin_notices', 'webinfos_admin_notice__success' );
    378                
    379                 function webinfos_admin_notice__success() {
    380                     ?>
    381                      <div class="notice notice-success is-dismissible">
     382                if ($edit_msg == "true") {
     383                    function webinfos_admin_notice__success() {
     384                        ?>
     385                         <div class="notice notice-success is-dismissible">
     386                            <p><?php _e( 'Modifications saved successfully', 'webinfos' ); ?></p>
     387                        </div>
    382388                     <?php
    383                         if ($edit_msg == "true") {
    384                      ?>
    385                          <p><?php _e( 'Modifications saved successfully', 'webinfos' ); ?></p>
    386                     <?php
    387                         }
    388                      ?>
     389                    }
     390                }
     391                if ($add_msg == "true") {
     392                    function webinfos_admin_notice__success() {
     393                        ?>
     394                         <div class="notice notice-success is-dismissible">
     395                            <p><?php _e( 'Message added successfully', 'webinfos' ); ?></p>
     396                        </div>
    389397                     <?php
    390                         if ($add_msg == "true") {
    391                      ?>
    392                          <p><?php _e( 'Message added successfully', 'webinfos' ); ?></p>
    393                     <?php
    394                         }
    395                      ?>
    396                     </div>
    397                  <?php
    398                 }
    399             }
     398                    }
     399                }
     400            }
    400401        }
    401402        // if $_POST['test'] doesn't exist, message datas aren't fillable
     
    530531        <h2><?php echo sprintf(__('Version %s', 'webinfos'), $plugin_infos['Version']); ?></h2>
    531532        <p><?php _e('Welcome to the setting panel of Webinfos plugin', 'webinfos'); ?></p>
    532         <form method="post" action="#">
     533        <!-- Custom menu to navigate easely through forms -->
     534        <div class="custommenu">
     535            <div id="msgbutton2" class="custombutton" onClick="toggleForm('2');">
     536                <?php _e('Message Selection', 'webinfos'); ?>
     537            </div>
     538            <div id="msgbutton1" class="custombutton" onClick="toggleForm('1');">
     539                <?php _e('Message Options', 'webinfos'); ?>
     540            </div>
     541            <?php
     542            if ($_POST['webinfos_nummsg'] >= '0') {
     543                ?>
     544            <div id="msgbutton3" class="custombuttonused" onClick="toggleForm('3');">
     545                <?php if ($_POST['webinfos_nummsg']== '0') {
     546                        _e('New Message Content', 'webinfos');
     547                    }
     548                    else {
     549                        _e('Edit Message Content', 'webinfos');
     550                    }?>
     551            </div>
     552            <?php
     553            }
     554            ?>
     555        </div>
     556        <form class="hide" method="post" id="form2" action="#">
    533557            <?php
    534558            // we use only usable msg for activation
     
    541565            <?php } ?>
    542566        </form>
    543         <form method="post" action="">
     567        <form class="hide" method="post" id="form1" action="">
    544568            <?php settings_fields('webinfos_action'); ?>
    545569            <?php do_settings_sections('webinfos_action'); ?>
    546570            <?php submit_button(__('Choose action', 'webinfos')) ?>
    547571        </form>
    548         <form method="post" action="#" id="message_content" enctype="multipart/form-data">
     572        <form id="form3" method="post" action="#" id="message_content" enctype="multipart/form-data">
    549573            <?php settings_fields('webinfos_settings'); ?>
    550574            <?php do_settings_sections('webinfos_settings'); ?>
     
    597621    public function register_active_msg () {
    598622        register_setting('webinfos_active', 'active_msg');
    599        
     623
    600624        add_settings_section('webinfos_section', __('Choose the message that will be shown in the dashboard', 'webinfos'), array($this, 'section_html'), 'webinfos_active');
    601625        add_settings_field('active_msg', __('Activate message :', 'webinfos'), array($this, 'activemsg_html'), 'webinfos_active', 'webinfos_section');
Note: See TracChangeset for help on using the changeset viewer.