Skip to content

Commit 183b94d

Browse files
committed
countries and nigerian states shortcodes
1 parent 774f510 commit 183b94d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

paystack-forms.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,24 @@ function insertSelectb(){
119119
function insertInput(){
120120
QTags.insertContent('[input name="File Name"]');
121121
}
122+
QTags.addButton(
123+
"ngs_shortcode",
124+
"Insert Nigerian States",
125+
insertSelectStates
126+
);
127+
function insertSelectStates(){
128+
QTags.insertContent('[select name="State" options="Abia,Adamawa,Akwa Ibom,Anambra,Bauchi,Bayelsa,Benue,Borno,Cross River,Delta,Ebonyi,Edo,Ekiti,Enugu,FCT,Gombe,Imo,Jigawa,Kaduna,Kano,Katsina,Kebbi,Kogi,Kwara,Lagos,Nasarawa,Niger,Ogun,Ondo,Osun,Oyo,Plateau,Rivers,Sokoto,Taraba,Yobe,Zamfara"]');
129+
}
130+
QTags.addButton(
131+
"ctys_shortcode",
132+
"Insert All Countries",
133+
insertSelectCountries
134+
);
135+
function insertSelectCountries(){
136+
QTags.insertContent('[select name="country" options="Algeria,Angola,Benin,Botswana,Burkina Faso,Burundi,Cabo Verde,Cameroon,Central African Republic (CAR),Chad,Comoros,Democratic Republic of the Congo,Republic of the Congo,Cote d\'Ivoire,Djibouti,Egypt,Equatorial Guinea,Eritrea,Ethiopia,Gabon,Gambia,Ghana,Guinea,Guinea-Bissau,Kenya, Lesotho,Liberia,Libya,Madagascar,Malawi,Mali,Mauritania,Mauritius,Morocco,Mozambique,Namibia,Niger,Nigeria, Rwanda,Sao Tome and Principe,Senegal,Seychelles,Sierra Leone,Somalia,South Africa,South Sudan,Sudan, Swaziland,Tanzania,Togo,Tunisia,Uganda,Zambia,Zimbabwe"] ');
137+
}
138+
139+
//
122140
</script>
123141
<?php
124142
}

0 commit comments

Comments
 (0)