function fyb_chkbx($key, $echo = true) { $fyb_result = ''; if (funnyBranding_setting($key, true)) { $fyb_result = 'checked'; } if ($echo) { echo $fyb_result; } else { return $fyb_result; } }
</td> <td class="forminp forminp-select"> <input id="trans[' . $fyb_k . '][val]" class="regular-text" type="text" value="' . @$value['val'] . '" name="funnybranding[translate][trans][' . $fyb_k . '][val]"> </td> <td class="forminp forminp-select"> <button data-id="' . $fyb_k . '" class="addmore button button-secondary" type="button" name="addmore"><i class="fa fa-plus fa-1x"></i> </button> <button data-id="' . $fyb_k . '" class="delete button button-secondary" type="button" name="delete"><i class="fa fa-trash fa-1x"></i> </button> </td> </tr>'; } if (funnyBranding_setting('trans', true)) { $fyb_trans = array_values(funnyBranding_setting('trans', true)); $fyb_total = count($fyb_trans); $fyb_layout = ''; $fyb_count = 0; foreach ($fyb_trans as $fyb_k => $fyb_tra) { $fyb_layout .= fyb_give_layout($fyb_count, $fyb_tra); $fyb_count++; } } else { $fyb_layout = fyb_give_layout(1, ''); } ?> <div id="translate" class="tab tab-table"> <table id="translations" class="tab tab-table">
" name="funnybranding[smtp][smtp_secure]"> </td> </tr> <tr valign="top"> <th class="titledesc" scope="row"> <label for="smtp_fromid">From Email ID</label> </th> <td class="forminp forminp-select"> <input id="smtp_fromid" class="regular-text" type="text" value="<?php funnyBranding_setting('smtp_fromid'); ?> " name="funnybranding[smtp][smtp_fromid]"> </td> </tr> <tr valign="top"> <th class="titledesc" scope="row"> <label for="smtp_from_name">From Name</label> </th> <td class="forminp forminp-select"> <input id="smtp_from_name" class="regular-text" type="text" value="<?php funnyBranding_setting('smtp_from_name'); ?> " name="funnybranding[smtp][smtp_from_name]"> </td> </tr> <tr valign="top"> <th class="titledesc" scope="row"> </th> <td class="forminp forminp-select"> <input id="smtp_update" class="button button-primary" type="submit" value="Save SMTP Settings" name="save_changes"> </td> </tr> </tbody> </table>
?> " /> <p class="description inline-block"> Enter custom favicon url.</p> </td> </tr> <tr valign="top"> <th class="titledesc" scope="row"> <label for="custom_favicon">Custom Dashboard Logo</label> </th> <td class="forminp forminp-select"> <input data-target="custom_dashboard_logo" data-img-select="true" class="button" type="button" value="Upload / Choose Image" style=" vertical-align: middle;"/> or <input id="custom_dashboard_logo" type="text" size="36" name="funnybranding[general][custom_dashboard_logo]" placeholder="Enter Custom URL " value="<?php funnyBranding_setting('custom_dashboard_logo'); ?> " /> <p class="description inline-block"> Custom Dashboard Logo url.</p> </td> </tr> <tr valign="top"> <th class="titledesc" scope="row"> <label for="adminBarmoveDown">Custom Avatars</label> </th> <td class="forminp forminp-select"> <label> <input name="funnybranding[general][custom_avatars]" type="checkbox" <?php fyb_chkbx('custom_avatars');
<tr valign="top"> <th class="titledesc" scope="row"> <label >Customize Excerpt More</label> </th> <td class="forminp forminp-select"> <input class="regular-text" type="text" value="<?php funnyBranding_setting('custom_excerpt_more'); ?> " name="funnybranding[postpage][custom_excerpt_more]"> </td> </tr> </tbody> </table> <?php $fyb_class = ''; $fyb_ex_color = funnyBranding_setting('ps_color', true); if (!funnyBranding_setting('ps_color_status', true)) { $fyb_class = 'hidden'; } echo '<table class="inline-block"> '; echo '<thead>'; echo '<tr>'; echo '<td colspan="2">Add Post Status Colour</td>'; echo '</tr>'; echo '<tr>'; echo '<th>Status Name </th>'; echo '<th>Color </th>'; echo '</tr>'; echo '</thead>'; echo '<tbody>'; echo '<tr valign="top">'; echo '<td class="titledesc" scope="row"> <label for="smtp_is_html">Custom Post Status Color</label> </td>';
function posts_status_color() { $fyb_colors = funnyBranding_setting('ps_color', true); $fyb_psc_code = '<style>'; foreach ($fyb_colors as $fybCK => $fybCV) { if (!empty($fybCV)) { $fyb_psc_code .= '.status-' . $fybCK . '{background: ' . $fybCV . ' !important;}'; } } $fyb_psc_code .= '<style>'; echo $fyb_psc_code; }
<th class="titledesc" scope="row"> <label for="footer_verison_hide">Use jQuery In Login Page</label> </th> <td class="forminp forminp-select"> <label> <input name="funnybranding[login][user_jquery_login_page]" type="checkbox" <?php fyb_chkbx('user_jquery_login_page'); ?> /> </label> <p class="inline-block description">add jQuery Library to WordPress Login page.</p> </td> </tr> <tr valign="top"> <th class="titledesc" scope="row"> <label for="login_page_script">Login Page Script </label> </th> <td class="forminp forminp-select"> <textarea rows="5" cols="39" id="login_page_script" name="funnybranding[login][login_page_script]" class="regular-text"><?php echo funnyBranding_setting('login_page_script'); ?> </textarea> <p class="description">Enter your custom script for login page <br/> <strong>Note : </strong> Do not enter script code with <code>script tag</code></p> </td> </tr> <tr valign="top"> <th class="titledesc" scope="row"> </th> <td class="forminp forminp-select"> <input id="login_update" class="button button-primary" type="submit" value="Save Login Settings" name="save_changes"> </td> </tr> </tbody> </table>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ defined('ABSPATH') or die("No script kiddies please!"); global $fyb_postTypes, $fyb_funnybranding_settings; $fyb_defaultContent = funnyBranding_setting('defaultContent', true); add_action('admin_init', 'fyb_get_post_types', 199); ?> <div id="customcontent" class="tab form-table hidden"> <?php foreach ($fyb_postTypes as $fyb_postKey => $fyb_postVal) { if ($fyb_postKey == 'nav_menu_item' || $fyb_postKey == 'revision' || $fyb_postKey == 'attachment') { continue; } echo '<h3>Default Content For <strong> "' . $fyb_postKey . '" </strong> </h3><table > <tr><td><div class="defaultContentContainer"> '; #echo '<span class=""> </span>'; echo '<textarea name="funnybranding[dcontent][defaultContent][' . $fyb_postKey . ']" >' . @$fyb_defaultContent[$fyb_postKey] . '</textarea>'; echo '<div/> </td> </tr> </table>'; echo ' <hr/> ';