diff --git a/css/admin_style.css b/css/admin_style.css index 0fdea91..1eeeb04 100644 --- a/css/admin_style.css +++ b/css/admin_style.css @@ -219,4 +219,57 @@ ul.mep_rt_settings_list li { margin: 20px 0; border-bottom: 1px solid #ddd; padding: 5px 0 10px; +} +.mage_settings_panel_wrap .metabox-holder { + padding-top: 10px; + background: #fff; + padding: 20px; + border: 5px solid #0071a1; + /* border-top: 0px; */ +} + +.mage_settings_panel_wrap .nav-tab { + float: left; + border: 2px solid #0e678c; + border-bottom: none; + margin-left: .5em; + padding: 5px 10px; + font-size: 14px; + line-height: 1.71428571; + font-weight: 600; + background: #0071a1; + color: #fff; + text-decoration: none; + white-space: nowrap; +} +.mage_settings_panel_wrap .nav-tab.nav-tab-active { + background: #5ea8c8; +} +.mage_settings_panel_wrap table th { + width: 330px; + border-bottom: 1px solid #ddd; + padding: 10px 10px 0 0; + font-size: 13px; +} + +.mage_settings_panel_wrap table td { + border-bottom: 1px solid #ddd; + padding: 10px 0; +} +.mage_settings_panel_wrap p.submit { + text-align: right; +} + +.mage_settings_panel_wrap p.submit input { + font-size: 16px; + padding: 5px 30px; + border-radius: 0; +} +.mage_settings_panel_wrap .metabox-holder h2 { + border-bottom: 2px solid #0071a1; + font-size: 20px; + padding: 15px; + background: #ddd; + margin-bottom: 30px; + margin-top: 10px; } \ No newline at end of file diff --git a/css/codemirror.css b/css/codemirror.css new file mode 100755 index 0000000..595b598 --- /dev/null +++ b/css/codemirror.css @@ -0,0 +1,2 @@ +.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0 0} +/*# sourceMappingURL=codemirror.min.css.map */ \ No newline at end of file diff --git a/css/images/ui-bg_flat_75_ffffff_40x100.png b/css/images/ui-bg_flat_75_ffffff_40x100.png index ac8b229..a2bbb77 100644 Binary files a/css/images/ui-bg_flat_75_ffffff_40x100.png and b/css/images/ui-bg_flat_75_ffffff_40x100.png differ diff --git a/css/images/ui-icons_444444_256x240.png b/css/images/ui-icons_444444_256x240.png new file mode 100755 index 0000000..75a762c Binary files /dev/null and b/css/images/ui-icons_444444_256x240.png differ diff --git a/css/images/ui-icons_555555_256x240.png b/css/images/ui-icons_555555_256x240.png new file mode 100755 index 0000000..7b99e92 Binary files /dev/null and b/css/images/ui-icons_555555_256x240.png differ diff --git a/css/images/ui-icons_777620_256x240.png b/css/images/ui-icons_777620_256x240.png new file mode 100755 index 0000000..3cb7b0f Binary files /dev/null and b/css/images/ui-icons_777620_256x240.png differ diff --git a/css/images/ui-icons_777777_256x240.png b/css/images/ui-icons_777777_256x240.png new file mode 100755 index 0000000..908b542 Binary files /dev/null and b/css/images/ui-icons_777777_256x240.png differ diff --git a/css/images/ui-icons_cc0000_256x240.png b/css/images/ui-icons_cc0000_256x240.png new file mode 100755 index 0000000..abb1165 Binary files /dev/null and b/css/images/ui-icons_cc0000_256x240.png differ diff --git a/css/images/ui-icons_ffffff_256x240.png b/css/images/ui-icons_ffffff_256x240.png new file mode 100755 index 0000000..a2bbb77 Binary files /dev/null and b/css/images/ui-icons_ffffff_256x240.png differ diff --git a/css/jquery-ui.css b/css/jquery-ui.css index b775b44..62578c5 100644 --- a/css/jquery-ui.css +++ b/css/jquery-ui.css @@ -1,4 +1,4 @@ -/*! jQuery UI - v1.11.0 - 2014-06-26 +/*! jQuery UI - v1.11.2 - 2014-10-16 * http://jqueryui.com * Includes: core.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, draggable.css, menu.css, progressbar.css, resizable.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px @@ -48,7 +48,7 @@ left: 0; position: absolute; opacity: 0; - filter:Alpha(Opacity=0); + filter:Alpha(Opacity=0); /* support: IE8 */ } .ui-front { @@ -274,7 +274,7 @@ button.ui-button::-moz-focus-inner { } .ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year { - width: 49%; + width: 45%; } .ui-datepicker table { width: 100%; @@ -514,9 +514,9 @@ button.ui-button::-moz-focus-inner { height: 100%; } .ui-progressbar .ui-progressbar-overlay { - background: url("images/animated-overlay.gif"); + background: url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw=="); height: 100%; - filter: alpha(opacity=25); + filter: alpha(opacity=25); /* support: IE8 */ opacity: 0.25; } .ui-progressbar-indeterminate .ui-progressbar-value { @@ -672,7 +672,7 @@ button.ui-button::-moz-focus-inner { background-position: 0 0; } -/* For IE8 - See #6727 */ +/* support: IE8 - See #6727 */ .ui-slider.ui-state-disabled .ui-slider-handle, .ui-slider.ui-state-disabled .ui-slider-range { filter: inherit; @@ -954,18 +954,18 @@ body .ui-tooltip { .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; - filter:Alpha(Opacity=70); + filter:Alpha(Opacity=70); /* support: IE8 */ font-weight: normal; } .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; - filter:Alpha(Opacity=35); + filter:Alpha(Opacity=35); /* support: IE8 */ background-image: none; } .ui-state-disabled .ui-icon { - filter:Alpha(Opacity=35); /* For IE8 - See #6059 */ + filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */ } /* Icons @@ -1213,13 +1213,13 @@ body .ui-tooltip { .ui-widget-overlay { background: #aaaaaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x; opacity: .3; - filter: Alpha(Opacity=30); + filter: Alpha(Opacity=30); /* support: IE8 */ } .ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x; opacity: .3; - filter: Alpha(Opacity=30); + filter: Alpha(Opacity=30); /* support: IE8 */ border-radius: 8px; } diff --git a/css/mage-options-framework.css b/css/mage-options-framework.css new file mode 100755 index 0000000..b1a8e28 --- /dev/null +++ b/css/mage-options-framework.css @@ -0,0 +1,1849 @@ +@charset "utf-8"; + +/*ppof-metabox*/ + +div > .ppof-metabox { + background: #eee; +} +.ppof-metabox{ + margin-top: 0; +} + +.ppof-metabox .form-wrapper{ + +} + +.ppof-metabox .navigation.right{ + float: right; + width: 25%; +} + +.ppof-metabox .form-wrapper.left{ + float: left; + margin-left: 0; + width: 75%; +} +.ppof-metabox .navigation.none{ + display: none; +} +.ppof-metabox .navigation.top{ + position: relative; + width: 100%; + float: none; + clear: both; + top: 0; +} + + +.ppof-metabox .navigation.top .nav-header{ + width: 250px; + float: left; +} + +.ppof-metabox .navigation.top .nav-items{ + +} + + + + +.ppof-metabox .navigation.top .nav-item{ + display: inline-block; + margin: 0; + padding: 16px 25px; + float: left; +} + +.ppof-metabox .navigation.top .themeName { + font-size: 15px; + line-height: normal; + display: inline-block; +} + +.ppof-metabox .navigation.top .themeVersion { + color: #a0a5aa; + font-style: italic; + margin: 0px 0; + font-size: 13px; + display: inline-block; +} + + +.ppof-metabox .navigation.top .nav-item.active:after{ + display: none; +} + + + +.ppof-metabox .navigation.right .nav-item{ + padding-left: 22px; +} + +.ppof-metabox .navigation.right .nav-item.active:after { + display: none; +} + +.ppof-metabox .form-wrapper.full-width-top{ + float: none; + margin-left: 0; + width: 100%; + margin-top: 30px; + clear: both; +} + +.ppof-metabox .form-wrapper.full-width{ + float: none; + margin-left: 0; + width: 100%; + margin-top: 30px; + clear: both; +} + +.ppof-metabox .form-wrapper.full-width .tab-content{ + display: block; +} + + + + + + +@media screen and (max-width: 1100px) { + .ppof-metabox .navigation.right{ + float: none; + width: 100%; + position: relative; + } + + .ppof-metabox .form-wrapper.left{ + float: none; + margin-top: 30px; + width: 100%; + } + +} + +/*ppof-settings*/ + +.ppof-settings{ + margin-top: 20px; +} + + +.ppof-settings .pp-row{} + +.ppof-settings .pp-col{ + display: inline-block; + margin: 10px 0; +} + +.ppof-settings .pp-col-50{ + width: 49.50%; +} + + +.ppof-settings .error-mgs{ + color: #af1515; + background: #d671713b; + padding: 10px; + display: none; +} + +.ppof-button{ + color: #555; + border-color: #ccc; + background: #f7f7f7; + box-shadow: 0 1px 0 #ccc; + vertical-align: top; + display: inline-block; + text-decoration: none; + font-size: 13px; + line-height: 26px; + height: 28px; + margin: 0; + padding: 0 10px 1px; + cursor: pointer; + border-width: 1px; + border-style: solid; + -webkit-appearance: none; + border-radius: 3px; + white-space: nowrap; + box-sizing: border-box; +} + + + +.ppof-settings .text-align-right{ + text-align: right; +} + +.ppof-settings .tab-content{ + display: none; +} + +.ppof-settings .tab-content.active{ + display: block; +} + + +.ppof-settings .form-section{ + padding: 0 15px; +} + + +.ppof-settings .navigation { + width: 250px; + float: left; + position: sticky; + top: 30px; +} +.ppof-settings .navigation .nav-item-wrap { + padding: 0px; + margin: 0; + /* border: 1px solid #6ba8d8; */ + cursor: pointer; + font-size: 13px; + background: #1b6ba9; + display: block; + text-decoration: none; + position: relative; + color: #fff; +} + +.ppof-settings .navigation a{ + margin: 0; + display: block; + text-decoration: none; + color: #fff; + padding: 12px 10px; +} + + + +/*.ppof-settings .navigation .nav-item.active:after {*/ + /*right: 0%;*/ + /*top: 50%;*/ + /*border: solid transparent;*/ + /*content: " ";*/ + /*height: 0;*/ + /*width: 0;*/ + /*position: absolute;*/ + /*pointer-events: none;*/ + /*border-color: rgba(252, 252, 252, 0);*/ + /*border-right-color: #ffffff;*/ + /*border-width: 6px;*/ + /*margin-top: -6px;*/ +/*}*/ + + + +.ppof-settings .nav-header,.ppof-settings .nav-footer{ + background: #fff; + padding: 15px 10px; + +} +.ppof-settings .nav-header{ + border-bottom: 1px solid #165d94; + background: #165d94; + color: #fff; + padding-bottom: 35px; +} + + +.ppof-settings .nav-items { + margin: 0; +} + + +.ppof-settings .child-navs li { + padding-left: 15px; +} + + +.ppof-settings .child-navs{ + display: none; +} + +.ppof-settings .nav-items li { + margin: 0; +} + +.ppof-settings .nav-item-wrap.active .child-navs { + + display: block; +} +.ppof-settings .nav-items li.has-child { + +} + +.ppof-settings .nav-items .has-child.active .child-nav-icon { + transform: rotate(-90deg); + transition: all 0.4s; +} + + +.ppof-settings .nav-items .child-nav-icon { + float: right; + font-size: 17px; + color: #d4d4d4; + margin-right: 14px; +} + + + +.ppof-settings .nav-items .nav-item{ + outline: none; + box-shadow: none; +} +.ppof-settings .nav-items .nav-item.active{ + background: #197ecc; + outline: none; +} + +.ppof-settings .nav-footer{ + /*border-top: 1px solid #ddd;*/ +} + + + +.ppof-settings .form-header{ + padding: 20px; + background: #165d94; + border-bottom: 1px solid #165d94; + margin-bottom: 20px; + color: #fff; +} + +.ppof-settings .form-header .submit{ + +} + +.ppof-settings .form-header .search-options{ + width: 200px; + border-radius: 3px; +} + + +.ppof-settings .form-footer{ + padding: 20px; + background: #165d94; + color: #fff; + margin-bottom: 20px; + margin-top: 30px; + border-top: 1px solid #ddd; +} +.pp-col .button-primary, .pp-col .button-primary:hover { + background: #ffba00; + border-color: #ffba00; + box-shadow: none; + color: #000; + text-decoration: none; + text-shadow: none; + font-size: 18px; + padding: 10px 25px; + height: auto; +} +.ppof-settings .pagename { + display: none; +} +.ppof-settings .form-footer .submit{ + +} + + + +.ppof-settings .submit{ + margin: 0; + padding: 0; +} + +.ppof-settings .themeName{ + font-size: 18px; + line-height: normal; +} +.ppof-settings .pagename{ + +} +.ppof-settings .themeVersion{ + color: #a0a5aa; + font-style: italic; + margin: 8px 0; + font-size: 13px; +} + +.ppof-settings .form-wrapper { + margin-left: 250px; + background: #fff; +} + +.ppof-settings .form-table { + clear: none; +} + + + + +.ppof-settings input[type="text"],.ppof-settings input[type="email"], .ppof-settings input[type="url"],.ppof-settings input[type="time"],.ppof-settings input[type="tel"],.ppof-settings input[type="date"],.ppof-settings input[type="search"], .ppof-settings input[type="month"], .ppof-settings input[type="color"], .ppof-settings textarea, .ppof-settings select, .ppof-settings input[type="range"], .ppof-settings input[type="number"],.ppof-settings .select2 { + width: 320px; +} + +.ppof-settings .repeatable{} +.ppof-settings .repeatable .field-list{ + margin-top: 18px; +} +.ppof-settings .repeatable .button{ + +} + + +.ppof-settings .repeatable .item-wrap{ + margin-bottom: 10px; + padding-bottom: 10px; + border-bottom: 1px solid #ddd; +} + + +/*addons-grid*/ +.field-grid-wrapper{} +.field-grid-wrapper .item{ + width: 300px; + display: inline-block; + vertical-align: top; + margin: 10px; + background: #eee; + overflow: hidden; +} +.field-grid-wrapper .name{ + +} + +.field-grid-wrapper .name a{ + margin: 10px; + text-decoration: none; + display: block; + font-weight: 600; +} + + +.field-grid-wrapper .thumb{ + overflow: hidden; +} +.field-grid-wrapper .thumb img{ + width: 100%; + height: auto; +} + +@media screen and (max-width: 768px) { + + .field-grid-wrapper .item{ + width: 100%; + + } + +} + + +/* Collapsible */ + +.ppof-settings .collapsible{ + margin-bottom: 2px; +} +.ppof-settings .collapsible .header{ + background: #eee; + padding: 8px 10px; +} + +.ppof-settings .collapsible .header span{ + display: inline-block; + vertical-align: middle; +} + +.ppof-settings .collapsible .content{ + display: none; + padding: 10px; + background: #f1f1f1; +} + + +.ppof-settings .collapsible.active .content{ + display: block; +} + + + +@media screen and (max-width: 768px) { + + .ppof-settings .pp-col-50{ + width: 100%; + } + + .ppof-settings .text-align-right{ + text-align: left; + } + + .ppof-settings .navigation { + width: 100%; + float: none; + position: relative; + } + + .ppof-settings .form-wrapper { + margin-left: 0; + margin-top: 20px; + } + + .ppof-settings .navigation .nav-items{ + display: none; + } + .ppof-settings .tab-content { + display: block; + } + +} + +/*ppof-settings*/ + +.ppof-settings{} + + + +.ppof-settings input[type="text"],.ppof-settings input[type="email"],.ppof-settings input[type="password"], .ppof-settings input[type="url"],.ppof-settings input[type="time"],.ppof-settings input[type="tel"],.ppof-settings input[type="date"],.ppof-settings input[type="search"], .ppof-settings input[type="month"], .ppof-settings input[type="color"], .ppof-settings textarea, .ppof-settings select, .ppof-settings input[type="range"], .ppof-settings input[type="number"],.ppof-settings .select2 { + width: 320px; +} + +/*.ppof-settings .button{*/ + /*border: 1px solid #ddd;*/ + /*display: inline-block;*/ + /*padding: 3px 15px;*/ + /*border-radius: 3px;*/ + /*background-color: #eee;*/ + /*cursor: pointer;*/ + /*transition: ease all 0.3s;*/ +/*}*/ + +/*.ppof-settings .button:hover{*/ + + /*background-color: #ddd;*/ + +/*}*/ + +.ppof-settings .remove { + transition: all 0.4s; +} + +.ppof-settings .remove:hover { + background-color: #e14d43 !important; + color: #fff; +} + + +.ppof-settings .sort { + /*background-color: #2196F3;*/ + /*color: #fff;*/ + /*padding: 2px 10px;*/ + cursor: move; +} + +.ppof-settings .ui-sortable-placeholder{ + background: antiquewhite; + visibility: visible !important; +} + +.ppof-settings .ui-sortable-helper{ + +} + +.ppof-settings .field-wrapper{ + /*margin: 20px 0;*/ +} + + + +/*dependency-field*/ + + +.ppof-settings .dependency-field{ + display: none; +} + +/*field-text-multi-wrapper*/ + +.field-text-multi-wrapper .field-list{ + margin-top: 10px; +} + +.field-text-multi-wrapper .field-list .item{ + margin: 5px 0; +} + +.field-text-multi-wrapper .field-list .item .clone{ + cursor: copy; +} +.field-text-multi-wrapper .field-list .item .sort{} +.field-text-multi-wrapper .field-list .item .remove { + +} + + +/*field-padding-wrapper*/ +.field-padding-wrapper{} + + +.field-padding-wrapper .item{ + margin-bottom: 5px; +} + +.field-padding-wrapper .field-title{ + min-width: 110px; + display: inline-block; +} +.field-padding-wrapper .input-wrapper{ + display: inline-block; +} +.field-padding-wrapper .input-wrapper input, .field-padding-wrapper select{ + width: 70px; +} + +/*field-margin-wrapper*/ +.field-margin-wrapper{} + + +.field-margin-wrapper .item{ + margin-bottom: 5px; +} + +.field-margin-wrapper .field-title{ + min-width: 110px; + display: inline-block; +} +.field-margin-wrapper .input-wrapper{ + display: inline-block; +} +.field-margin-wrapper .input-wrapper input, .field-margin-wrapper select{ + width: 70px; +} + +/*field-border-wrapper*/ +.field-border-wrapper{} + + +.field-border-wrapper .item{ + margin-bottom: 5px; +} + +.field-border-wrapper .field-title{ + min-width: 110px; + display: inline-block; +} +.field-border-wrapper .input-wrapper{ + display: inline-block; +} +.field-border-wrapper .input-wrapper input, .field-border-wrapper select{ + width: 70px; +} + + + +/*field-google-map-wrapper*/ +.field-google-map-wrapper{} + + +.field-google-map-wrapper .item{ + margin-bottom: 5px; +} + +.field-google-map-wrapper .field-title{ + min-width: 110px; + display: inline-block; +} +.field-google-map-wrapper .input-wrapper{ + display: inline-block; +} +.field-google-map-wrapper .input-wrapper input, .field-google-map-wrapper select{ + width: 120px; +} + +/*field-switcher-wrapper*/ + + +.field-switcher-wrapper .switcher{ + width: 60px; + display: block; + padding: 5px 15px; + border-radius: 3px; + color: #fff; + background-color: #eee; + overflow: hidden; + position: relative; + height: 20px; + cursor: pointer; + border: 1px solid #c5c5c5; +} +.field-switcher-wrapper .switcher.checked{ + border: 1px solid #2d632f; +} +.field-switcher-wrapper .switcher .layer { + content: ""; + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + z-index: 12; + opacity: 0; +} + +.field-switcher-wrapper .switcher .slider { + content: ""; + width: 50%; + height: 100%; + position: absolute; + top: 0; + left: 0; + z-index: 11; + /* opacity: 0; */ + background: #d6d6d6; + transition: .4s; +} + +.field-switcher-wrapper .switcher.checked .slider{ + transform: translateX(100%); + background: #29652c; +} + + + +.field-switcher-wrapper .switcher.checked{ + background-color: #4CAF50; +} +.field-switcher-wrapper .switcher input{ + display: none; +} + +.field-switcher-wrapper .switcher-text{ + position: absolute; + top: 50%; + transform: translateY(-50%); + z-index: 10; +} +.field-switcher-wrapper .switcher-text.on{ + + left: 15px; +} +.field-switcher-wrapper .switcher-text.off{ + + right: 15px; + color: #484444; +} + + + +/*.field-switcher-wrapper .switch {*/ + /*position: relative;*/ + /*display: inline-block;*/ + /*width: 100%;*/ +/*}*/ + +/*.field-switcher-wrapper .switcher-text.on{*/ + /*color: #fff;*/ + /*z-index: 99;*/ + /*position: absolute;*/ + /*left: 10px;*/ +/*}*/ +/*.field-switcher-wrapper .switcher-text.off{*/ + /*color: #fff;*/ + /*z-index: 99;*/ + /*position: absolute;*/ + /*right: 10px;*/ +/*}*/ + +/*.field-switcher-wrapper input:checked + .switcher-text.off {*/ + /*color: #ddd;*/ +/*}*/ + + +/*.field-switcher-wrapper .switch input {*/ + /*opacity: 0;*/ + /*width: 0;*/ + /*height: 0;*/ +/*}*/ + +/*.field-switcher-wrapper .slider {*/ + /*position: absolute;*/ + /*cursor: pointer;*/ + /*top: 0;*/ + /*left: 0;*/ + /*right: 0;*/ + /*bottom: 0;*/ + /*background-color: #eee;*/ + /*-webkit-transition: .4s;*/ + /*transition: .4s;*/ + + /*border-radius: 3px;*/ +/*}*/ + +/*.field-switcher-wrapper .slider:before {*/ + /*position: absolute;*/ + /*content: "";*/ + /*height: 26px;*/ + /*width: 26px;*/ + /*left: 4px;*/ + /*bottom: 4px;*/ + /*background-color: white;*/ + /*-webkit-transition: .4s;*/ + /*transition: .4s;*/ + /*border-radius: 3px;*/ + /*display: none;*/ +/*}*/ + +/*.field-switcher-wrapper input:checked + .slider {*/ + /*background-color: #2196F3;*/ +/*}*/ + +/*.field-switcher-wrapper input:focus + .slider {*/ + /*box-shadow: 0 0 1px #2196F3;*/ +/*}*/ + +/*.field-switcher-wrapper input:checked + .slider:before {*/ + /*-webkit-transform: translateX(35px);*/ + /*-ms-transform: translateX(35px);*/ + /*transform: translateX(35px);*/ +/*}*/ + + + +/*field-code-wrapper*/ + +.field-code-wrapper{} +.field-code-wrapper pre{ + padding: 0 5px; + margin: 0; + font-size: 12px; + border: none; + border-bottom: 1px solid #eee; +} +/*field-password-wrapper*/ + +.field-password-wrapper{} + +.field-password-wrapper .scorePassword{ + background: #eee; + height: 10px; + margin-top: 10px; + width: 200px; + border-radius: 3px; + overflow: hidden; +} +.field-password-wrapper .scorePassword span{ + height: 15px; + display: block; + background: #ddd; + font-size: 12px; + line-height: normal; + color: #fff; +} + +/*field-img-select-wrapper*/ + +.field-img-select-wrapper{ + margin-bottom: 15px; +} +.field-img-select-wrapper .img-list{ + margin-bottom: 10px; +} +.field-img-select-wrapper input[type='radio']{ + display: none; +} + +.field-img-select-wrapper .sw-button{ + background: #eee; + padding: 5px; + border: 1px solid #ddd; + margin: 0; + border-right: none; + display: block; +} + +.field-img-select-wrapper label{ + width: 100px; + display: inline-block; + overflow: hidden; + vertical-align: top; +} +.field-img-select-wrapper label img { + width: 100%; +} +.field-img-select-wrapper label.checked .sw-button { + background: #ddd; +} + +.field-img-select-wrapper label:last-child .sw-button{ + border-right: 1px solid #ddd; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +.field-img-select-wrapper label:first-child .sw-button{ + + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} + + +/*field-switch-wrapper*/ + +.field-switch-wrapper{ + margin-bottom: 15px; + display: inline-block; + border-radius: 3px; + overflow: hidden; +} + +.field-switch-wrapper input[type='radio']{ + display: none; +} + +.field-switch-wrapper .sw-button{ + background: #eee; + padding: 5px 15px; + border: 1px solid #ddd; + margin: 0; + display: block; +} + +.field-switch-wrapper label{ + display: inline-block; +} +.field-switch-wrapper label.checked .sw-button { + background: #ddd; +} + +.field-switch-wrapper label:last-child .sw-button{ + border-right: 1px solid #ddd; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +.field-switch-wrapper label:first-child .sw-button{ + + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} + +/*field-range-input-wrapper*/ + +.field-range-input-wrapper{} +.field-range-input-wrapper input[type="number"]{ + max-width: 60px; + display: inline-block; +} + +.field-range-input-wrapper input[type="range"]{ + max-width: 253px; + display: inline-block; + vertical-align: middle; +} + +/*field-select2-wrapper*/ + +.field-select2-wrapper{} +.field-select2-wrapper ul{} +.field-select2-wrapper li{ + margin: 0; + padding: 0; +} + + + +/*addons-grid*/ + +.field-grid-wrapper{} +.field-grid-wrapper .item{ + width: 300px; + display: inline-block; + vertical-align: top; + margin: 10px; + background: #eee; + overflow: hidden; +} + + + +.field-grid-wrapper .name{ + +} + +.field-grid-wrapper .name a{ + margin: 10px; + text-decoration: none; + display: block; + font-weight: 600; +} + + +.field-grid-wrapper .thumb{ + overflow: hidden; +} +.field-grid-wrapper .thumb img{ + width: 100%; + height: auto; +} + + +/*field-color-sets-wrapper*/ + +.field-color-sets-wrapper{ + margin-bottom: 15px; +} + +.field-color-sets-wrapper input[type='radio']{ + display: none; +} + +.field-color-sets-wrapper .sw-button{ + background: #eee; + margin: 0; + border: 1px solid rgba(0,0,0,0); + display: inline-block; + height: 30px; + width: 30px; + +} + +.field-color-sets-wrapper .color-srick{ + width: 25px; + display: inline-block; + margin: 0; + padding: 0; + float: left; + height: 60px; +} + +.field-color-sets-wrapper label{ + margin: 8px 8px; + display: inline-block; + border: 2px dashed rgba(0,0,0,0); + position: relative; +} +.field-color-sets-wrapper label.checked{ + border: 2px dashed #b7b7b7; +} +.field-color-sets-wrapper label.checked .sw-button { + background: #ddd; + border: 1px dashed #DDE; +} + +.field-color-sets-wrapper .checked-icon{ + position: absolute; + top: 50%; + left: 50%; + color: #fff; + transform: translate(-50%,-50%); + background: #dddddd94; + /* padding: 5px; */ + border-radius: 21px; + width: 20px; + height: 20px; + text-align: center; + opacity: 0; + transition: all 0.6s; +} +.field-color-sets-wrapper label.checked .checked-icon{opacity: 0.7;} + + + + +.field-color-sets-wrapper label:hover .sw-button { + transform: scale(1.4); +} + + + + +/*field-color-palette-wrapper*/ + +.field-color-palette-wrapper{ + margin-bottom: 15px; +} + +.field-color-palette-wrapper input[type='radio']{ + display: none; +} + +.field-color-palette-wrapper .sw-button{ + background: #eee; + margin: 0; + border: 1px solid rgba(0,0,0,0); + display: inline-block; + height: 40px; + width: 40px; + +} + +.field-color-palette-wrapper label{ + position: relative; + display: inline-block; +} + +.field-color-palette-wrapper label.checked{ + +} + +.field-color-palette-wrapper .checked-icon{ + position: absolute; + top: 50%; + left: 50%; + color: #fff; + transform: translate(-50%,-50%); + background: #dddddd94; + /* padding: 5px; */ + border-radius: 21px; + width: 20px; + height: 20px; + text-align: center; + opacity: 0; + transition: all 0.6s; +} +.field-color-palette-wrapper label.checked .checked-icon{opacity: 0.7;} + + +.field-color-palette-wrapper label.checked .sw-button { + background: #ddd; + border: 1px dashed #DDE; +} + +.field-color-palette-wrapper label:hover .sw-button { + transform: scale(1.4); +} + + + + + +/*field-image-link-wrapper*/ + +.field-image-link-wrapper{ + margin-bottom: 15px; +} + +.field-image-link-wrapper input[type='radio']{ + display: none; +} + +.field-image-link-wrapper .sw-button{ + background: #eee; + margin: 0; + border: 1px solid rgba(0,0,0,0); + display: inline-block; + height: 40px; + width: 40px; + +} + +.field-image-link-wrapper label{ + position: relative; + display: inline-block; + margin: 5px; +} + +.field-image-link-wrapper label.checked{ + +} + +.field-image-link-wrapper .checked-icon{ + position: absolute; + top: 50%; + left: 50%; + color: #fff; + transform: translate(-50%,-50%); + background: #484848e3; + /* padding: 5px; */ + border-radius: 21px; + width: 20px; + height: 20px; + text-align: center; + opacity: 0; + transition: all 0.6s; +} +.field-image-link-wrapper label.checked .checked-icon{opacity: 0.7;} + + +.field-image-link-wrapper label.checked .sw-button { + background: #ddd; + border: 1px dashed #DDE; +} + +.field-image-link-wrapper label:hover .sw-button { + transform: scale(1.4); +} + + + + + + + + + + + + + + +/*field-color-palette-multi-wrapper*/ + +.field-color-palette-multi-wrapper{ + margin-bottom: 15px; +} + +.field-color-palette-multi-wrapper input[type='checkbox']{ + display: none; +} + +.field-color-palette-multi-wrapper .sw-button{ + background: #eee; + margin: 0; + border: 1px solid rgba(0,0,0,0); + display: inline-block; + height: 50px; + width: 50px; + +} + +.field-color-palette-multi-wrapper label.checked{ + +} + +.field-color-palette-multi-wrapper label{ + position: relative; + display: inline-block; +} + +.field-color-palette-multi-wrapper label.checked .sw-button { + background: #ddd; + border: 1px dashed #DDE; +} + +.field-color-palette-multi-wrapper label:hover .sw-button { + transform: scale(1.4); +} + + +.field-color-palette-multi-wrapper .checked-icon{ + position: absolute; + top: 50%; + left: 50%; + color: #fff; + transform: translate(-50%,-50%); + background: #dddddd94; + /* padding: 5px; */ + border-radius: 21px; + width: 20px; + height: 20px; + text-align: center; + opacity: 0; + transition: all 0.6s; +} +.field-color-palette-multi-wrapper label.checked .checked-icon{opacity: 0.7;} + +/*field-switch-img-wrapper*/ + +.field-switch-img-wrapper{ + display: inline-block; + border-radius: 3px; + overflow: hidden; +} + +.field-switch-img-wrapper input[type='radio']{ + display: none; +} + +.field-switch-img-wrapper .sw-button{ + background: #eee; + padding: 5px 15px; + border: 1px solid #ddd; + margin: 0; + + display: block; +} + +.field-switch-img-wrapper label{ + width: 100px; + display: inline-block; + overflow: hidden; + vertical-align: top; +} +.field-switch-img-wrapper label img { + width: 100%; +} +.field-switch-img-wrapper label.checked .sw-button { + background: #ddd; +} + +.field-switch-img-wrapper label:last-child .sw-button{ + border-right: 1px solid #ddd; + +} + +.field-switch-img-wrapper label:first-child .sw-button{ + +} + + + +/*field-date-format-wrapper*/ + +.field-time-format-wrapper{} + + +.field-time-format-wrapper .format-list{} +.field-time-format-wrapper .format{ + margin: 5px 0; +} +.field-time-format-wrapper .format-list label{ + min-width: 200px; + display: inline-block; +} + + + +/*field-date-format-wrapper*/ + +.field-date-format-wrapper{} + + +.field-date-format-wrapper .format-list{} +.field-date-format-wrapper .format{ + margin: 5px 0; +} +.field-date-format-wrapper .format-list label{ + min-width: 200px; + display: inline-block; +} + + +/*field-switch-multi-wrapper*/ + +.field-switch-multi-wrapper{ + display: inline-block; + border-radius: 3px; + overflow: hidden; +} + +.field-switch-multi-wrapper input[type='checkbox']{ + display: none; +} + +.field-switch-multi-wrapper .sw-button{ + background: #eee; + padding: 5px 15px; + border: 1px solid #ddd; + margin: 0; + + display: block; +} +.field-switch-multi-wrapper label{ + display: inline-block; +} + +.field-switch-multi-wrapper label.checked .sw-button { + background: #ddd; +} + +.field-switch-multi-wrapper label:last-child .sw-button{ + border-right: 1px solid #ddd; + +} + +.field-switch-multi-wrapper label:first-child .sw-button{ + + +} + + + +/*field-icon-wrapper*/ + +.field-icon-wrapper{} + +.field-icon-wrapper .icon-wrapper{} +.field-icon-wrapper .icon-wrapper span{ + font-size: 18px; + background-color: #eee; + padding: 5px 10px; + border: 1px solid #ddd; + cursor: pointer; + border-radius: 3px; +} + +.field-icon-wrapper .select-icon{} + +.field-icon-wrapper .search-icon{ + display: none; +} + + +.field-icon-wrapper .icon-list.active .search-icon{ + display: inline-block; +} +.field-icon-wrapper .icon-list{ + margin-top: 15px; +} + +.field-icon-wrapper .icon-list ul{ + display: none; + height: 200px; + overflow: scroll; + background: #eee; + padding: 10px; + margin: 5px; +} + +.field-icon-wrapper .icon-list.active ul{ + display: block; +} + +.field-icon-wrapper .icon-list li{ + display: inline-block; + border: 1px solid #ddd; + padding: 0; + margin: 2px 0; + cursor: pointer; + width: 30px; + height: 30px; + font-size: 19px; + text-align: center; +} + +.field-icon-wrapper .icon-list li{} + + + +.field-icon-wrapper .icon-list{} + + +/*field-icon-multi-wrapper*/ + + +.field-icon-multi-wrapper{} + +.field-icon-multi-wrapper .icons-wrapper{} +.field-icon-multi-wrapper .icons-wrapper .item{ + font-size: 18px; + background-color: #eee; + padding: 5px 10px; + border: 1px solid #ddd; + cursor: pointer; + display: inline-block; + margin: 2px; + border-radius: 3px; +} + +.field-icon-multi-wrapper .icons-wrapper .item:hover { + background-color: #e83939; + color: #fff; +} + + + +.field-icon-multi-wrapper .select-icon{} + +.field-icon-multi-wrapper .search-icon{ + display: none; +} + + +.field-icon-multi-wrapper .icon-list.active .search-icon{ + display: inline-block; +} +.field-icon-multi-wrapper .icon-list{ + margin-top: 15px; +} + +.field-icon-multi-wrapper .icon-list ul{ + display: none; + height: 200px; + overflow: scroll; + background: #eee; + padding: 10px; + margin: 5px; +} + +.field-icon-multi-wrapper .icon-list.active ul{ + display: block; +} + +.field-icon-multi-wrapper .icon-list li{ + display: inline-block; + border: 1px solid #ddd; + padding: 0; + margin: 2px 0; + cursor: pointer; + width: 30px; + height: 30px; + font-size: 19px; + text-align: center; +} + + +/*field-user-multi-wrapper*/ + + +.field-user-multi-wrapper{} + +.field-user-multi-wrapper .users-wrapper{} +.field-user-multi-wrapper .users-wrapper .item{ + font-size: 18px; + background-color: #eee; + padding: 5px; + border: 1px solid #ddd; + cursor: pointer; + display: inline-block; + margin: 2px; +} + +.field-user-multi-wrapper .users-wrapper .item:hover { + background-color: #e83939; + color: #fff; +} + + + +.field-user-multi-wrapper .select-user{} + +.field-user-multi-wrapper .search-user{ + display: none; +} + + +.field-user-multi-wrapper .user-list.active .search-user{ + display: inline-block; +} +.field-user-multi-wrapper .user-list{ + margin-top: 15px; +} + +.field-user-multi-wrapper .user-list ul{ + display: none; + height: 200px; + overflow: scroll; + background: #eee; + padding: 10px; + margin: 5px; +} + +.field-user-multi-wrapper .user-list.active ul{ + display: block; +} + +.field-user-multi-wrapper .user-list li{ + display: inline-block; + border: 1px solid #ddd; + padding: 0; + margin: 2px 0; + cursor: pointer; + width: 30px; + height: 30px; + font-size: 19px; + text-align: center; + overflow: hidden; +} +.field-user-multi-wrapper .user-list li img{ + width: 100%; +} + +/* field-dimensions */ + + + +.field-dimensions-wrapper{} + + +.field-dimensions-wrapper .item{ + margin-bottom: 5px; +} + +.field-dimensions-wrapper .field-title{ + min-width: 110px; + display: inline-block; +} +.field-dimensions-wrapper .input-wrapper{ + display: inline-block; +} +.field-dimensions-wrapper .input-wrapper input{ + width: 70px; +} + + + +/* field-faq-wrapper */ + +.field-faq-wrapper .faq-list{} +.field-faq-wrapper .faq-list .faq-item{ + margin: 5px 0; +} + +.field-faq-wrapper .faq-list .faq-item.active .faq-content{ + display: block; +} +.field-faq-wrapper .faq-list .faq-item.active .faq-header{ + background: #ddddddbf; +} + +.field-faq-wrapper .faq-list .faq-header{ + padding: 10px; + background: #eee; + cursor: pointer; +} +.field-faq-wrapper .faq-list .faq-content{ + padding: 10px; + background: #e5e5e55e; + display: none; +} + + + +/* option-group-tabs */ + +.field-option-group-tabs-wrapper .faq-list{} +.field-option-group-tabs-wrapper .tab-navs{} +.field-option-group-tabs-wrapper .tab-navs li{ + padding: 10px 15px; + background: #ddd; + cursor: pointer; + display: inline-block; + margin: 0; + float: left; + +} +.field-option-group-tabs-wrapper .tab-navs li.active{ + background: #eee; +} + + +.field-option-group-tabs-wrapper .tab-content{ + padding: 10px 20px; + background: #eee; + cursor: pointer; + display: block; + margin: 0; + clear: both; + float: none; +} + +.field-option-group-tabs-wrapper .tab-content.active{ + display: none; + +} + + +.field-option-group-tabs-wrapper .faq-list .faq-item{ + margin: 5px 0; +} + +.field-option-group-tabs-wrapper .faq-list .faq-item.active .faq-content{ + display: block; +} +.field-option-group-tabs-wrapper .faq-list .faq-item.active .faq-header{ + background: #ddddddbf; +} + + + + +/*field-media-wrapper*/ +.field-media-wrapper .media-list{ + margin-top: 10px; +} +.field-media-wrapper .media-list .item{ + width: 150px; + display: inline-block; + margin: 5px; + background: #eee; + padding: 5px; + position: relative; + vertical-align: top; + min-height: 80px; + overflow: hidden; +} + +.field-media-wrapper .media-list .item.empty .item-title{ + vertical-align: middle; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-37%,-50%); + width: 100%; +} + + +.field-media-wrapper .media-list .item .remove{ + position: absolute; + top: 0; + right: 0; + padding: 3px 10px; + cursor: pointer; +} +.field-media-wrapper .upload{ + +} + +.field-media-wrapper .clear{ + margin: 0 10px; +} + + +/*field-post-objects-wrapper*/ +.field-post-objects-wrapper{} +.field-post-objects-wrapper .field-list{} +.field-post-objects-wrapper .field-list .item{ + margin: 5px 0; +} +.field-post-objects-wrapper .field-list .sort {} + + + +/*field-media-multi-wrapper*/ +.field-media-multi-wrapper .media-list{ + margin-top: 10px; +} +.field-media-multi-wrapper .media-list .item{ + width: 150px; + display: inline-block; + margin: 5px; + background: #eee; + padding: 5px; + position: relative; + vertical-align: top; + min-height: 80px; + overflow: hidden; +} + +.field-media-multi-wrapper .media-list .item.empty .item-title{ + vertical-align: middle; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-37%,-50%); + width: 100%; +} + + +.field-media-multi-wrapper .media-list .item .remove{ + position: absolute; + top: 0; + right: 0; + padding: 3px 10px; + cursor: pointer; +} + + +.field-media-multi-wrapper .upload{ + +} + +.field-media-multi-wrapper .clear{ + margin: 0 10px; +} + + + + + + + +/*field-colorpicker-multi-wrapper*/ + +.field-colorpicker-multi-wrapper{} + +.field-colorpicker-multi-wrapper .add{ + margin-bottom: 10px; +} +.field-colorpicker-multi-wrapper input[type="text"]{ + width: 113px; +} + +.field-colorpicker-multi-wrapper .item-list{} + +.field-colorpicker-multi-wrapper .item-list .item{ + margin-bottom: 5px; +} +.field-colorpicker-multi-wrapper .item-list .item .remove{ + display: inline-block; +} + +.field-colorpicker-multi-wrapper .item-list .item .wp-picker-container{ + display: inline-block; +} + + +/*field-colorpicker-wrapper*/ + +.field-colorpicker-wrapper{} + +.field-colorpicker-wrapper input[type="text"]{ + width: 113px; +} + + +/*field-repeatable-wrapper*/ +.field-repeatable-wrapper{} +.field-repeatable-wrapper .field-list{ + margin-top: 18px; +} +.field-repeatable-wrapper .button{ + +} + + +.field-repeatable-wrapper .item-wrap{ + margin-bottom: 10px; + padding-bottom: 10px; + border-bottom: 1px solid #ddd; +} + +/*field-link-color-wrapper*/ + +.field-link-color-wrapper{} + +.field-link-color-wrapper input[type="text"]{ + width: 113px; +} + + +@media screen and (max-width: 768px) { + + .ppof-settings .pp-col-50{ + width: 100%; + } + + .ppof-settings .text-align-right{ + text-align: left; + } + + .ppof-settings .navigation { + width: 100%; + float: none; + position: relative; + } + + .ppof-settings .form-wrapper { + margin-left: 0; + margin-top: 20px; + } + +} +/*********Added By Sumon******************/ +.wrap.ppof-settings.ppof-metabox, +.ppof-metabox .form-wrapper.full-width, +.form-table, +.field-repeatable-wrapper .field-list{margin: 0;} +.form-table th, +.form-table td, +#postbox-container-2 p.description{padding: 5px;line-height: 1;} +.form-table pre{display: none;} +.ppof-button, +#create_seat_plan, +#create_seat_plan_dd, +#add-seat-row-dd, +#add-seat-row{background-color: #0071a1;color:#fff;} diff --git a/css/mage-options-framework.min.css b/css/mage-options-framework.min.css new file mode 100755 index 0000000..89231de --- /dev/null +++ b/css/mage-options-framework.min.css @@ -0,0 +1 @@ +@charset "utf-8";div>.ppof-metabox{background:#eee}.ppof-metabox{margin-top:0}.ppof-metabox .navigation.right{float:right;width:25%}.ppof-metabox .form-wrapper.left{float:left;margin-left:0;width:75%}.ppof-metabox .navigation.none{display:none}.ppof-metabox .navigation.top{position:relative;width:100%;float:none;clear:both;top:0}.ppof-metabox .navigation.top .nav-header{width:250px;float:left}.ppof-metabox .navigation.top .nav-item{display:inline-block;margin:0;padding:16px 25px;float:left}.ppof-metabox .navigation.top .themeName{font-size:15px;line-height:normal;display:inline-block}.ppof-metabox .navigation.top .themeVersion{color:#a0a5aa;font-style:italic;margin:0;font-size:13px;display:inline-block}.ppof-metabox .navigation.top .nav-item.active:after{display:none}.ppof-metabox .navigation.right .nav-item{padding-left:22px}.ppof-metabox .navigation.right .nav-item.active:after{display:none}.ppof-metabox .form-wrapper.full-width-top{float:none;margin-left:0;width:100%;margin-top:30px;clear:both}.ppof-metabox .form-wrapper.full-width{float:none;margin-left:0;width:100%;margin-top:30px;clear:both}.ppof-metabox .form-wrapper.full-width .tab-content{display:block}@media screen and (max-width:1100px){.ppof-metabox .navigation.right{float:none;width:100%;position:relative}.ppof-metabox .form-wrapper.left{float:none;margin-top:30px;width:100%}}.ppof-settings{margin-top:20px}.ppof-settings .pp-col{display:inline-block;margin:10px 0}.ppof-settings .pp-col-50{width:49.50%}.ppof-settings .text-align-right{text-align:right}.ppof-settings .tab-content{display:none}.ppof-settings .tab-content.active{display:block}.ppof-settings .form-section{padding:0 15px}.ppof-settings .nav-header,.ppof-settings .nav-footer{background:#fff;padding:15px 10px}.ppof-settings .nav-header{border-bottom:1px solid #2b2828f0;background:#3a3939f0;color:#fff}.ppof-settings .nav-items .nav-item{outline:0;box-shadow:none}.ppof-settings .nav-items .nav-item.active{background:#3a3939f0;outline:0}.ppof-settings .form-header{padding:20px;background:#3a3939f0;border-bottom:1px solid #2b2828f0;margin-bottom:20px;color:#fff}.ppof-settings .form-header .search-options{width:200px;border-radius:3px}.ppof-settings .form-footer{padding:20px;background:#3a3939f0;color:#fff;margin-bottom:20px;margin-top:30px;border-top:1px solid #ddd}.ppof-settings .submit{margin:0;padding:0}.ppof-settings .themeName{font-size:18px;line-height:normal}.ppof-settings .themeVersion{color:#a0a5aa;font-style:italic;margin:8px 0;font-size:13px}.ppof-settings .navigation{width:250px;float:left;position:sticky;top:30px}.ppof-settings .navigation .nav-item{padding:12px 10px;margin:0;border-bottom:1px solid #312f2ff0;cursor:pointer;font-size:13px;background:#2b2828f0;display:block;text-decoration:none;position:relative;color:#fff}.ppof-settings .navigation .nav-item.active:after{right:0;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(252,252,252,0);border-right-color:#fff;border-width:6px;margin-top:-6px}.ppof-settings .form-wrapper{margin-left:250px;background:#fff}.ppof-settings .form-table{clear:none}.ppof-settings input[type="text"],.ppof-settings input[type="email"],.ppof-settings input[type="url"],.ppof-settings input[type="time"],.ppof-settings input[type="tel"],.ppof-settings input[type="date"],.ppof-settings input[type="search"],.ppof-settings input[type="month"],.ppof-settings input[type="color"],.ppof-settings textarea,.ppof-settings select,.ppof-settings input[type="range"],.ppof-settings input[type="number"],.ppof-settings .select2{width:320px}.ppof-settings .repeatable .field-list{margin-top:18px}.ppof-settings .repeatable .item-wrap{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #ddd}.field-grid-wrapper .item{width:300px;display:inline-block;vertical-align:top;margin:10px;background:#eee;overflow:hidden}.field-grid-wrapper .name a{margin:10px;text-decoration:none;display:block;font-weight:600}.field-grid-wrapper .thumb{overflow:hidden}.field-grid-wrapper .thumb img{width:100%;height:auto}@media screen and (max-width:768px){.field-grid-wrapper .item{width:100%}}.ppof-settings .collapsible{margin-bottom:2px}.ppof-settings .collapsible .header{background:#eee;padding:8px 10px}.ppof-settings .collapsible .header span{display:inline-block;vertical-align:middle;margin-right:2px}.ppof-settings .collapsible .content{display:none;padding:10px;background:#f1f1f1}.ppof-settings .collapsible.active .content{display:block}@media screen and (max-width:768px){.ppof-settings .pp-col-50{width:100%}.ppof-settings .text-align-right{text-align:left}.ppof-settings .navigation{width:100%;float:none;position:relative}.ppof-settings .form-wrapper{margin-left:0;margin-top:20px}.ppof-settings .navigation .nav-items{display:none}.ppof-settings .tab-content{display:block}}.ppof-settings input[type="text"],.ppof-settings input[type="email"],.ppof-settings input[type="password"],.ppof-settings input[type="url"],.ppof-settings input[type="time"],.ppof-settings input[type="tel"],.ppof-settings input[type="date"],.ppof-settings input[type="search"],.ppof-settings input[type="month"],.ppof-settings input[type="color"],.ppof-settings textarea,.ppof-settings select,.ppof-settings input[type="range"],.ppof-settings input[type="number"],.ppof-settings .select2{width:320px}.ppof-settings .remove{background-color:#ff584c;color:#fff}.ppof-settings .sort{background-color:#2196f3;color:#fff;padding:2px 10px;cursor:move}.ppof-settings .remove:hover{background-color:#dc291d}.ppof-settings .field-wrapper{margin:20px 0}.ppof-settings .collapsible{margin-bottom:2px}.ppof-settings .collapsible .header{background:#eee;padding:8px 10px}.ppof-settings .collapsible .header span{display:inline-block;vertical-align:middle;margin-right:2px}.ppof-settings .collapsible .content{display:none;padding:10px;background:#f1f1f1}.ppof-settings .collapsible.active .content{display:block}.ppof-settings .dependency-field{display:none}.field-text-multi-wrapper .field-list{margin-top:10px}.field-text-multi-wrapper .field-list .item{margin:5px 0}.field-text-multi-wrapper .field-list .item .remove{margin-left:9px;padding:2px 10px}.field-padding-wrapper .item{margin-bottom:5px}.field-padding-wrapper .field-title{min-width:110px;display:inline-block}.field-padding-wrapper .input-wrapper{display:inline-block}.field-padding-wrapper .input-wrapper input,.field-padding-wrapper select{width:70px}.field-margin-wrapper .item{margin-bottom:5px}.field-margin-wrapper .field-title{min-width:110px;display:inline-block}.field-margin-wrapper .input-wrapper{display:inline-block}.field-margin-wrapper .input-wrapper input,.field-margin-wrapper select{width:70px}.field-border-wrapper .item{margin-bottom:5px}.field-border-wrapper .field-title{min-width:110px;display:inline-block}.field-border-wrapper .input-wrapper{display:inline-block}.field-border-wrapper .input-wrapper input,.field-border-wrapper select{width:70px}.field-google-map-wrapper .item{margin-bottom:5px}.field-google-map-wrapper .field-title{min-width:110px;display:inline-block}.field-google-map-wrapper .input-wrapper{display:inline-block}.field-google-map-wrapper .input-wrapper input,.field-google-map-wrapper select{width:120px}.field-switcher-wrapper .switcher{width:80px;display:block;padding:5px 15px;border-radius:3px;color:#fff;background-color:#eee;overflow:hidden;position:relative;height:24px;cursor:pointer}.field-switcher-wrapper .switcher .layer{content:"";width:100%;height:100%;position:absolute;top:0;left:0;z-index:12;opacity:0}.field-switcher-wrapper .switcher .slider{content:"";width:50%;height:100%;position:absolute;top:0;left:0;z-index:11;background:#d6d6d6;transition:.4s}.field-switcher-wrapper .switcher.checked .slider{transform:translateX(100%);background:#29652c}.field-switcher-wrapper .switcher.checked{background-color:#4caf50}.field-switcher-wrapper .switcher input{display:none}.field-switcher-wrapper .switcher-text{position:absolute;top:50%;transform:translateY(-50%);z-index:10}.field-switcher-wrapper .switcher-text.on{left:15px}.field-switcher-wrapper .switcher-text.off{right:15px;color:#484444}.field-code-wrapper pre{padding:0 5px;margin:0;font-size:12px;border:0;border-bottom:1px solid #eee}.field-password-wrapper .scorePassword{background:#eee;height:10px;margin-top:10px;width:200px;border-radius:3px;overflow:hidden}.field-password-wrapper .scorePassword span{height:15px;display:block;background:#ddd;font-size:12px;line-height:normal;color:#fff}.field-img-select-wrapper{margin-bottom:15px}.field-img-select-wrapper .img-list{margin-bottom:10px}.field-img-select-wrapper input[type='radio']{display:none}.field-img-select-wrapper .sw-button{background:#eee;padding:5px;border:1px solid #ddd;margin:0;border-right:0;display:block}.field-img-select-wrapper label{width:100px;display:inline-block;overflow:hidden;vertical-align:top}.field-img-select-wrapper label img{width:100%}.field-img-select-wrapper label.checked .sw-button{background:#ddd}.field-img-select-wrapper label:last-child .sw-button{border-right:1px solid #ddd;border-top-right-radius:3px;border-bottom-right-radius:3px}.field-img-select-wrapper label:first-child .sw-button{border-top-left-radius:3px;border-bottom-left-radius:3px}.field-switch-wrapper{margin-bottom:15px}.field-switch-wrapper input[type='radio']{display:none}.field-switch-wrapper .sw-button{background:#eee;padding:5px 15px;border:1px solid #ddd;margin:0;border-right:0;display:block}.field-switch-wrapper label{display:inline-block;margin:2px 0}.field-switch-wrapper label.checked .sw-button{background:#ddd}.field-switch-wrapper label:last-child .sw-button{border-right:1px solid #ddd;border-top-right-radius:3px;border-bottom-right-radius:3px}.field-switch-wrapper label:first-child .sw-button{border-top-left-radius:3px;border-bottom-left-radius:3px}.field-range-input-wrapper input[type="number"]{max-width:60px;display:inline-block}.field-range-input-wrapper input[type="range"]{max-width:253px;display:inline-block;vertical-align:middle}.field-select2-wrapper li{margin:0;padding:0}.field-grid-wrapper .item{width:300px;display:inline-block;vertical-align:top;margin:10px;background:#eee;overflow:hidden}.field-grid-wrapper .name a{margin:10px;text-decoration:none;display:block;font-weight:600}.field-grid-wrapper .thumb{overflow:hidden}.field-grid-wrapper .thumb img{width:100%;height:auto}.field-color-palette-wrapper{margin-bottom:15px}.field-color-palette-wrapper input[type='radio']{display:none}.field-color-palette-wrapper .sw-button{background:#eee;margin:0;border:1px solid rgba(0,0,0,0);display:inline-block;height:30px;width:30px}.field-color-palette-wrapper label.checked .sw-button{background:#ddd;border:1px dashed #DDE}.field-color-palette-wrapper label:hover .sw-button{transform:scale(1.4)}.field-color-palette-multi-wrapper{margin-bottom:15px}.field-color-palette-multi-wrapper input[type='checkbox']{display:none}.field-color-palette-multi-wrapper .sw-button{background:#eee;margin:0;border:1px solid rgba(0,0,0,0);display:inline-block;height:30px;width:30px}.field-color-palette-multi-wrapper label.checked .sw-button{background:#ddd;border:1px dashed #DDE}.field-color-palette-multi-wrapper label:hover .sw-button{transform:scale(1.4)}.field-switch-img-wrapper{margin-bottom:15px}.field-switch-img-wrapper input[type='radio']{display:none}.field-switch-img-wrapper .sw-button{background:#eee;padding:5px 15px;border:1px solid #ddd;margin:0;border-right:0;display:block}.field-switch-img-wrapper label{width:100px;display:inline-block;overflow:hidden;vertical-align:top}.field-switch-img-wrapper label img{width:100%}.field-switch-img-wrapper label.checked .sw-button{background:#ddd}.field-switch-img-wrapper label:last-child .sw-button{border-right:1px solid #ddd;border-top-right-radius:3px;border-bottom-right-radius:3px}.field-switch-img-wrapper label:first-child .sw-button{border-top-left-radius:3px;border-bottom-left-radius:3px}.field-time-format-wrapper .format-list label{min-width:200px;display:inline-block}.field-date-format-wrapper .format-list label{min-width:200px;display:inline-block}.field-switch-multi-wrapper{margin-bottom:15px}.field-switch-multi-wrapper input[type='checkbox']{display:none}.field-switch-multi-wrapper .sw-button{background:#eee;padding:5px 15px;border:1px solid #ddd;margin:0;border-right:0;display:block}.field-switch-multi-wrapper label{display:inline-block;margin:3px 0}.field-switch-multi-wrapper label.checked .sw-button{background:#ddd}.field-switch-multi-wrapper label:last-child .sw-button{border-right:1px solid #ddd;border-top-right-radius:3px;border-bottom-right-radius:3px}.field-switch-multi-wrapper label:first-child .sw-button{border-top-left-radius:3px;border-bottom-left-radius:3px}.field-icon-wrapper .icon-wrapper span{font-size:18px;background-color:#eee;padding:5px 10px;border:1px solid #ddd;cursor:pointer}.field-icon-wrapper .search-icon{display:none}.field-icon-wrapper .icon-list.active .search-icon{display:inline-block}.field-icon-wrapper .icon-list{margin-top:15px}.field-icon-wrapper .icon-list ul{display:none;height:200px;overflow:scroll;background:#eee;padding:10px;margin:5px}.field-icon-wrapper .icon-list.active ul{display:block}.field-icon-wrapper .icon-list li{display:inline-block;border:1px solid #ddd;padding:0;margin:2px 0;cursor:pointer;width:30px;height:30px;font-size:19px;text-align:center}.field-icon-multi-wrapper .icons-wrapper .item{font-size:18px;background-color:#eee;padding:5px 10px;border:1px solid #ddd;cursor:pointer;display:inline-block;margin:2px}.field-icon-multi-wrapper .icons-wrapper .item:hover{background-color:#e83939;color:#fff}.field-icon-multi-wrapper .search-icon{display:none}.field-icon-multi-wrapper .icon-list.active .search-icon{display:inline-block}.field-icon-multi-wrapper .icon-list{margin-top:15px}.field-icon-multi-wrapper .icon-list ul{display:none;height:200px;overflow:scroll;background:#eee;padding:10px;margin:5px}.field-icon-multi-wrapper .icon-list.active ul{display:block}.field-icon-multi-wrapper .icon-list li{display:inline-block;border:1px solid #ddd;padding:0;margin:2px 0;cursor:pointer;width:30px;height:30px;font-size:19px;text-align:center}.field-user-multi-wrapper .users-wrapper .item{font-size:18px;background-color:#eee;padding:5px;border:1px solid #ddd;cursor:pointer;display:inline-block;margin:2px}.field-user-multi-wrapper .users-wrapper .item:hover{background-color:#e83939;color:#fff}.field-user-multi-wrapper .search-user{display:none}.field-user-multi-wrapper .user-list.active .search-user{display:inline-block}.field-user-multi-wrapper .user-list{margin-top:15px}.field-user-multi-wrapper .user-list ul{display:none;height:200px;overflow:scroll;background:#eee;padding:10px;margin:5px}.field-user-multi-wrapper .user-list.active ul{display:block}.field-user-multi-wrapper .user-list li{display:inline-block;border:1px solid #ddd;padding:0;margin:2px 0;cursor:pointer;width:30px;height:30px;font-size:19px;text-align:center;overflow:hidden}.field-user-multi-wrapper .user-list li img{width:100%}.field-dimensions-wrapper .item{margin-bottom:5px}.field-dimensions-wrapper .field-title{min-width:110px;display:inline-block}.field-dimensions-wrapper .input-wrapper{display:inline-block}.field-dimensions-wrapper .input-wrapper input{width:70px}.field-faq-wrapper .faq-list .faq-item{margin:5px 0}.field-faq-wrapper .faq-list .faq-item.active .faq-content{display:block}.field-faq-wrapper .faq-list .faq-item.active .faq-header{background:#ddddddbf}.field-faq-wrapper .faq-list .faq-header{padding:10px;background:#eee;cursor:pointer}.field-faq-wrapper .faq-list .faq-content{padding:10px;background:#e5e5e55e;display:none}.field-media-wrapper .media-list{margin-top:10px}.field-media-wrapper .media-list .item{width:150px;display:inline-block;margin:5px;background:#eee;padding:5px;position:relative;vertical-align:top;min-height:80px;overflow:hidden}.field-media-wrapper .media-list .item.empty .item-title{vertical-align:middle;position:absolute;top:50%;left:50%;transform:translate(-37%,-50%);width:100%}.field-media-wrapper .media-list .item .remove{position:absolute;top:0;right:0;padding:3px 10px;cursor:pointer}.field-media-multi-wrapper .media-list{margin-top:10px}.field-media-multi-wrapper .media-list .item{width:150px;display:inline-block;margin:5px;background:#eee;padding:5px;position:relative;vertical-align:top;min-height:80px;overflow:hidden}.field-media-multi-wrapper .media-list .item.empty .item-title{vertical-align:middle;position:absolute;top:50%;left:50%;transform:translate(-37%,-50%);width:100%}.field-media-multi-wrapper .media-list .item .remove{position:absolute;top:0;right:0;padding:3px 10px;cursor:pointer}.field-colorpicker-multi-wrapper .add{margin-bottom:10px}.field-colorpicker-multi-wrapper input[type="text"]{width:113px}.field-colorpicker-multi-wrapper .item-list .item{margin-bottom:5px}.field-colorpicker-multi-wrapper .item-list .item .remove{display:inline-block}.field-colorpicker-multi-wrapper .item-list .item .wp-picker-container{display:inline-block}.field-colorpicker-wrapper input[type="text"]{width:113px}.field-repeatable-wrapper .field-list{margin-top:18px}.field-repeatable-wrapper .item-wrap{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #ddd}.field-link-color-wrapper input[type="text"]{width:113px}@media screen and (max-width:768px){.ppof-settings .pp-col-50{width:100%}.ppof-settings .text-align-right{text-align:left}.ppof-settings .navigation{width:100%;float:none;position:relative}.ppof-settings .form-wrapper{margin-left:0;margin-top:20px}} \ No newline at end of file diff --git a/css/select2.min.css b/css/select2.min.css new file mode 100755 index 0000000..76de04d --- /dev/null +++ b/css/select2.min.css @@ -0,0 +1 @@ +.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} diff --git a/css/style.css b/css/style.css index 7feafae..5057f9a 100644 --- a/css/style.css +++ b/css/style.css @@ -573,12 +573,13 @@ ul.event-custom-price li ul { padding: 10px 5px; text-align: left; } -div.mep-default-feature-content p { +div.mep-default-feature-content p, div.mep-default-feature-content ul, div.mep-default-feature-content ul li { color: #3a3a3a; font-size: 16px; padding: inherit; margin: 15px 0; - line-height: 20px; + line-height: 22px; + list-style: inherit; } .mep-events-wrapper p:not(.mep-events-wrapper .mep-default-feature-content p){ line-height: 1.2; @@ -656,6 +657,123 @@ button.mep-cat-control.mixitup-control-active { background: #ddd; color: #000; } + +/* Speaker Lists */ +.mep-default-sidebar-speaker-list { + display: block; + overflow: hidden; + padding: 10px; + margin-top: 20px; + margin-bottom: 5px; +} + +.mep-default-sidebar-speaker-list h3 { + display: block; + font-weight: bold; + font-size: 18px; + border-bottom: 1px solid #ddd; + margin-bottom: 10px; + padding-bottom: 5px; + border-top: 1px solid #ddd; + padding-top: 5px; +} + +.mep-default-sidebar-speaker-list h3 i { + display: inline-block; +} + +.mep-default-sidebar-speaker-list ul { + padding: 0; + margin: 0; + list-style: none; +} + +.mep-default-sidebar-speaker-list ul li { + display: inline-block; + width: 120px; + text-align: center; + font-size: 23px; + font-weight: bold; + padding: 0 5px; + vertical-align: top; +} + +.mep-default-sidebar-speaker-list ul li a { + display: block; +} + +.mep-default-sidebar-speaker-list ul li img { + height: 100px; + width: 100px; + border-radius: 100%; + margin: 0 auto!important; +} + +.mep-default-sidebar-speaker-list ul li h6 { + font-size: 14px; + font-weight: 500; + margin: 5px 0; +} + +.mep_speaker_thumbnail { + display: block; + text-align: center; +} + +.mep-eventtype-ribbon{ + position: absolute; + bottom: 0; + padding: 2px 21px; + color: #fff; + left: auto; + right: 0; + width: 100%; + text-align: center; + } + + + +.mep_speaker_thumbnail img { + display: inline-block; + border-radius: 100%; + height: 280px; + border: 5px solid #ddd; + padding: 3px; + width: 280px; +} + +.mep_speaker_name { + text-align: center; +} +.mep-events-shortcode-cart-section .mep-events-wrapper { + margin: 0 auto; + padding: 0; +} + +#mep_single_hide_all_date{ + display: none; +} + +#mep_event_date_sch { + height: 270px; + overflow: hidden; +} +.mep_view_all_date{ + height: auto!important; +} + +span.mep_single_date_btn { + display: block; + text-align: center; + cursor: pointer; +} +.mep-tem3-title-sec.mep_single_date_btn { + text-align: center; + color: #fff; + padding: 5px; + cursor: pointer; +} + /******Responsive*******/ @media only screen and (max-width: 1199px) { /********Default Theme***********/ diff --git a/images/no-photo.jpg b/images/no-photo.jpg new file mode 100644 index 0000000..617518e Binary files /dev/null and b/images/no-photo.jpg differ diff --git a/inc/admin_setting_panel.php b/inc/admin_setting_panel.php index 43c949c..0460423 100644 --- a/inc/admin_setting_panel.php +++ b/inc/admin_setting_panel.php @@ -1,699 +1,687 @@ settings_api = new MAGE_Setting_API; + function __construct() + { + $this->settings_api = new MAGE_Setting_API; - add_action( 'admin_init', array($this, 'admin_init') ); - add_action( 'admin_menu', array($this, 'admin_menu') ); - } + add_action('admin_init', array($this, 'admin_init')); + add_action('admin_menu', array($this, 'admin_menu')); + } - function admin_init() { + function admin_init() + { - //set the settings - $this->settings_api->set_sections( $this->get_settings_sections() ); - $this->settings_api->set_fields( $this->get_settings_fields() ); + //set the settings + $this->settings_api->set_sections($this->get_settings_sections()); + $this->settings_api->set_fields($this->get_settings_fields()); - //initialize settings - $this->settings_api->admin_init(); - } - - function admin_menu() { - //add_options_page( 'Event Settings', 'Event Settings', 'delete_posts', 'mep_event_settings_page', array($this, 'plugin_page') ); + //initialize settings + $this->settings_api->admin_init(); + } - add_submenu_page('edit.php?post_type=mep_events', __('Event Settings','mage-eventpress'), __('Event Settings','mage-eventpress'), 'manage_options', 'mep_event_settings_page', array($this, 'plugin_page')); - } + function admin_menu() + { + //add_options_page( 'Event Settings', 'Event Settings', 'delete_posts', 'mep_event_settings_page', array($this, 'plugin_page') ); - function get_settings_sections() { + add_submenu_page('edit.php?post_type=mep_events', __('Event Settings', 'mage-eventpress'), __('Event Settings', 'mage-eventpress'), 'manage_options', 'mep_event_settings_page', array($this, 'plugin_page')); + } - $sections = array( - array( - 'id' => 'general_setting_sec', - 'title' => __( 'General Settings', 'mage-eventpress' ) - ), - array( - 'id' => 'email_setting_sec', - 'title' => __( 'Email Settings', 'mage-eventpress' ) - ), - array( - 'id' => 'style_setting_sec', - 'title' => __( 'Style Settings', 'mage-eventpress' ) - ), - array( - 'id' => 'label_setting_sec', - 'title' => __( 'Translation Settings', 'mage-eventpress' ) - ) - ); - - - - return $sections; - } - - /** - * Returns all the settings fields - * - * @return array settings fields - */ - function get_settings_fields() { - $settings_fields = array( - 'general_setting_sec' => array( + function get_settings_sections() + { + $sections = array( array( - 'name' => 'mep_google_map_type', - 'label' => __( 'Google Map Type?', 'mage-eventpress' ), - 'desc' => __( 'Please select the map type you want to show in fronntend, Note it: Iframe Not always show the accurate location where API enable map has drag & drop feature so you can drag the point to accurate location.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'yes', - 'options' => array( - '' => 'Please Select a Map Type', - 'api' => 'API', - 'iframe' => 'Iframe' - ) + 'id' => 'general_setting_sec', + 'title' => __('General Settings', 'mage-eventpress') ), array( - 'name' => 'google-map-api', - 'label' => __( 'Google Map API Key', 'mage-eventpress' ), - 'desc' => __( 'Enter Your Google Map API key. Get KEY. Note: You must enter billing address and information into google map api account to work perfectly the google map in website.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_global_single_template', - 'label' => __( 'Event Details Template', 'mage-eventpress' ), - 'desc' => __( 'Event Details Template', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => mep_event_template_name() - ), - - array( - 'name' => 'mep_event_price_show', - 'label' => __( 'Show Event Price in List?', 'mage-eventpress' ), - 'desc' => __( 'Please select if you want to show event price in the list Yes/No', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'yes', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - - array( - 'name' => 'mep_date_list_in_event_listing', - 'label' => __( 'Show Multi Date List in Event listing Page?', 'mage-eventpress' ), - 'desc' => __( 'Please select if you want to show the full date list for multi date event in the event listing page', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'yes', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - - array( - 'name' => 'mep_event_product_type', - 'label' => __( 'Enable Shipping Method on event?', 'mage-eventpress' ), - 'desc' => __( 'Please Select The event product type which is using in WooCommerce, By default its virtual. If you change this type you need to re-save all the event again.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'yes', - 'options' => array( - 'yes' => 'No', - 'no' => 'Yes' - ) - ), - - - // array( - // 'name' => 'mep_event_slug', - // 'label' => __( 'Event Slug', 'mage-eventpress' ), - // 'desc' => __( 'Please enter your own slug, If you want to change event from the URL. By default slug is: events. Please remember after change this slug you need to re save your permalink settings or you will get 404 not found page in the event details page.', 'mage-eventpress' ), - // 'type' => 'text', - // 'default' => 'events' - // ), - - array( - 'name' => 'event-price-label', - 'label' => __( 'Event Price Label', 'mage-eventpress' ), - 'desc' => __( 'Enter The text which you want to show as price label, Its only displayed if Show Event price value is YES above. ', 'mage-eventpress' ), - 'type' => 'text', - 'default' => 'Price Starts from:' - ), - array( - 'name' => 'mep_event_time_format', - 'label' => __( 'Event Time Format', 'mage-eventpress' ), - 'desc' => __( 'Please select what format time you want to display in event fronntend.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'wtss', - 'options' => array( - 'wtss' => 'WordPress TimeStamp Settings' - ) + 'id' => 'email_setting_sec', + 'title' => __('Email Settings', 'mage-eventpress') ), array( - 'name' => 'mep_event_direct_checkout', - 'label' => __( 'Redirect Checkout after Booking?', 'mage-eventpress' ), - 'desc' => __( 'If you want to go direct checkout page after booking an event please enable/disable this.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'yes', - 'options' => array( - 'yes' => 'Enable', - 'no' => 'Disable' - ) - ), - array( - 'name' => 'mep_event_expire_on_datetimes', - 'label' => __( 'When will event expire', 'mage-eventpress' ), - 'desc' => __( 'Please select when event will expire, On event start time or event endtime', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'mep_event_start_date', - 'options' => array( - 'event_start_datetime' => 'Event Start Time', - 'event_expire_datetime' => 'Event End Time' - ) - ), - - - array( - 'name' => 'mep_event_hide_organizer_list', - 'label' => __( 'Hide Organizer Section from list ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to hide organizer section from list.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - array( - 'name' => 'mep_event_hide_location_list', - 'label' => __( 'Hide Location Section from list ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to hide location section from list.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) + 'id' => 'style_setting_sec', + 'title' => __('Style Settings', 'mage-eventpress') ), - array( - 'name' => 'mep_event_hide_time_list', - 'label' => __( 'Hide Full Time Section from list ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to hide time section from list.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - - array( - 'name' => 'mep_event_hide_end_time_list', - 'label' => __( 'Hide Only End Time Section from list ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to hide Only End Time section from list.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - - - array( - 'name' => 'mep_event_hide_date_from_details', - 'label' => __( 'Hide Event Date Section from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to hide time section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - - - array( - 'name' => 'mep_event_hide_time_from_details', - 'label' => __( 'Hide Event Time Section from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to hide time section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - - array( - 'name' => 'mep_event_hide_location_from_details', - 'label' => __( 'Hide Event Location Section from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to hide location section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), + array( + 'id' => 'label_setting_sec', + 'title' => __('Translation Settings', 'mage-eventpress') + ) + ); - array( - 'name' => 'mep_event_hide_total_seat_from_details', - 'label' => __( 'Hide Event Total Seat Section from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to hide Total Seat Section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - array( - 'name' => 'mep_event_hide_org_from_details', - 'label' => __( 'Hide "Org By" Section from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to Event by Section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' + return apply_filters('mep_settings_sec_reg', $sections); + } + + /** + * Returns all the settings fields + * + * @return array settings fields + */ + function get_settings_fields() + { + $settings_fields = array( + 'general_setting_sec' => array( + array( + 'name' => 'mep_google_map_type', + 'label' => __('Google Map Type?', 'mage-eventpress'), + 'desc' => __('Please select the map type you want to show in fronntend, Note it: Iframe Not always show the accurate location where API enable map has drag & drop feature so you can drag the point to accurate location.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'yes', + 'options' => array( + '' => 'Please Select a Map Type', + 'api' => 'API', + 'iframe' => 'Iframe' + ) + ), + array( + 'name' => 'google-map-api', + 'label' => __('Google Map API Key', 'mage-eventpress'), + 'desc' => __('Enter Your Google Map API key. Get KEY. Note: You must enter billing address and information into google map api account to work perfectly the google map in website.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_enable_speaker_list', + 'label' => __('Enable Speaker List?', 'mage-eventpress'), + 'desc' => __('If you want to enable speaker list, Please select Yes by default its disable', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_global_single_template', + 'label' => __('Event Details Template', 'mage-eventpress'), + 'desc' => __('Event Details Template', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => mep_event_template_name() + ), + array( + 'name' => 'mep_event_price_show', + 'label' => __('Show Event Price in List?', 'mage-eventpress'), + 'desc' => __('Please select if you want to show event price in the list Yes/No', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'yes', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_date_list_in_event_listing', + 'label' => __('Show Multi Date List in Event listing Page?', 'mage-eventpress'), + 'desc' => __('Please select if you want to show the full date list for multi date event in the event listing page', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'yes', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_product_type', + 'label' => __('Enable Shipping Method on event?', 'mage-eventpress'), + 'desc' => __('Please Select The event product type which is using in WooCommerce, By default its virtual. If you change this type you need to re-save all the event again.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'yes', + 'options' => array( + 'yes' => 'No', + 'no' => 'Yes' + ) + ), + array( + 'name' => 'event-price-label', + 'label' => __('Event Price Label', 'mage-eventpress'), + 'desc' => __('Enter The text which you want to show as price label, Its only displayed if Show Event price value is YES above. ', 'mage-eventpress'), + 'type' => 'text', + 'default' => 'Price Starts from:' + ), + array( + 'name' => 'mep_event_time_format', + 'label' => __('Event Time Format', 'mage-eventpress'), + 'desc' => __('Please select what format time you want to display in event fronntend.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'wtss', + 'options' => array( + 'wtss' => 'WordPress TimeStamp Settings' + ) + ), + array( + 'name' => 'mep_event_direct_checkout', + 'label' => __('Redirect Checkout after Booking?', 'mage-eventpress'), + 'desc' => __('If you want to go direct checkout page after booking an event please enable/disable this.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'yes', + 'options' => array( + 'yes' => 'Enable', + 'no' => 'Disable' + ) + ), + array( + 'name' => 'mep_event_expire_on_datetimes', + 'label' => __('When will event expire', 'mage-eventpress'), + 'desc' => __('Please select when event will expire, On event start time or event endtime', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'mep_event_start_date', + 'options' => array( + 'event_start_datetime' => 'Event Start Time', + 'event_expire_datetime' => 'Event End Time' + ) + ), + array( + 'name' => 'mep_event_hide_organizer_list', + 'label' => __('Hide Organizer Section from list ?', 'mage-eventpress'), + 'desc' => __('Select yes to hide organizer section from list.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_location_list', + 'label' => __('Hide Location Section from list ?', 'mage-eventpress'), + 'desc' => __('Select yes to hide location section from list.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_time_list', + 'label' => __('Hide Full Time Section from list ?', 'mage-eventpress'), + 'desc' => __('Select yes to hide time section from list.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_end_time_list', + 'label' => __('Hide Only End Time Section from list ?', 'mage-eventpress'), + 'desc' => __('Select yes to hide Only End Time section from list.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_date_from_details', + 'label' => __('Hide Event Date Section from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to hide time section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_time_from_details', + 'label' => __('Hide Event Time Section from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to hide time section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_location_from_details', + 'label' => __('Hide Event Location Section from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to hide location section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_total_seat_from_details', + 'label' => __('Hide Event Total Seat Section from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to hide Total Seat Section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_org_from_details', + 'label' => __('Hide "Org By" Section from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to Event by Section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_address_from_details', + 'label' => __('Hide Event Address Section from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to Event Address Section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_event_schedule_details', + 'label' => __('Hide Event Schedule Section from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to Event Schedule Section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_share_this_details', + 'label' => __('Hide Event Share this Section from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to Event Share this Section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_event_hide_calendar_details', + 'label' => __('Hide Add Calendar Button from Details page ?', 'mage-eventpress'), + 'desc' => __('Select yes to Event google map Section from details.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_hide_location_from_order_page', + 'label' => __('Hide Location From Order Details & Email Section?', 'mage-eventpress'), + 'desc' => __('If you want to hide Location from order details section in the tankyou page & from the confirmation email body, Please select Yes. By default is: No.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'mep_hide_date_from_order_page', + 'label' => __('Hide Date From Order Details & Email Section?', 'mage-eventpress'), + 'desc' => __('If you want to hide Date from order details section in the tankyou page & from the confirmation email body, Please select Yes. By default is: No.', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) ) ), - array( - 'name' => 'mep_event_hide_address_from_details', - 'label' => __( 'Hide Event Address Section from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to Event Address Section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) - ), - - array( - 'name' => 'mep_event_hide_event_schedule_details', - 'label' => __( 'Hide Event Schedule Section from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to Event Schedule Section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) + 'email_setting_sec' => array( + array( + 'name' => 'mep_email_form_name', + 'label' => __('Email Form Name', 'mage-eventpress'), + 'desc' => __('Email Form Name', 'mage-eventpress'), + 'type' => 'text' + ), + array( + 'name' => 'mep_email_form_email', + 'label' => __('Form Email', 'mage-eventpress'), + 'desc' => __('Form Email', 'mage-eventpress'), + 'type' => 'text' + ), + array( + 'name' => 'mep_email_subject', + 'label' => __('Email Subject', 'mage-eventpress'), + 'desc' => __('Email Subject', 'mage-eventpress'), + 'type' => 'text' + ), + array( + 'name' => 'mep_confirmation_email_text', + 'label' => __('Confirmation Email Text', 'mage-eventpress'), + 'desc' => __('Confirmation Email Text', 'mage-eventpress'), + 'type' => 'wysiwyg', + 'default' => '', + ), ), - array( - 'name' => 'mep_event_hide_share_this_details', - 'label' => __( 'Hide Event Share this Section from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to Event Share this Section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) + 'label_setting_sec' => array( + array( + 'name' => 'mep_event_ticket_type_text', + 'label' => __('Ticket Type Table Label', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as ticket type table in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => 'Ticket Type:' + ), + array( + 'name' => 'mep_event_extra_service_text', + 'label' => __('Extra Service Table Label', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as extra service table in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => 'Extra Service:' + ), + array( + 'name' => 'mep_cart_btn_text', + 'label' => __('Cart Button Label', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display in Cart button in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => 'Register This Event' + ), + array( + 'name' => 'mep_calender_btn_text', + 'label' => __('Add Calendar Button Label', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display in Add you calender in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => 'ADD TO YOUR CALENDAR' + ), + array( + 'name' => 'mep_share_text', + 'label' => __('Social Share Label', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as share button title in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => 'Share This Event' + ), + array( + 'name' => 'mep_organized_by_text', + 'label' => __('Organized By:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Organized By in event list page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_location_text', + 'label' => __('Location:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Location in event list page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_time_text', + 'label' => __('Time:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Time in event list page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_event_location_text', + 'label' => __('Event Location:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Event Location in event list page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_event_date_text', + 'label' => __('Event Date:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Event Date in event list page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_event_time_text', + 'label' => __('Event Time:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Event Time in event list page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + + array( + 'name' => 'mep_by_text', + 'label' => __('By:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as By in event list page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_total_seat_text', + 'label' => __('Total Seat:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Total Seat in event list page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_register_now_text', + 'label' => __('Register Now:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Register Now in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_quantity_text', + 'label' => __('Quantity:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Quantity in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_total_text', + 'label' => __('Total:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Total in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_ticket_qty_text', + 'label' => __('Ticket Qty', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Ticket Qty in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_per_ticket_price_text', + 'label' => __('Per Ticket Price:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as per Ticket price in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + + array( + 'name' => 'mep_no_ticket_selected_text', + 'label' => __('No Ticket Selected!', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as No Ticket Selected in event details page.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + + array( + 'name' => 'mep_no_seat_available_text', + 'label' => __('No Seat Available', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as No Seat Available.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + + array( + 'name' => 'mep_not_available_text', + 'label' => __('Not Available', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Not Available.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + + array( + 'name' => 'mep_event_expired_text', + 'label' => __('Event Expired', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Event Expired.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + + array( + 'name' => 'mep_ticket_text', + 'label' => __('Ticket', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Ticket.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_left_text', + 'label' => __('Left', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Left.', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_attendee_info_text', + 'label' => __('Attendee info:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display as Attendee info:', 'mage-eventpress'), + 'type' => 'text', + 'default' => '' + ), + array( + 'name' => 'mep_select_ticket_error_message', + 'label' => __('Select Ticket Error Message:', 'mage-eventpress'), + 'desc' => __('Enter the text which you want to display when no ticket selected popup display:', 'mage-eventpress'), + 'type' => 'text', + 'default' => 'Please select atleast one(1) ticket Quantity !' + ), + array( + 'name' => 'mep_event_virtual_label', + 'label' => __('Virtual Event Rebon', 'mage-eventpress'), + 'desc' => __('Enter Text For Virtual Event Rebon', 'mage-eventpress'), + 'type' => 'text', + 'default' => 'Virtual Event' + ), ), - array( - 'name' => 'mep_event_hide_calendar_details', - 'label' => __( 'Hide Add Calendar Button from Details page ?', 'mage-eventpress' ), - 'desc' => __( 'Select yes to Event google map Section from details.', 'mage-eventpress' ), - 'type' => 'select', - 'default' => 'no', - 'options' => array( - 'yes' => 'Yes', - 'no' => 'No' - ) + 'style_setting_sec' => array( + array( + 'name' => 'mep_base_color', + 'label' => __('Base Color', 'mage-eventpress'), + 'desc' => __('Select a Basic Color, It will chanage the icon background color, border color', 'mage-eventpress'), + 'type' => 'color', + ), + array( + 'name' => 'mep_title_bg_color', + 'label' => __('Label Background Color', 'mage-eventpress'), + 'desc' => __('Select a Color Label Background', 'mage-eventpress'), + 'type' => 'color', + ), + array( + 'name' => 'mep_title_text_color', + 'label' => __('Label Text Color', 'mage-eventpress'), + 'desc' => __('Select a Color Label Text', 'mage-eventpress'), + 'type' => 'color', + ), + array( + 'name' => 'mep_cart_btn_bg_color', + 'label' => __('Cart Button Background Color', 'mage-eventpress'), + 'desc' => __('Select a color for Cart Button Background', 'mage-eventpress'), + 'type' => 'color', + ), + array( + 'name' => 'mep_cart_btn_text_color', + 'label' => __('Cart Button Text Color', 'mage-eventpress'), + 'desc' => __('Select a color for Cart Button Text', 'mage-eventpress'), + 'type' => 'color', + ), + array( + 'name' => 'mep_calender_btn_bg_color', + 'label' => __('Calender Button Background Color', 'mage-eventpress'), + 'desc' => __('Select a color for Calender Button Background', 'mage-eventpress'), + 'type' => 'color', + ), + array( + 'name' => 'mep_calender_btn_text_color', + 'label' => __('Calender Button Text Color', 'mage-eventpress'), + 'desc' => __('Select a color for Calender Button Text', 'mage-eventpress'), + 'type' => 'color', + ), + array( + 'name' => 'mep_faq_title_bg_color', + 'label' => __('FAQ Title Background Color', 'mage-eventpress'), + 'desc' => __('Select a color for FAQ title Background', 'mage-eventpress'), + 'type' => 'color', + ), + array( + 'name' => 'mep_faq_title_text_color', + 'label' => __('FAQ Title Text Color', 'mage-eventpress'), + 'desc' => __('Select a color for FAQ Title Text', 'mage-eventpress'), + 'type' => 'color', + ), ) + ); - - - ), - - 'email_setting_sec' => array( - - - array( - 'name' => 'mep_email_form_name', - 'label' => __( 'Email Form Name', 'mage-eventpress' ), - 'desc' => __( 'Email Form Name', 'mage-eventpress' ), - 'type' => 'text' - ), - - array( - 'name' => 'mep_email_form_email', - 'label' => __( 'Form Email', 'mage-eventpress' ), - 'desc' => __( 'Form Email', 'mage-eventpress' ), - 'type' => 'text' - ), - - array( - 'name' => 'mep_email_subject', - 'label' => __( 'Email Subject', 'mage-eventpress' ), - 'desc' => __( 'Email Subject', 'mage-eventpress' ), - 'type' => 'text' - ), - - - - - array( - 'name' => 'mep_confirmation_email_text', - 'label' => __( 'Confirmation Email Text', 'mage-eventpress' ), - 'desc' => __( 'Confirmation Email Text', 'mage-eventpress' ), - 'type' => 'textarea', - 'default' => '', - ), - ), - - 'label_setting_sec' => array( - - - array( - 'name' => 'mep_event_ticket_type_text', - 'label' => __( 'Ticket Type Table Label', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as ticket type table in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => 'Ticket Type:' - ), - array( - 'name' => 'mep_event_extra_service_text', - 'label' => __( 'Extra Service Table Label', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as extra service table in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => 'Extra Service:' - ), - array( - 'name' => 'mep_cart_btn_text', - 'label' => __( 'Cart Button Label', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display in Cart button in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => 'Register This Event' - - ), - - array( - 'name' => 'mep_calender_btn_text', - 'label' => __( 'Add Calendar Button Label', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display in Add you calender in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => 'ADD TO YOUR CALENDAR' - ), - - array( - 'name' => 'mep_share_text', - 'label' => __( 'Social Share Label', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as share button title in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => 'Share This Event' - ), - - array( - 'name' => 'mep_organized_by_text', - 'label' => __( 'Organized By:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Organized By in event list page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_location_text', - 'label' => __( 'Location:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Location in event list page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_time_text', - 'label' => __( 'Time:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Time in event list page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_event_location_text', - 'label' => __( 'Event Location:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Event Location in event list page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_event_date_text', - 'label' => __( 'Event Date:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Event Date in event list page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_event_time_text', - 'label' => __( 'Event Time:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Event Time in event list page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_by_text', - 'label' => __( 'By:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as By in event list page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_total_seat_text', - 'label' => __( 'Total Seat:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Total Seat in event list page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_register_now_text', - 'label' => __( 'Register Now:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Register Now in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_quantity_text', - 'label' => __( 'Quantity:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Quantity in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_total_text', - 'label' => __( 'Total:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Total in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_ticket_qty_text', - 'label' => __('Ticket Qty', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Ticket Qty in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_per_ticket_price_text', - 'label' => __('Per Ticket Price:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as per Ticket price in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_no_ticket_selected_text', - 'label' => __('No Ticket Selected!', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as No Ticket Selected in event details page.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_no_seat_available_text', - 'label' => __('No Seat Available', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as No Seat Available.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_not_available_text', - 'label' => __('Not Available', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Not Available.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_event_expired_text', - 'label' => __('Event Expired', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Event Expired.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - array( - 'name' => 'mep_ticket_text', - 'label' => __('Ticket', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Ticket.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - - - array( - 'name' => 'mep_left_text', - 'label' => __('Left', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Left.', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_attendee_info_text', - 'label' => __('Attendee info:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display as Attendee info:', 'mage-eventpress' ), - 'type' => 'text', - 'default' => '' - ), - array( - 'name' => 'mep_select_ticket_error_message', - 'label' => __('Select Ticket Error Message:', 'mage-eventpress' ), - 'desc' => __( 'Enter the text which you want to display when no ticket selected popup display:', 'mage-eventpress' ), - 'type' => 'text', - 'default' => 'Please select atleast one(1) ticket Quantity !' - ), - - - ), -'style_setting_sec' => array( - array( - 'name' => 'mep_base_color', - 'label' => __( 'Base Color', 'mage-eventpress' ), - 'desc' => __( 'Select a Basic Color, It will chanage the icon background color, border color', 'mage-eventpress' ), - 'type' => 'color', - - ), - array( - 'name' => 'mep_title_bg_color', - 'label' => __( 'Label Background Color', 'mage-eventpress' ), - 'desc' => __( 'Select a Color Label Background', 'mage-eventpress' ), - 'type' => 'color', - - ), - array( - 'name' => 'mep_title_text_color', - 'label' => __( 'Label Text Color', 'mage-eventpress' ), - 'desc' => __( 'Select a Color Label Text', 'mage-eventpress' ), - 'type' => 'color', - - ), - array( - 'name' => 'mep_cart_btn_bg_color', - 'label' => __( 'Cart Button Background Color', 'mage-eventpress' ), - 'desc' => __( 'Select a color for Cart Button Background', 'mage-eventpress' ), - 'type' => 'color', - - ), - array( - 'name' => 'mep_cart_btn_text_color', - 'label' => __( 'Cart Button Text Color', 'mage-eventpress' ), - 'desc' => __( 'Select a color for Cart Button Text', 'mage-eventpress' ), - 'type' => 'color', - - ), - array( - 'name' => 'mep_calender_btn_bg_color', - 'label' => __( 'Calender Button Background Color', 'mage-eventpress' ), - 'desc' => __( 'Select a color for Calender Button Background', 'mage-eventpress' ), - 'type' => 'color', - - ), - array( - 'name' => 'mep_calender_btn_text_color', - 'label' => __( 'Calender Button Text Color', 'mage-eventpress' ), - 'desc' => __( 'Select a color for Calender Button Text', 'mage-eventpress' ), - 'type' => 'color', - - ), - array( - 'name' => 'mep_faq_title_bg_color', - 'label' => __( 'FAQ Title Background Color', 'mage-eventpress' ), - 'desc' => __( 'Select a color for FAQ title Background', 'mage-eventpress' ), - 'type' => 'color', - - ), - array( - 'name' => 'mep_faq_title_text_color', - 'label' => __( 'FAQ Title Text Color', 'mage-eventpress' ), - 'desc' => __( 'Select a color for FAQ Title Text', 'mage-eventpress' ), - 'type' => 'color', - - ), - ) - - - ); - - return $settings_fields; - } - - function plugin_page() { - echo '
'; - - $this->settings_api->show_navigation(); - $this->settings_api->show_forms(); - - echo '
'; - } - - /** - * Get all the pages - * - * @return array page names with key value pairs - */ - function get_pages() { - $pages = get_pages(); - $pages_options = array(); - if ( $pages ) { - foreach ($pages as $page) { - $pages_options[$page->ID] = $page->post_title; - } + return apply_filters('mep_settings_sec_fields', $settings_fields); } - return $pages_options; - } + function plugin_page() + { + echo '
'; -} + $this->settings_api->show_navigation(); + $this->settings_api->show_forms(); + + echo '
'; + } + + /** + * Get all the pages + * + * @return array page names with key value pairs + */ + function get_pages() + { + $pages = get_pages(); + $pages_options = array(); + if ($pages) { + foreach ($pages as $page) { + $pages_options[$page->ID] = $page->post_title; + } + } + + return $pages_options; + } + } endif; $settings = new MAGE_Events_Setting_Controls(); -function mep_get_option( $option, $section, $default = '' ) { - $options = get_option( $section ); +function mep_get_option($option, $section, $default = '') +{ + $options = get_option($section); - if ( isset( $options[$option] ) ) { + if (isset($options[$option])) { return $options[$option]; } - + return $default; -} \ No newline at end of file +} diff --git a/inc/class/mep_settings_api.php b/inc/class/mep_settings_api.php index 48362ce..755d322 100644 --- a/inc/class/mep_settings_api.php +++ b/inc/class/mep_settings_api.php @@ -1,10 +1,7 @@ '', + 'name' => '', 'label' => '', - 'desc' => '', - 'type' => 'text' + 'desc' => '', + 'type' => 'text' ); $arg = wp_parse_args( $field, $defaults ); @@ -110,10 +98,14 @@ class MAGE_Setting_API { } if ( isset($section['desc']) && !empty($section['desc']) ) { - $section['desc'] = '
'.$section['desc'].'
'; - $callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'";'); + $section['desc'] = '
' . $section['desc'] . '
'; + $callback = function() use ( $section ) { + echo str_replace( '"', '\"', $section['desc'] ); + }; + } else if ( isset( $section['callback'] ) ) { + $callback = $section['callback']; } else { - $callback = '__return_false'; + $callback = null; } add_settings_section( $section['id'], $section['title'], $callback, $section['id'] ); @@ -123,19 +115,30 @@ class MAGE_Setting_API { foreach ( $this->settings_fields as $section => $field ) { foreach ( $field as $option ) { + $name = $option['name']; $type = isset( $option['type'] ) ? $option['type'] : 'text'; + $label = isset( $option['label'] ) ? $option['label'] : ''; + $callback = isset( $option['callback'] ) ? $option['callback'] : array( $this, 'callback_' . $type ); $args = array( - 'id' => $option['name'], - 'desc' => isset( $option['desc'] ) ? $option['desc'] : '', - 'name' => $option['label'], - 'section' => $section, - 'size' => isset( $option['size'] ) ? $option['size'] : null, - 'options' => isset( $option['options'] ) ? $option['options'] : '', - 'std' => isset( $option['default'] ) ? $option['default'] : '', + 'id' => $name, + 'class' => isset( $option['class'] ) ? $option['class'] : $name, + 'label_for' => "{$section}[{$name}]", + 'desc' => isset( $option['desc'] ) ? $option['desc'] : '', + 'name' => $label, + 'section' => $section, + 'size' => isset( $option['size'] ) ? $option['size'] : null, + 'options' => isset( $option['options'] ) ? $option['options'] : '', + 'std' => isset( $option['default'] ) ? $option['default'] : '', 'sanitize_callback' => isset( $option['sanitize_callback'] ) ? $option['sanitize_callback'] : '', + 'type' => $type, + 'placeholder' => isset( $option['placeholder'] ) ? $option['placeholder'] : '', + 'min' => isset( $option['min'] ) ? $option['min'] : '', + 'max' => isset( $option['max'] ) ? $option['max'] : '', + 'step' => isset( $option['step'] ) ? $option['step'] : '', ); - add_settings_field( $section . '[' . $option['name'] . ']', $option['label'], array( $this, 'callback_' . $type ), $section, $section, $args ); + + add_settings_field( "{$section}[{$name}]", $label, $callback, $section, $section, $args ); } } @@ -145,6 +148,21 @@ class MAGE_Setting_API { } } + /** + * Get field description for display + * + * @param array $args settings field args + */ + public function get_field_description( $args ) { + if ( ! empty( $args['desc'] ) ) { + $desc = sprintf( '

%s

', $args['desc'] ); + } else { + $desc = ''; + } + + return $desc; + } + /** * Displays a text field for a settings field * @@ -152,11 +170,42 @@ class MAGE_Setting_API { */ function callback_text( $args ) { - $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); - $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); + $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $type = isset( $args['type'] ) ? $args['type'] : 'text'; + $placeholder = empty( $args['placeholder'] ) ? '' : ' placeholder="' . $args['placeholder'] . '"'; - $html = sprintf( '', $size, $args['section'], $args['id'], $value ); - $html .= sprintf( ' %s', $args['desc'] ); + $html = sprintf( '', $type, $size, $args['section'], $args['id'], $value, $placeholder ); + $html .= $this->get_field_description( $args ); + + echo $html; + } + + /** + * Displays a url field for a settings field + * + * @param array $args settings field args + */ + function callback_url( $args ) { + $this->callback_text( $args ); + } + + /** + * Displays a number field for a settings field + * + * @param array $args settings field args + */ + function callback_number( $args ) { + $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); + $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $type = isset( $args['type'] ) ? $args['type'] : 'number'; + $placeholder = empty( $args['placeholder'] ) ? '' : ' placeholder="' . $args['placeholder'] . '"'; + $min = ( $args['min'] == '' ) ? '' : ' min="' . $args['min'] . '"'; + $max = ( $args['max'] == '' ) ? '' : ' max="' . $args['max'] . '"'; + $step = ( $args['step'] == '' ) ? '' : ' step="' . $args['step'] . '"'; + + $html = sprintf( '', $type, $size, $args['section'], $args['id'], $value, $placeholder, $min, $max, $step ); + $html .= $this->get_field_description( $args ); echo $html; } @@ -170,48 +219,57 @@ class MAGE_Setting_API { $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); - $html = sprintf( '', $args['section'], $args['id'] ); - $html .= sprintf( '', $args['section'], $args['id'], $value, checked( $value, 'on', false ) ); - $html .= sprintf( '', $args['section'], $args['id'], $args['desc'] ); + $html = '
'; + $html .= sprintf( '', $args['desc'] ); + $html .= '
'; echo $html; } /** - * Displays a multicheckbox a settings field + * Displays a multicheckbox for a settings field * * @param array $args settings field args */ function callback_multicheck( $args ) { $value = $this->get_option( $args['id'], $args['section'], $args['std'] ); - - $html = ''; + $html = '
'; + $html .= sprintf( '', $args['section'], $args['id'] ); foreach ( $args['options'] as $key => $label ) { $checked = isset( $value[$key] ) ? $value[$key] : '0'; - $html .= sprintf( '', $args['section'], $args['id'], $key, checked( $checked, $key, false ) ); - $html .= sprintf( '
', $args['section'], $args['id'], $label, $key ); + $html .= sprintf( '
', $label ); } - $html .= sprintf( ' %s', $args['desc'] ); + + $html .= $this->get_field_description( $args ); + $html .= '
'; echo $html; } /** - * Displays a multicheckbox a settings field + * Displays a radio button for a settings field * * @param array $args settings field args */ function callback_radio( $args ) { $value = $this->get_option( $args['id'], $args['section'], $args['std'] ); + $html = '
'; - $html = ''; foreach ( $args['options'] as $key => $label ) { - $html .= sprintf( '', $args['section'], $args['id'], $key, checked( $value, $key, false ) ); - $html .= sprintf( '
', $args['section'], $args['id'], $label, $key ); + $html .= sprintf( '
', $label ); } - $html .= sprintf( ' %s', $args['desc'] ); + + $html .= $this->get_field_description( $args ); + $html .= '
'; echo $html; } @@ -224,14 +282,15 @@ class MAGE_Setting_API { function callback_select( $args ) { $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); - $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $html = sprintf( '', $size, $args['section'], $args['id'] ); foreach ( $args['options'] as $key => $label ) { $html .= sprintf( '', $key, selected( $value, $key, false ), $label ); } + $html .= sprintf( '' ); - $html .= sprintf( ' %s', $args['desc'] ); + $html .= $this->get_field_description( $args ); echo $html; } @@ -243,22 +302,24 @@ class MAGE_Setting_API { */ function callback_textarea( $args ) { - $value = esc_textarea( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); - $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $value = esc_textarea( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); + $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $placeholder = empty( $args['placeholder'] ) ? '' : ' placeholder="'.$args['placeholder'].'"'; - $html = sprintf( '', $size, $args['section'], $args['id'], $value ); - $html .= sprintf( '
%s', $args['desc'] ); + $html = sprintf( '', $size, $args['section'], $args['id'], $placeholder, $value ); + $html .= $this->get_field_description( $args ); echo $html; } /** - * Displays a textarea for a settings field + * Displays the html for a settings field * * @param array $args settings field args + * @return string */ function callback_html( $args ) { - echo $args['desc']; + echo $this->get_field_description( $args ); } /** @@ -269,15 +330,25 @@ class MAGE_Setting_API { function callback_wysiwyg( $args ) { $value = $this->get_option( $args['id'], $args['section'], $args['std'] ); - $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : '500px'; + $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : '500px'; - echo '
'; + echo '
'; - wp_editor( $value, $args['section'] . '-' . $args['id'] . '', array( 'teeny' => true, 'textarea_name' => $args['section'] . '[' . $args['id'] . ']', 'textarea_rows' => 10 ) ); + $editor_settings = array( + 'teeny' => true, + 'textarea_name' => $args['section'] . '[' . $args['id'] . ']', + 'textarea_rows' => 10 + ); + + if ( isset( $args['options'] ) && is_array( $args['options'] ) ) { + $editor_settings = array_merge( $editor_settings, $args['options'] ); + } + + wp_editor( $value, $args['section'] . '-' . $args['id'], $editor_settings ); echo '
'; - echo sprintf( '
%s', $args['desc'] ); + echo $this->get_field_description( $args ); } /** @@ -288,30 +359,13 @@ class MAGE_Setting_API { function callback_file( $args ) { $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); - $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; - $id = $args['section'] . '[' . $args['id'] . ']'; - $js_id = $args['section'] . '\\\\[' . $args['id'] . '\\\\]'; - $html = sprintf( '', $size, $args['section'], $args['id'], $value ); - $html .= ' - '; - $html .= sprintf( ' %s', $args['desc'] ); + $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $id = $args['section'] . '[' . $args['id'] . ']'; + $label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : __( 'Choose File' ); + + $html = sprintf( '', $size, $args['section'], $args['id'], $value ); + $html .= ''; + $html .= $this->get_field_description( $args ); echo $html; } @@ -324,10 +378,10 @@ class MAGE_Setting_API { function callback_password( $args ) { $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); - $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; - $html = sprintf( '', $size, $args['section'], $args['id'], $value ); - $html .= sprintf( ' %s', $args['desc'] ); + $html = sprintf( '', $size, $args['section'], $args['id'], $value ); + $html .= $this->get_field_description( $args ); echo $html; } @@ -340,18 +394,43 @@ class MAGE_Setting_API { function callback_color( $args ) { $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) ); - $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; + $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular'; - $html = sprintf( '', $size, $args['section'], $args['id'], $value, $args['std'] ); - $html .= sprintf( ' %s', $args['desc'] ); + $html = sprintf( '', $size, $args['section'], $args['id'], $value, $args['std'] ); + $html .= $this->get_field_description( $args ); echo $html; } + + /** + * Displays a select box for creating the pages select box + * + * @param array $args settings field args + */ + function callback_pages( $args ) { + + $dropdown_args = array( + 'selected' => esc_attr($this->get_option($args['id'], $args['section'], $args['std'] ) ), + 'name' => $args['section'] . '[' . $args['id'] . ']', + 'id' => $args['section'] . '[' . $args['id'] . ']', + 'echo' => 0 + ); + $html = wp_dropdown_pages( $dropdown_args ); + echo $html; + } + /** * Sanitize callback for Settings API + * + * @return mixed */ function sanitize_options( $options ) { + + if ( !$options ) { + return $options; + } + foreach( $options as $option_slug => $option_value ) { $sanitize_callback = $this->get_sanitize_callback( $option_slug ); @@ -419,6 +498,13 @@ class MAGE_Setting_API { function show_navigation() { $html = '