Changeset 1199698
- Timestamp:
- 07/16/2015 12:03:57 AM (11 years ago)
- File:
-
- 1 edited
-
wpgraphicstudio/trunk/includes/misc-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpgraphicstudio/trunk/includes/misc-functions.php
r1177156 r1199698 292 292 293 293 function wpgs_admin_tabs( $current = 'main' ) { 294 $tabs = array( 'main' => 'Main Settings', 'customize' => 'Customize', ' language' => 'Language', 'help' => 'Help' );294 $tabs = array( 'main' => 'Main Settings', 'customize' => 'Customize', 'help' => 'Help' ); 295 295 echo '<div id="icon-themes" class="icon32"><br></div>'; 296 296 echo '<h2 class="nav-tab-wrapper">'; … … 761 761 <?php 762 762 break; 763 case 'language' :764 if (isset($_POST['navTextValue'])) {765 766 $santxt2Headlines = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt2Headlines']));767 $sanNavTextValue = preg_replace('/\\\\/', '', htmlspecialchars($_POST['navTextValue']));768 $sanNavStyleValue = preg_replace('/\\\\/', '', htmlspecialchars($_POST['navStyleValue']));769 $sanNavIconValue = preg_replace('/\\\\/', '', htmlspecialchars($_POST['navIconValue']));770 $sanNavColorValue = preg_replace('/\\\\/', '', htmlspecialchars($_POST['navColorValue']));771 $sanNavGraphicsValue = preg_replace('/\\\\/', '', htmlspecialchars($_POST['navGraphicsValue']));772 $sanfont1Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font1Value']));773 $sanfont2Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font2Value']));774 $sanfont3Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font3Value']));775 $sanfont4Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font4Value']));776 $sanfont5Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font5Value']));777 $sanfont6Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font6Value']));778 $sanfont7Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font7Value']));779 $sanfont8Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font8Value']));780 $sanfont9Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font9Value']));781 $sanfont10Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font10Value']));782 $sanfont11Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font11Value']));783 $sanfont12Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font12Value']));784 $sanfont13Value = preg_replace('/\\\\/', '', htmlspecialchars($_POST['font13Value']));785 $sansaveOptions = preg_replace('/\\\\/', '', htmlspecialchars($_POST['saveOptions']));786 $sanColorOptions = preg_replace('/\\\\/', '', htmlspecialchars($_POST['ColorOptions']));787 $santextImageDimensions = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textImageDimensions']));788 $sansaveAs = preg_replace('/\\\\/', '', htmlspecialchars($_POST['saveAs']));789 $santextIcon = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textIcon']));790 $santextBackground = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textBackground']));791 $santextBackgroundColor = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textBackgroundColor']));792 $sansaveTo = preg_replace('/\\\\/', '', htmlspecialchars($_POST['saveTo']));793 $santxtAlign = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txtAlign']));794 $santxtField = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txtField']));795 $santxtColor = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txtColor']));796 $santxtSize = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txtSize']));797 $santxtFont = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txtFont']));798 $santxtButton = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txtButton']));799 $santxtCTAboxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txtCTAboxes']));800 $santxt1BelcherBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt1BelcherBoxes']));801 $santxt2BelcherBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt2BelcherBoxes']));802 $santxt3BelcherBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt3BelcherBoxes']));803 $santxt4BelcherBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt4BelcherBoxes']));804 $santxt1WebBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt1WebBoxes']));805 $santxt2WebBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt2WebBoxes']));806 $santxt3WebBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt3WebBoxes']));807 $santxt4WebBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt4WebBoxes']));808 $santxt5WebBoxes = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt5WebBoxes']));809 $santxt1Headlines = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt1Headlines']));810 $santxt2Headlines = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt2Headlines']));811 $santxt3Headlines = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txt3Headlines']));812 $santxtAdditional = preg_replace('/\\\\/', '', htmlspecialchars($_POST['txtAdditional']));813 $sanbtnReset = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnReset']));814 $sanbtnDownload = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnDownload']));815 $sanbtnCapture = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnCapture']));816 $sanbtnUpload = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnUpload']));817 $sanbtnDelete = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnDelete']));818 $sanbtnBack = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnBack']));819 $sanbtnFront = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnFront']));820 $sanbtnAlignLeft = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnAlignLeft']));821 $sanbtnAlignCenter = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnAlignCenter']));822 $sanbtnAlignRight = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnAlignRight']));823 $sanbtnAddText = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnAddText']));824 $sanbtnHelp = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnHelp']));825 $sanbtnFontShow = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnFontShow']));826 $sanbtnFontHide = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnFontHide']));827 $sanbtnSizeUp = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnSizeUp']));828 $sanbtnSizeDown = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnSizeDown']));829 $sanbtnTextColor = preg_replace('/\\\\/', '', htmlspecialchars($_POST['btnTextColor']));830 $santextBorderStroke = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textBorderStroke']));831 $santextTexture = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textTexture']));832 $santextTextureBackground = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textTextureBackground']));833 $santextPaymentBoxBackground = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textPaymentBoxBackground']));834 $santextDoodle = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textDoodle']));835 $santextPayment = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textPayment']));836 $santextBorders = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textBorders']));837 $santextHighlight = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textHighlight']));838 $santextmWidth = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textmWidth']));839 $santextXHeight = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textXHeight']));840 $santextNotice = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textNotice']));841 $sanemailGraphicNotice = preg_replace('/\\\\/', '', htmlspecialchars($_POST['emailGraphicNotice']));842 $sandeleteGraphicNotice = preg_replace('/\\\\/', '', htmlspecialchars($_POST['deleteGraphicNotice']));843 $santextGraphicSavedNotice = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textGraphicSavedNotice']));844 $sanemailGraphicSubject = preg_replace('/\\\\/', '', htmlspecialchars($_POST['emailGraphicSubject']));845 $sanemailGraphicBody = preg_replace('/\\\\/', '', htmlspecialchars($_POST['emailGraphicBody']));846 $sanaltDeleteGraphic = preg_replace('/\\\\/', '', htmlspecialchars($_POST['altDeleteGraphic']));847 $sanaltEmailGraphic = preg_replace('/\\\\/', '', htmlspecialchars($_POST['altEmailGraphic']));848 $sanaltDownloadGraphic = preg_replace('/\\\\/', '', htmlspecialchars($_POST['altDownloadGraphic']));849 $sanaltCreateGraphic = preg_replace('/\\\\/', '', htmlspecialchars($_POST['altCreateGraphic']));850 $sanaltViewGallery = preg_replace('/\\\\/', '', htmlspecialchars($_POST['altViewGallery']));851 $santextButtonColor = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textButtonColor']));852 $santextBottomColor = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textBottomColor']));853 $santextButtonBorderColor = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textButtonBorderColor']));854 $santextBorderColor = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textBorderColor']));855 $sanBelcherBoxHelpTitle = preg_replace('/\\\\/', '', htmlspecialchars($_POST['BelcherBoxHelpTitle']));856 $sanButtonsHelpTitle = preg_replace('/\\\\/', '', htmlspecialchars($_POST['ButtonsHelpTitle']));857 $sanctaBoxesHelpTitle = preg_replace('/\\\\/', '', htmlspecialchars($_POST['ctaBoxesHelpTitle']));858 $sanHeadlinesHelpTitle = preg_replace('/\\\\/', '', htmlspecialchars($_POST['HeadlinesHelpTitle']));859 $sanWebBoxHelpTitle = preg_replace('/\\\\/', '', htmlspecialchars($_POST['WebBoxHelpTitle']));860 $sanSelectHelpVideo = preg_replace('/\\\\/', '', htmlspecialchars($_POST['SelectHelpVideo']));861 $sanVideoLoading = preg_replace('/\\\\/', '', htmlspecialchars($_POST['videoLoading']));862 $santextEmptyGallery = preg_replace('/\\\\/', '', htmlspecialchars($_POST['textEmptyGallery']));863 864 $phpcontent = '<?php865 $xmlstr = <<<XML866 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>867 <langs>868 <langu>869 <navText>'.$sanNavTextValue.'</navText>870 <navStyle>'.$sanNavStyleValue.'</navStyle>871 <navIcon>'.$sanNavIconValue.'</navIcon>872 <navColor>'.$sanNavColorValue.'</navColor>873 <navGraphics>'.$sanNavGraphicsValue.'</navGraphics>874 <font1>'.$sanfont1Value.'</font1>875 <font2>'.$sanfont2Value.'</font2>876 <font3>'.$sanfont3Value.'</font3>877 <font4>'.$sanfont4Value.'</font4>878 <font5>'.$sanfont5Value.'</font5>879 <font6>'.$sanfont6Value.'</font6>880 <font7>'.$sanfont7Value.'</font7>881 <font8>'.$sanfont8Value.'</font8>882 <font9>'.$sanfont9Value.'</font9>883 <font10>'.$sanfont10Value.'</font10>884 <font11>'.$sanfont11Value.'</font11>885 <font12>'.$sanfont12Value.'</font12>886 <font13>'.$sanfont13Value.'</font13>887 <textSaveOptions>'.$sansaveOptions.'</textSaveOptions>888 <textColorOptions>'.$sanColorOptions.'</textColorOptions>889 <textImageDimensions>'.$santextImageDimensions.'</textImageDimensions>890 <textSaveAs>'.$sansaveAs.'</textSaveAs>891 <textIcon>'.$santextIcon.'</textIcon>892 <textBackground>'.$santextBackground.'</textBackground>893 <textBackgroundColor>'.$santextBackgroundColor.'</textBackgroundColor>894 <textSaveTo>'.$sansaveTo.'</textSaveTo>895 <txtAlign>'.$santxtAlign.'</txtAlign>896 <txtField>'.$santxtField.'</txtField>897 <txtColor>'.$santxtColor.'</txtColor>898 <txtSize>'.$santxtSize.'</txtSize>899 <txtFont>'.$santxtFont.'</txtFont>900 <txtButton>'.$santxtButton.'</txtButton>901 <txtCTAboxes>'.$santxtCTAboxes.'</txtCTAboxes>902 <txt1BelcherBoxes>'.$santxt1BelcherBoxes.'</txt1BelcherBoxes>903 <txt2BelcherBoxes>'.$santxt2BelcherBoxes.'</txt2BelcherBoxes>904 <txt3BelcherBoxes>'.$santxt3BelcherBoxes.'</txt3BelcherBoxes>905 <txt4BelcherBoxes>'.$santxt4BelcherBoxes.'</txt4BelcherBoxes>906 <txt1WebBoxes>'.$santxt1WebBoxes.'</txt1WebBoxes>907 <txt2WebBoxes>'.$santxt2WebBoxes.'</txt2WebBoxes>908 <txt3WebBoxes>'.$santxt3WebBoxes.'</txt3WebBoxes>909 <txt4WebBoxes>'.$santxt4WebBoxes.'</txt4WebBoxes>910 <txt5WebBoxes>'.$santxt5WebBoxes.'</txt5WebBoxes>911 <txt1Headlines>'.$santxt1Headlines.'</txt1Headlines>912 <txt2Headlines>'.$santxt2Headlines.'</txt2Headlines>913 <txt3Headlines>'.$santxt3Headlines.'</txt3Headlines>914 <txtAdditional>'.$santxtAdditional.'</txtAdditional>915 <btnReset>'.$sanbtnReset.'</btnReset>916 <btnDownload>'.$sanbtnDownload.'</btnDownload>917 <btnCapture>'.$sanbtnCapture.'</btnCapture>918 <btnUpload>'.$sanbtnUpload.'</btnUpload>919 <btnDelete>'.$sanbtnDelete.'</btnDelete>920 <btnBack>'.$sanbtnBack.'</btnBack>921 <btnFront>'.$sanbtnFront.'</btnFront>922 <btnAlignLeft>'.$sanbtnAlignLeft.'</btnAlignLeft>923 <btnAlignCenter>'.$sanbtnAlignCenter.'</btnAlignCenter>924 <btnAlignRight>'.$sanbtnAlignRight.'</btnAlignRight>925 <btnAddText>'.$sanbtnAddText.'</btnAddText>926 <btnHelp>'.$sanbtnHelp.'</btnHelp>927 <btnFontShow>'.$sanbtnFontShow.'</btnFontShow>928 <btnFontHide>'.$sanbtnFontHide.'</btnFontHide>929 <btnSizeUp>'.$sanbtnSizeUp.'</btnSizeUp>930 <btnSizeDown>'.$sanbtnSizeDown.'</btnSizeDown>931 <btnTextColor>'.$sanbtnTextColor.'</btnTextColor>932 <textBorderStroke>'.$santextBorderStroke.'</textBorderStroke>933 <textTexture>'.$santextTexture.'</textTexture>934 <textTextureBackground>'.$santextTextureBackground.'</textTextureBackground>935 <textPaymentBoxBackground>'.$santextPaymentBoxBackground.'</textPaymentBoxBackground>936 <textDoodle>'.$santextDoodle.'</textDoodle>937 <textHighlight>'.$santextHighlight.'</textHighlight>938 <textPayment>'.$santextPayment.'</textPayment>939 <textBorders>'.$santextBorders.'</textBorders>940 <textmWidth>'.$santextmWidth.'</textmWidth>941 <textXHeight>'.$santextXHeight.'</textXHeight>942 <textNotice>'.$santextNotice.'</textNotice>943 <emailGraphicSubject>'.$sanemailGraphicSubject.'</emailGraphicSubject>944 <emailGraphicBody>'.$sanemailGraphicBody.'</emailGraphicBody>945 <emailGraphicNotice>'.$sanemailGraphicNotice.'</emailGraphicNotice>946 <deleteGraphicNotice>'.$sandeleteGraphicNotice.'</deleteGraphicNotice>947 <textGraphicSavedNotice>'.$santextGraphicSavedNotice.'</textGraphicSavedNotice>948 <altDeleteGraphic>'.$sanaltDeleteGraphic.'</altDeleteGraphic>949 <altEmailGraphic>'.$sanaltEmailGraphic.'</altEmailGraphic>950 <altDownloadGraphic>'.$sanaltDownloadGraphic.'</altDownloadGraphic>951 <altCreateGraphic>'.$sanaltCreateGraphic.'</altCreateGraphic>952 <altViewGallery>'.$sanaltViewGallery.'</altViewGallery>953 <textButtonColor>'.$santextButtonColor.'</textButtonColor>954 <textBottomColor>'.$santextBottomColor.'</textBottomColor>955 <textButtonBorderColor>'.$santextButtonBorderColor.'</textButtonBorderColor>956 <textBorderColor>'.$santextBorderColor.'</textBorderColor>957 <BelcherBoxHelpTitle>'.$sanBelcherBoxHelpTitle.'</BelcherBoxHelpTitle>958 <ButtonsHelpTitle>'.$sanButtonsHelpTitle.'</ButtonsHelpTitle>959 <ctaBoxesHelpTitle>'.$sanctaBoxesHelpTitle.'</ctaBoxesHelpTitle>960 <HeadlinesHelpTitle>'.$sanHeadlinesHelpTitle.'</HeadlinesHelpTitle>961 <WebBoxHelpTitle>'.$sanWebBoxHelpTitle.'</WebBoxHelpTitle>962 <SelectHelpVideo>'.$sanSelectHelpVideo.'</SelectHelpVideo>963 <videoLoading>'.$sanVideoLoading.'</videoLoading>964 <textEmptyGallery>'.$santextEmptyGallery.'</textEmptyGallery>965 </langu>966 </langs>967 XML;968 ?>';969 $phpfp = fopen("../wp-content/uploads/wpgs/xml/core-language.php","wb");970 fwrite($phpfp,$phpcontent);971 fclose($phpfp);972 973 $content = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>974 <langs>975 <langu>976 <navText>'.$sanNavTextValue.'</navText>977 <navStyle>'.$sanNavStyleValue.'</navStyle>978 <navIcon>'.$sanNavIconValue.'</navIcon>979 <navColor>'.$sanNavColorValue.'</navColor>980 <navGraphics>'.$sanNavGraphicsValue.'</navGraphics>981 <font1>'.$sanfont1Value.'</font1>982 <font2>'.$sanfont2Value.'</font2>983 <font3>'.$sanfont3Value.'</font3>984 <font4>'.$sanfont4Value.'</font4>985 <font5>'.$sanfont5Value.'</font5>986 <font6>'.$sanfont6Value.'</font6>987 <font7>'.$sanfont7Value.'</font7>988 <font8>'.$sanfont8Value.'</font8>989 <font9>'.$sanfont9Value.'</font9>990 <font10>'.$sanfont10Value.'</font10>991 <font11>'.$sanfont11Value.'</font11>992 <font12>'.$sanfont12Value.'</font12>993 <font13>'.$sanfont13Value.'</font13>994 <textSaveOptions>'.$sansaveOptions.'</textSaveOptions>995 <textColorOptions>'.$sanColorOptions.'</textColorOptions>996 <textImageDimensions>'.$santextImageDimensions.'</textImageDimensions>997 <textSaveAs>'.$sansaveAs.'</textSaveAs>998 <textIcon>'.$santextIcon.'</textIcon>999 <textBackground>'.$santextBackground.'</textBackground>1000 <textBackgroundColor>'.$santextBackgroundColor.'</textBackgroundColor>1001 <textSaveTo>'.$sansaveTo.'</textSaveTo>1002 <txtAlign>'.$santxtAlign.'</txtAlign>1003 <txtField>'.$santxtField.'</txtField>1004 <txtColor>'.$santxtColor.'</txtColor>1005 <txtSize>'.$santxtSize.'</txtSize>1006 <txtFont>'.$santxtFont.'</txtFont>1007 <txtButton>'.$santxtButton.'</txtButton>1008 <txtCTAboxes>'.$santxtCTAboxes.'</txtCTAboxes>1009 <txt1BelcherBoxes>'.$santxt1BelcherBoxes.'</txt1BelcherBoxes>1010 <txt2BelcherBoxes>'.$santxt2BelcherBoxes.'</txt2BelcherBoxes>1011 <txt3BelcherBoxes>'.$santxt3BelcherBoxes.'</txt3BelcherBoxes>1012 <txt4BelcherBoxes>'.$santxt4BelcherBoxes.'</txt4BelcherBoxes>1013 <txt1WebBoxes>'.$santxt1WebBoxes.'</txt1WebBoxes>1014 <txt2WebBoxes>'.$santxt2WebBoxes.'</txt2WebBoxes>1015 <txt3WebBoxes>'.$santxt3WebBoxes.'</txt3WebBoxes>1016 <txt4WebBoxes>'.$santxt4WebBoxes.'</txt4WebBoxes>1017 <txt5WebBoxes>'.$santxt5WebBoxes.'</txt5WebBoxes>1018 <txt1Headlines>'.$santxt1Headlines.'</txt1Headlines>1019 <txt2Headlines>'.$santxt2Headlines.'</txt2Headlines>1020 <txt3Headlines>'.$santxt3Headlines.'</txt3Headlines>1021 <txtAdditional>'.$santxtAdditional.'</txtAdditional>1022 <btnReset>'.$sanbtnReset.'</btnReset>1023 <btnDownload>'.$sanbtnDownload.'</btnDownload>1024 <btnCapture>'.$sanbtnCapture.'</btnCapture>1025 <btnUpload>'.$sanbtnUpload.'</btnUpload>1026 <btnDelete>'.$sanbtnDelete.'</btnDelete>1027 <btnBack>'.$sanbtnBack.'</btnBack>1028 <btnFront>'.$sanbtnFront.'</btnFront>1029 <btnAlignLeft>'.$sanbtnAlignLeft.'</btnAlignLeft>1030 <btnAlignCenter>'.$sanbtnAlignCenter.'</btnAlignCenter>1031 <btnAlignRight>'.$sanbtnAlignRight.'</btnAlignRight>1032 <btnAddText>'.$sanbtnAddText.'</btnAddText>1033 <btnHelp>'.$sanbtnHelp.'</btnHelp>1034 <btnFontShow>'.$sanbtnFontShow.'</btnFontShow>1035 <btnFontHide>'.$sanbtnFontHide.'</btnFontHide>1036 <btnSizeUp>'.$sanbtnSizeUp.'</btnSizeUp>1037 <btnSizeDown>'.$sanbtnSizeDown.'</btnSizeDown>1038 <btnTextColor>'.$sanbtnTextColor.'</btnTextColor>1039 <textBorderStroke>'.$santextBorderStroke.'</textBorderStroke>1040 <textTexture>'.$santextTexture.'</textTexture>1041 <textTextureBackground>'.$santextTextureBackground.'</textTextureBackground>1042 <textPaymentBoxBackground>'.$santextPaymentBoxBackground.'</textPaymentBoxBackground>1043 <textDoodle>'.$santextDoodle.'</textDoodle>1044 <textHighlight>'.$santextHighlight.'</textHighlight>1045 <textPayment>'.$santextPayment.'</textPayment>1046 <textBorders>'.$santextBorders.'</textBorders>1047 <textmWidth>'.$santextmWidth.'</textmWidth>1048 <textXHeight>'.$santextXHeight.'</textXHeight>1049 <textNotice>'.$santextNotice.'</textNotice>1050 <emailGraphicSubject>'.$sanemailGraphicSubject.'</emailGraphicSubject>1051 <emailGraphicBody>'.$sanemailGraphicBody.'</emailGraphicBody>1052 <emailGraphicNotice>'.$sanemailGraphicNotice.'</emailGraphicNotice>1053 <deleteGraphicNotice>'.$sandeleteGraphicNotice.'</deleteGraphicNotice>1054 <textGraphicSavedNotice>'.$santextGraphicSavedNotice.'</textGraphicSavedNotice>1055 <altDeleteGraphic>'.$sanaltDeleteGraphic.'</altDeleteGraphic>1056 <altEmailGraphic>'.$sanaltEmailGraphic.'</altEmailGraphic>1057 <altDownloadGraphic>'.$sanaltDownloadGraphic.'</altDownloadGraphic>1058 <altCreateGraphic>'.$sanaltCreateGraphic.'</altCreateGraphic>1059 <altViewGallery>'.$sanaltViewGallery.'</altViewGallery>1060 <textButtonColor>'.$santextButtonColor.'</textButtonColor>1061 <textBottomColor>'.$santextBottomColor.'</textBottomColor>1062 <textButtonBorderColor>'.$santextButtonBorderColor.'</textButtonBorderColor>1063 <textBorderColor>'.$santextBorderColor.'</textBorderColor>1064 <BelcherBoxHelpTitle>'.$sanBelcherBoxHelpTitle.'</BelcherBoxHelpTitle>1065 <ButtonsHelpTitle>'.$sanButtonsHelpTitle.'</ButtonsHelpTitle>1066 <ctaBoxesHelpTitle>'.$sanctaBoxesHelpTitle.'</ctaBoxesHelpTitle>1067 <HeadlinesHelpTitle>'.$sanHeadlinesHelpTitle.'</HeadlinesHelpTitle>1068 <WebBoxHelpTitle>'.$sanWebBoxHelpTitle.'</WebBoxHelpTitle>1069 <SelectHelpVideo>'.$sanSelectHelpVideo.'</SelectHelpVideo>1070 <videoLoading>'.$sanVideoLoading.'</videoLoading>1071 <textEmptyGallery>'.$santextEmptyGallery.'</textEmptyGallery>1072 </langu>1073 </langs>';1074 $fp = fopen("../wp-content/uploads/wpgs/xml/core-language.xml","wb");1075 fwrite($fp,$content);1076 fclose($fp);1077 }1078 1079 include '../wp-content/uploads/wpgs/xml/core-language.php';1080 1081 $langs = new SimpleXMLElement($xmlstr);1082 $nav_text_value = $langs->langu[0]->navText;1083 $nav_style_value = $langs->langu[0]->navStyle;1084 $nav_icon_value = $langs->langu[0]->navIcon;1085 $nav_color_value = $langs->langu[0]->navColor;1086 $nav_graphics_value = $langs->langu[0]->navGraphics;1087 1088 $font_1_value = $langs->langu[0]->font1;1089 $font_2_value = $langs->langu[0]->font2;1090 $font_3_value = $langs->langu[0]->font3;1091 $font_4_value = $langs->langu[0]->font4;1092 $font_5_value = $langs->langu[0]->font5;1093 $font_6_value = $langs->langu[0]->font6;1094 $font_7_value = $langs->langu[0]->font7;1095 $font_8_value = $langs->langu[0]->font8;1096 $font_9_value = $langs->langu[0]->font9;1097 $font_10_value = $langs->langu[0]->font10;1098 $font_11_value = $langs->langu[0]->font11;1099 $font_12_value = $langs->langu[0]->font12;1100 $font_13_value = $langs->langu[0]->font13;1101 1102 $save_options_value = $langs->langu[0]->textSaveOptions;1103 $color_options_value = $langs->langu[0]->textColorOptions;1104 $text_image_dimensions_value = $langs->langu[0]->textImageDimensions;1105 $save_as_value = $langs->langu[0]->textSaveAs;1106 $save_to_value = $langs->langu[0]->textSaveTo;1107 1108 $text_font_value = $langs->langu[0]->txtFont;1109 $text_color_value = $langs->langu[0]->txtColor;1110 $text_size_value = $langs->langu[0]->txtSize;1111 $text_align_value = $langs->langu[0]->txtAlign;1112 $text_field_value = $langs->langu[0]->txtField;1113 1114 $text_background_value = $langs->langu[0]->textBackground;1115 $text_icon_value = $langs->langu[0]->textIcon;1116 1117 $text_border_stroke_value = $langs->langu[0]->textBorderStroke;1118 $text_texture_value = $langs->langu[0]->textTexture;1119 $text_texture_background_value = $langs->langu[0]->textTextureBackground;1120 $text_payment_box_background_value = $langs->langu[0]->textPaymentBoxBackground;1121 $text_doodle_value = $langs->langu[0]->textDoodle;1122 $text_payment_value = $langs->langu[0]->textPayment;1123 $text_borders_value = $langs->langu[0]->textBorders;1124 $text_highlight_value = $langs->langu[0]->textHighlight;1125 $text_mwidth_value = $langs->langu[0]->textmWidth;1126 $text_xheight_value = $langs->langu[0]->textXHeight;1127 $text_button_color_value = $langs->langu[0]->textButtonColor;1128 $text_button_border_color_value = $langs->langu[0]->textButtonBorderColor;1129 $text_bottom_color_value = $langs->langu[0]->textBottomColor;1130 $text_background_color_value = $langs->langu[0]->textBackgroundColor;1131 $text_border_color_value = $langs->langu[0]->textBorderColor;1132 1133 $reset_value = $langs->langu[0]->btnReset;1134 $delete_value = $langs->langu[0]->btnDelete;1135 $upload_value = $langs->langu[0]->btnUpload;1136 $move_forward_value = $langs->langu[0]->btnFront;1137 $move_backward_value = $langs->langu[0]->btnBack;1138 $save_gallery_value = $langs->langu[0]->btnCapture;1139 $save_computer_value = $langs->langu[0]->btnDownload;1140 $align_left_value = $langs->langu[0]->btnAlignLeft;1141 $align_center_value = $langs->langu[0]->btnAlignCenter;1142 $align_right_value = $langs->langu[0]->btnAlignRight;1143 $add_text_field_value = $langs->langu[0]->btnAddText;1144 $help_field_value = $langs->langu[0]->btnHelp;1145 $font_show_field_value = $langs->langu[0]->btnFontShow;1146 $font_hide_field_value = $langs->langu[0]->btnFontHide;1147 $size_up_field_value = $langs->langu[0]->btnSizeUp;1148 $size_down_field_value = $langs->langu[0]->btnSizeDown;1149 $text_color_field_value = $langs->langu[0]->btnTextColor;1150 1151 $button_text_field_value = $langs->langu[0]->txtButton;1152 $cta_boxes_text_field_value = $langs->langu[0]->txtCTAboxes;1153 $text_notice_value = $langs->langu[0]->textNotice;1154 $belcherbox_text1_field_value = $langs->langu[0]->txt1BelcherBoxes;1155 $belcherbox_text2_field_value = $langs->langu[0]->txt2BelcherBoxes;1156 $belcherbox_text3_field_value = $langs->langu[0]->txt3BelcherBoxes;1157 $belcherbox_text4_field_value = $langs->langu[0]->txt4BelcherBoxes;1158 $webboxes_text1_field_value = $langs->langu[0]->txt1WebBoxes;1159 $webboxes_text2_field_value = $langs->langu[0]->txt2WebBoxes;1160 $webboxes_text3_field_value = $langs->langu[0]->txt3WebBoxes;1161 $webboxes_text4_field_value = $langs->langu[0]->txt4WebBoxes;1162 $webboxes_text5_field_value = $langs->langu[0]->txt5WebBoxes;1163 $headlines_text1_field_value = $langs->langu[0]->txt1Headlines;1164 $headlines_text2_field_value = $langs->langu[0]->txt2Headlines;1165 $headlines_text3_field_value = $langs->langu[0]->txt3Headlines;1166 $additional_text_field_value = $langs->langu[0]->txtAdditional;1167 1168 $text_belcher_box_help_title_value = $langs->langu[0]->BelcherBoxHelpTitle;1169 $text_buttons_help_title_value = $langs->langu[0]->ButtonsHelpTitle;1170 $text_cta_boxes_help_title_value = $langs->langu[0]->ctaBoxesHelpTitle;1171 $text_headlines_help_title_value = $langs->langu[0]->HeadlinesHelpTitle;1172 $text_web_box_help_title_value = $langs->langu[0]->WebBoxHelpTitle;1173 $text_select_help_video_value = $langs->langu[0]->SelectHelpVideo;1174 $text_video_loading_value = $langs->langu[0]->videoLoading;1175 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;1176 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject;1177 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody;1178 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;1179 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;1180 $alt_delete_graphic_value = $langs->langu[0]->altDeleteGraphic;1181 $alt_email_graphic_value = $langs->langu[0]->altEmailGraphic;1182 $alt_download_graphic_value = $langs->langu[0]->altDownloadGraphic;1183 $alt_create_graphic_value = $langs->langu[0]->altCreateGraphic;1184 $alt_view_gallery_value = $langs->langu[0]->altViewGallery;1185 $text_empty_gallery_value = $langs->langu[0]->textEmptyGallery;1186 1187 if (isset($_POST['navTextValue'])) { ?>1188 <div class="updated">1189 <p><?php _e( 'Text Customize Options Updated!', 'wpgs' ); ?></p>1190 </div>1191 <?php } ?>1192 <div class="wrap">1193 <h2><?php _e('wpGraphicStudio Text Customize Options'); ?></h2>1194 1195 <form method="post" action="">1196 <h4><?php _e('Below are all the text variations used within the wpGraphicStudio Core graphic modules1197 (Buttons, Belcher Boxes, CTA Boxes, Headlines, Web Boxes) to change the language simply enter1198 in the translated text for each text variation and save your changes at the bottom.<br><br>You can use <a href="https://translate.google.com/" target="_blank">1199 <b><u>Google Translate</b></u></a> to translate these word combinations to just about any language and paste the translated versions below.<br><br>The text1200 variations below are used on all modules and/or the five included modules in this plugin.<br>All add on modules also have a language section where additional1201 text variations that are specific to those modules are located and can be translated as well.'); ?></h4>1202 <h2><?php _e('Navigation Menu'); ?><?php _e(' - Text displayed for each navigation menu button'); ?></h2>1203 Text menu button: <input type="text" name="navTextValue" value="<?php echo $nav_text_value ?>"><br>1204 Style menu button: <input type="text" name="navStyleValue" value="<?php echo $nav_style_value ?>"><br>1205 Icon menu button: <input type="text" name="navIconValue" value="<?php echo $nav_icon_value ?>"><br>1206 Color menu button: <input type="text" name="navColorValue" value="<?php echo $nav_color_value ?>"><br>1207 Graphics menu button: <input type="text" name="navGraphicsValue" value="<?php echo $nav_graphics_value ?>">1208 1209 <h2><?php _e('Font Menu'); ?><?php _e(' - Text displayed for each font name'); ?></h2>1210 Font 1 name: <input type="text" name="font1Value" value="<?php echo $font_1_value ?>"><br>1211 Font 2 name: <input type="text" name="font2Value" value="<?php echo $font_2_value ?>"><br>1212 Font 3 name: <input type="text" name="font3Value" value="<?php echo $font_3_value ?>"><br>1213 Font 4 name: <input type="text" name="font4Value" value="<?php echo $font_4_value ?>"><br>1214 Font 5 name: <input type="text" name="font5Value" value="<?php echo $font_5_value ?>"><br>1215 Font 6 name: <input type="text" name="font6Value" value="<?php echo $font_6_value ?>"><br>1216 Font 7 name: <input type="text" name="font7Value" value="<?php echo $font_7_value ?>"><br>1217 Font 8 name: <input type="text" name="font8Value" value="<?php echo $font_8_value ?>"><br>1218 Font 9 name: <input type="text" name="font9Value" value="<?php echo $font_9_value ?>"><br>1219 Font 10 name: <input type="text" name="font10Value" value="<?php echo $font_10_value ?>"><br>1220 Font 11 name: <input type="text" name="font11Value" value="<?php echo $font_11_value ?>"><br>1221 Font 12 name: <input type="text" name="font12Value" value="<?php echo $font_12_value ?>"><br>1222 Font 13 name: <input type="text" name="font13Value" value="<?php echo $font_13_value ?>">1223 1224 <h2><?php _e('Save Options'); ?><?php _e(' - Text displayed in the save options section'); ?></h2>1225 Save Options: <input type="text" name="saveOptions" value="<?php echo $save_options_value ?>"><br>1226 Save As: <input type="text" name="saveAs" value="<?php echo $save_as_value ?>"><br>1227 Save To: <input type="text" name="saveTo" value="<?php echo $save_to_value ?>"><br>1228 Image Dimensions: <input type="text" name="textImageDimensions" value="<?php echo $text_image_dimensions_value ?>">1229 1230 <h2><?php _e('Text Menu'); ?><?php _e(' - Text displayed in the text menu'); ?></h2>1231 Color: <input type="text" name="txtColor" value="<?php echo $text_color_value ?>"><br>1232 Font: <input type="text" name="txtFont" value="<?php echo $text_font_value ?>"><br>1233 Size: <input type="text" name="txtSize" value="<?php echo $text_size_value ?>"><br>1234 Align: <input type="text" name="txtAlign" value="<?php echo $text_align_value ?>"><br>1235 Text Field: <input type="text" name="txtField" value="<?php echo $text_field_value ?>">1236 1237 <h2><?php _e('Colors Menu'); ?><?php _e(' - Text displayed in the colors menu'); ?></h2>1238 Color Options: <input type="text" name="ColorOptions" value="<?php echo $color_options_value ?>"><br>1239 Background: <input type="text" name="textBackground" value="<?php echo $text_background_value ?>"><br>1240 Icon: <input type="text" name="textIcon" value="<?php echo $text_icon_value ?>"><br>1241 Border Stroke: <input type="text" name="textBorderStroke" value="<?php echo $text_border_stroke_value ?>"><br>1242 Texture: <input type="text" name="textTexture" value="<?php echo $text_texture_value ?>"><br>1243 Texture Background: <input type="text" name="textTextureBackground" value="<?php echo $text_texture_background_value ?>"><br>1244 Payment Box Background: <input type="text" name="textPaymentBoxBackground" value="<?php echo $text_payment_box_background_value ?>"><br>1245 Doodle: <input type="text" name="textDoodle" value="<?php echo $text_doodle_value ?>"><br>1246 Highlight: <input type="text" name="textHighlight" value="<?php echo $text_highlight_value ?>"><br>1247 Width: <input type="text" name="textmWidth" value="<?php echo $text_mwidth_value ?>"><br>1248 X-Height: <input type="text" name="textXHeight" value="<?php echo $text_xheight_value ?>"><br>1249 Payment: <input type="text" name="textPayment" value="<?php echo $text_payment_value ?>"><br>1250 Borders: <input type="text" name="textBorders" value="<?php echo $text_borders_value ?>"><br>1251 Button: <input type="text" name="textButtonColor" value="<?php echo $text_button_color_value ?>"><br>1252 Button Border Color: <input type="text" name="textButtonBorderColor" value="<?php echo $text_button_border_color_value ?>"><br>1253 Border Color: <input type="text" name="textBorderColor" value="<?php echo $text_border_color_value ?>"><br>1254 Background Color: <input type="text" name="textBackgroundColor" value="<?php echo $text_background_color_value ?>"><br>1255 Bottom Color: <input type="text" name="textBottomColor" value="<?php echo $text_bottom_color_value ?>">1256 1257 <h2><?php _e('Feature Tooltips'); ?><?php _e(' - Tooltip text displayed when hovering over action icons'); ?></h2>1258 Reset: <input type="text" name="btnReset" value="<?php echo $reset_value ?>"><br>1259 Delete: <input type="text" name="btnDelete" value="<?php echo $delete_value ?>"><br>1260 Upload: <input type="text" name="btnUpload" value="<?php echo $upload_value ?>"><br>1261 Move Forward: <input type="text" name="btnFront" value="<?php echo $move_forward_value ?>"><br>1262 Move Backward: <input type="text" name="btnBack" value="<?php echo $move_backward_value ?>"><br>1263 Save To Gallery: <input type="text" name="btnCapture" value="<?php echo $save_gallery_value ?>"><br>1264 Save To Computer: <input type="text" name="btnDownload" value="<?php echo $save_computer_value ?>"><br>1265 Align Left: <input type="text" name="btnAlignLeft" value="<?php echo $align_left_value ?>"><br>1266 Align Center: <input type="text" name="btnAlignCenter" value="<?php echo $align_center_value ?>"><br>1267 Align Right: <input type="text" name="btnAlignRight" value="<?php echo $align_right_value ?>"><br>1268 Text Field: <input type="text" name="btnAddText" value="<?php echo $add_text_field_value ?>"><br>1269 Help: <input type="text" name="btnHelp" value="<?php echo $help_field_value ?>"><br>1270 Font Selector Open: <input type="text" name="btnFontShow" value="<?php echo $font_show_field_value ?>"><br>1271 Font Selector Close: <input type="text" name="btnFontHide" value="<?php echo $font_hide_field_value ?>"><br>1272 Font Size Up: <input type="text" name="btnSizeUp" value="<?php echo $size_up_field_value ?>"><br>1273 Font Size Down: <input type="text" name="btnSizeDown" value="<?php echo $size_down_field_value ?>"><br>1274 Font Color: <input type="text" name="btnTextColor" value="<?php echo $text_color_field_value ?>">1275 1276 <h2><?php _e('Height/Width Notice - Headlines Module'); ?></h2>1277 Height/Width Notice: <input type="text" name="textNotice" value="<?php echo $text_notice_value ?>">1278 1279 <h2><?php _e('wpGraphicStudio Notices - All Core Modules and Add On Modules'); ?></h2>1280 Email Graphic Notice: <input type="text" name="emailGraphicNotice" value="<?php echo $text_email_graphic_notice_value ?>"><br>1281 Delete Graphic Notice: <input type="text" name="deleteGraphicNotice" value="<?php echo $text_delete_graphic_notice_value ?>"><br>1282 Email Graphic Subject: <input type="text" name="emailGraphicSubject" value="<?php echo $text_email_graphic_subject_value ?>"><br>1283 Email Graphic Body: <input type="text" name="emailGraphicBody" value="<?php echo $text_email_graphic_body_value ?>"><br>1284 Save Graphic Notice: <input type="text" name="textGraphicSavedNotice" value="<?php echo $text_graphic_saved_notice_value ?>"><br>1285 Download Graphic Alt Text: <input type="text" name="altDownloadGraphic" value="<?php echo $alt_download_graphic_value ?>"><br>1286 Delete Graphic Alt Text: <input type="text" name="altDeleteGraphic" value="<?php echo $alt_delete_graphic_value ?>"><br>1287 Email Graphic Alt Text: <input type="text" name="altEmailGraphic" value="<?php echo $alt_email_graphic_value ?>"><br>1288 Create Graphic Alt Text: <input type="text" name="altCreateGraphic" value="<?php echo $alt_create_graphic_value ?>"><br>1289 View Gallery Alt Text: <input type="text" name="altViewGallery" value="<?php echo $alt_view_gallery_value ?>"><br>1290 Empty Graphic Gallery: <input type="text" name="textEmptyGallery" value="<?php echo $text_empty_gallery_value ?>">1291 1292 <h2><?php _e('Help Area Text - All Core Modules'); ?></h2>1293 Belcher Box Help Section Title: <input type="text" name="BelcherBoxHelpTitle" value="<?php echo $text_belcher_box_help_title_value ?>"><br>1294 Button Help Section Title: <input type="text" name="ButtonsHelpTitle" value="<?php echo $text_buttons_help_title_value ?>"><br>1295 Call to Action Boxes Help Section Title: <input type="text" name="ctaBoxesHelpTitle" value="<?php echo $text_cta_boxes_help_title_value ?>"><br>1296 Headlines Help Section Title: <input type="text" name="HeadlinesHelpTitle" value="<?php echo $text_headlines_help_title_value ?>"><br>1297 Web Boxes Help Section Title: <input type="text" name="WebBoxHelpTitle" value="<?php echo $text_web_box_help_title_value ?>"><br>1298 Select Video Text: <input type="text" name="SelectHelpVideo" value="<?php echo $text_select_help_video_value ?>"><br>1299 Video Loading Text: <input type="text" name="VideoLoading" value="<?php echo $text_video_loading_value ?>">1300 1301 <h2><?php _e('Module Design Areas'); ?><?php _e(' - Text displayed in the design areas of the graphic modules'); ?></h2>1302 Buttons Text Field: <input type="text" name="txtButton" value="<?php echo $button_text_field_value ?>"><br>1303 Call toAction Boxes Text Field: <input type="text" name="txtCTAboxes" value="<?php echo $cta_boxes_text_field_value ?>"><br>1304 Belcher Boxes Text Field 1: <input type="text" name="txt1BelcherBoxes" value="<?php echo $belcherbox_text1_field_value ?>"><br>1305 Belcher Boxes Text Field 2: <input type="text" name="txt2BelcherBoxes" value="<?php echo $belcherbox_text2_field_value ?>"><br>1306 Belcher Boxes Text Field 3: <input type="text" name="txt3BelcherBoxes" value="<?php echo $belcherbox_text3_field_value ?>"><br>1307 Belcher Boxes Text Field 4: <input type="text" name="txt4BelcherBoxes" size="50" value="<?php echo $belcherbox_text4_field_value ?>"><br>1308 Web Boxes Text Field 1: <input type="text" name="txt1WebBoxes" value="<?php echo $webboxes_text1_field_value ?>"><br>1309 Web Boxes Text Field 2: <input type="text" name="txt2WebBoxes" value="<?php echo $webboxes_text2_field_value ?>"><br>1310 Web Boxes Text Field 3: <input type="text" name="txt3WebBoxes" value="<?php echo $webboxes_text3_field_value ?>"><br>1311 Web Boxes Text Field 4: <input type="text" name="txt4WebBoxes" size="50" value="<?php echo $webboxes_text4_field_value ?>"><br>1312 Web Boxes Text Field 5: <input type="text" name="txt5WebBoxes" size="50" value="<?php echo $webboxes_text5_field_value ?>"><br>1313 Headlines Text Field 1: <input type="text" name="txt1Headlines" value="<?php echo $headlines_text1_field_value ?>"><br>1314 Headlines Text Field 2: <input type="text" name="txt2Headlines" value="<?php echo htmlspecialchars($headlines_text2_field_value) ?>"><br>1315 Headlines Text Field 3: <input type="text" name="txt3Headlines" value="<?php echo $headlines_text3_field_value ?>"><br>1316 Additional Text Field: <input type="text" name="txtAdditional" value="<?php echo $additional_text_field_value ?>">1317 </table>1318 <?php submit_button(); ?>1319 </form>1320 1321 <?php break;1322 763 case 'help' : 1323 764 if (isset($_POST['BelcherBoxID1Value'])) {
Note: See TracChangeset
for help on using the changeset viewer.