/** * return mail footer html template */ function get_mail_footer() { $mail_footer = apply_filters('ae_get_mail_footer', ''); if ($mail_footer != '') { return $mail_footer; } $info = apply_filters('ae_mail_footer_contact_info', get_option('blogname') . ' <br> ' . get_option('admin_email') . ' <br>'); $customize = et_get_customization(); $copyright = apply_filters('get_copyright', ae_get_option('copyright')); $mail_footer = '<table class="row footer" style="border-spacing: 0; border-collapse: collapse; vertical-align: middle; text-align: left; width: 100%; position: relative; display: block; padding: 0px;"> <tr style="vertical-align: middle; text-align: left; padding: 0;" align="left"> <td class="wrapper" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: middle; text-align: left; position: relative; color: #737373; font-family: \'Arial\', sans-serif; font-weight: normal; line-height: 24px; font-size: 14px; margin: 0; padding: 10px 20px 0px 0px;" align="left" valign="middle"> <table class="twelve columns" style="border-spacing: 0; border-collapse: collapse; vertical-align: middle; text-align: left; width: 580px; margin: 0 auto; padding: 0;"> <tr style="vertical-align: middle; text-align: left; padding: 0;" align="left"> <td class="six sub-columns" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: middle; text-align: left; min-width: 0px; width: 50%; color: #737373; font-family: \'Arial\', sans-serif; font-weight: normal; line-height: 24px; font-size: 14px; margin: 0; padding: 0px 10px 10px 0px;" align="left" valign="middle"> <p style="color: #737373; font-family: \'Arial\', sans-serif; font-weight: normal; text-align: left; line-height: 1.1; font-size: 12px; margin: 0 0 10px; padding: 0;" align="left"> <br class="hide-for-small" /> © 2016 Perssistant - Plugin Initiative</p> </td> <td class="six sub-columns last" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: middle; text-align: left; min-width: 0px; width: 50%; color: #737373; font-family: \'Arial\', sans-serif; font-weight: normal; line-height: 24px; font-size: 14px; margin: 0; padding: 0px 0px 10px;" align="left" valign="middle"> <p class="text-right" style="color: #737373; font-family: \'Arial\', sans-serif; font-weight: normal; text-align: right; line-height: 1.1; font-size: 12px; margin: 0 0 10px; padding: 0;" align="right">Persisstant <br /><a href="mailto:info@persisstant.com" style="color: #737373; text-decoration: none;">info@persisstant.com</a> </p> </td> <td class="expander" style="word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: middle; text-align: left; visibility: hidden; width: 0px; color: #737373; font-family: \'Arial\', sans-serif; font-weight: normal; line-height: 24px; font-size: 14px; margin: 0; padding: 0;" align="left" valign="middle"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </center> </td> </tr> </table> </body> </html>'; return $mail_footer; }
/** * return mail footer html template */ function get_mail_footer() { $mail_footer = apply_filters('ae_get_mail_footer', ''); if ($mail_footer != '') { return $mail_footer; } $info = apply_filters('ae_mail_footer_contact_info', get_option('blogname') . ' <br> ' . get_option('admin_email') . ' <br>'); $customize = et_get_customization(); $copyright = apply_filters('get_copyright', ae_get_option('copyright')); $mail_footer = '</td> </tr> <tr> <td colspan="2" style="background: ' . $customize['background'] . '; padding: 10px 20px; color: #666;"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td style="vertical-align: top; text-align: left; width: 50%;">' . $copyright . '</td> <td style="text-align: right; width: 50%;">' . $info . '</td> </tr> </table> </td> </tr> </table> </div> </body> </html>'; return $mail_footer; }
/** * Show off the customizer pannel */ function et_customizer_panel() { if (current_user_can('manage_options')) { $style = et_get_customization(); $layout = 'content-sidebar'; $schemes = et_get_scheme(); $page_colors = et_page_color(); $schemes = array(); ?> <script type="text/javascript" id="schemes"><?php echo json_encode(et_schemes()); ?> </script> <div id="customizer" class="customizer-panel"> <div class="close-panel"><a href="<?php echo esc_url(add_query_arg('deactivate', 'customizer')); ?> " class=""><span>*</span></a></div> <form action="" id="f_customizer"> <?php if (!empty($schemes)) { ?> <div class="section"> <div class="custom-head"> <span class="spacer"></span><h3><?php _e('Color Schemes', ET_DOMAIN); ?> </h3><span class="spacer"></span> </div> <div class="section-content"> <ul class="blocks-grid"> <?php foreach ($schemes as $key => $value) { ?> <li class="clr-block scheme-item" data="" style="background: <?php echo $value; ?> "></li> <?php } ?> </ul> </div> </div> <?php } ?> <div class="section"> <div class="custom-head"> <span class="spacer"></span><h3><?php _e('Page Options', ET_DOMAIN); ?> </h3><span class="spacer"></span> </div> <div class="section-content"> <h4><?php _e('Colors', ET_DOMAIN); ?> </h4> <ul class="blocks-list"> <?php foreach ($page_colors as $key => $value) { ?> <li> <div class="picker-trigger clr-block" data-color="<?php echo $key; ?> " style="background: <?php echo $style[$key]; ?> "></div> <span class="block-label"><?php echo $value; ?> </span> </li> <?php } ?> </ul> </div> </div> <div class="section"> <div class="custom-head"> <span class="spacer"></span><h3><?php _e('Content Options', ET_DOMAIN); ?> </h3><span class="spacer"></span> </div> <div class="section-content" style="display: none"> <?php $fonts = et_get_supported_fonts(); ?> <div class="block-select"> <label for=""><?php _e('Heading', ET_DOMAIN); ?> </label> <div class="select-wrap"> <div> <select class="fontchoose" name="font-heading"> <?php foreach ($fonts as $key => $font) { ?> <option <?php if ($style['font-heading'] == $key) { echo 'selected="selected"'; } ?> data-fontface="<?php echo $font['fontface']; ?> " value="<?php echo $key; ?> "><?php echo $font['name']; ?> </option> <?php } ?> </select> </div> </div> </div> <?php /* <div class="slider-wrap"> <div class="slider heading-size" data-min="18" data-max="29" data-value="<?php echo str_replace( 'px', '', $style['font-heading-size'] ) ?>"> <input type="hidden" name="font-heading-size"> </div> </div> */ ?> <div class="block-select"> <label for=""><?php _e('Content', ET_DOMAIN); ?> </label> <div class="select-wrap"> <div> <select class="fontchoose" name="font-text" id=""> <?php foreach ($fonts as $key => $font) { ?> <option <?php if ($style['font-text'] == $key) { echo 'selected="selected"'; } ?> data-fontface="<?php echo $font['fontface']; ?> " value="<?php echo $key; ?> "><?php echo $font['name']; ?> </option> <?php } ?> </select> </div> </div> </div> <?php /* <div class="slider-wrap"> <div class="slider text-size" data-min="12" data-max="14" data-value="<?php echo str_replace( 'px', '', $style['font-text-size'] ) ?>"> <input type="hidden" name="font-text-size"> </div> </div> */ ?> </div> </div> <button type="button" class="btn blue-btn" id="save_customizer" title="<?php _e('Save', ET_DOMAIN); ?> "><span><?php _e('Save', ET_DOMAIN); ?> </span></button> <button type="button" class="btn none-btn" id="reset_customizer" title="<?php _e('Reset', ET_DOMAIN); ?> "><span class="icon" data-icon="D"></span></span><span><?php _e('Reset', ET_DOMAIN); ?> </span></button> </form> </div> <?php } }