PageRenderTime 54ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/functions.php

https://github.com/petergibbons/OpenCounterWP
PHP | 501 lines | 427 code | 42 blank | 32 comment | 73 complexity | 14e637052ccdaf476c626769cf54ec1c MD5 | raw file
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6. add_filter('gform_field_value_address', 'address_from_cookie');
  7. function address_from_cookie(){
  8. return str_replace('\\"', '', $_COOKIE["address"]);
  9. }
  10. add_filter('gform_field_value_city', 'get_my_city');
  11. function get_my_city(){
  12. return "Santa Cruz";
  13. }
  14. // idea 3
  15. // write [linklabel label="special label"] and then somewhere else [accordion label="special label"] hidden content [ /accordion ]
  16. function accordion_helper( $atts, $content = null ){
  17. extract( shortcode_atts( array( 'label' => 'label' ), $atts ) );
  18. return "<div id='" . str_replace( " ", "", esc_attr($label) ) . "' class='aj-hidden'><p class='closebtn'><a class='aj-collapse' rel='" . str_replace( " ", "", esc_attr($label) ) . "'>x</a></p>" . do_shortcode( $content ) . "</div>";
  19. }
  20. function linklabel_helper( $atts ){
  21. extract( shortcode_atts( array( 'label' => 'label' ), $atts ) );
  22. return "<a class='aj-collapse' rel='" . str_replace( " ", "", esc_attr($label) ) . "'>" . esc_attr($label) . "&nbsp;&#x21e3;</a>";
  23. }
  24. add_shortcode( 'linklabel', 'linklabel_helper' );
  25. add_shortcode( 'accordion', 'accordion_helper' );
  26. add_action('wp_head', 'add_mapjs');
  27. function add_mapjs(){
  28. //var_dump(is_page_template('map.php'));
  29. if(is_page_template('map.php') ){
  30. ?>
  31. <script src='http://mapbox.com/wax/externals/leaflet/leaflet.js' type='text/javascript'></script>
  32. <script src='http://mapbox.com/wax/dist/wax.leaf.min.js' type='text/javascript'></script>
  33. <link href='http://mapbox.com/wax/externals/leaflet/leaflet.css' rel='stylesheet' type='text/css' />
  34. <?php
  35. }
  36. }
  37. $content_width = 450;
  38. add_theme_support( 'automatic-feed-links' );
  39. if ( function_exists('register_sidebar') ) {
  40. register_sidebar(array(
  41. 'before_widget' => '<li id="%1$s" class="widget %2$s">',
  42. 'after_widget' => '</li>',
  43. 'before_title' => '<h2 class="widgettitle">',
  44. 'after_title' => '</h2>',
  45. ));
  46. }
  47. /** @ignore */
  48. function kubrick_head() {
  49. $head = "<style type='text/css'>\n<!--";
  50. $output = '';
  51. if ( kubrick_header_image() ) {
  52. $url = kubrick_header_image_url() ;
  53. $output .= "#header { background: url('$url') no-repeat bottom center; }\n";
  54. }
  55. if ( false !== ( $color = kubrick_header_color() ) ) {
  56. $output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n";
  57. }
  58. if ( false !== ( $display = kubrick_header_display() ) ) {
  59. $output .= "#headerimg { display: $display }\n";
  60. }
  61. $foot = "--></style>\n";
  62. if ( '' != $output )
  63. echo $head . $output . $foot;
  64. }
  65. add_action('wp_head', 'kubrick_head');
  66. function kubrick_header_image() {
  67. return apply_filters('kubrick_header_image', get_option('kubrick_header_image'));
  68. }
  69. function kubrick_upper_color() {
  70. if (strpos($url = kubrick_header_image_url(), 'header-img.php?') !== false) {
  71. parse_str(substr($url, strpos($url, '?') + 1), $q);
  72. return $q['upper'];
  73. } else
  74. return '69aee7';
  75. }
  76. function kubrick_lower_color() {
  77. if (strpos($url = kubrick_header_image_url(), 'header-img.php?') !== false) {
  78. parse_str(substr($url, strpos($url, '?') + 1), $q);
  79. return $q['lower'];
  80. } else
  81. return '4180b6';
  82. }
  83. function kubrick_header_image_url() {
  84. if ( $image = kubrick_header_image() )
  85. $url = get_template_directory_uri() . '/images/' . $image;
  86. else
  87. $url = get_template_directory_uri() . '/images/kubrickheader.jpg';
  88. return $url;
  89. }
  90. function kubrick_header_color() {
  91. return apply_filters('kubrick_header_color', get_option('kubrick_header_color'));
  92. }
  93. function kubrick_header_color_string() {
  94. $color = kubrick_header_color();
  95. if ( false === $color )
  96. return 'white';
  97. return $color;
  98. }
  99. function kubrick_header_display() {
  100. return apply_filters('kubrick_header_display', get_option('kubrick_header_display'));
  101. }
  102. function kubrick_header_display_string() {
  103. $display = kubrick_header_display();
  104. return $display ? $display : 'inline';
  105. }
  106. add_action('admin_menu', 'kubrick_add_theme_page');
  107. function kubrick_add_theme_page() {
  108. if ( isset( $_GET['page'] ) && $_GET['page'] == basename(__FILE__) ) {
  109. if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) {
  110. check_admin_referer('kubrick-header');
  111. if ( isset($_REQUEST['njform']) ) {
  112. if ( isset($_REQUEST['defaults']) ) {
  113. delete_option('kubrick_header_image');
  114. delete_option('kubrick_header_color');
  115. delete_option('kubrick_header_display');
  116. } else {
  117. if ( '' == $_REQUEST['njfontcolor'] )
  118. delete_option('kubrick_header_color');
  119. else {
  120. $fontcolor = preg_replace('/^.*(#[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['njfontcolor']);
  121. update_option('kubrick_header_color', $fontcolor);
  122. }
  123. if ( preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njuppercolor'], $uc) && preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njlowercolor'], $lc) ) {
  124. $uc = ( strlen($uc[0]) == 3 ) ? $uc[0]{0}.$uc[0]{0}.$uc[0]{1}.$uc[0]{1}.$uc[0]{2}.$uc[0]{2} : $uc[0];
  125. $lc = ( strlen($lc[0]) == 3 ) ? $lc[0]{0}.$lc[0]{0}.$lc[0]{1}.$lc[0]{1}.$lc[0]{2}.$lc[0]{2} : $lc[0];
  126. update_option('kubrick_header_image', "header-img.php?upper=$uc&lower=$lc");
  127. }
  128. if ( isset($_REQUEST['toggledisplay']) ) {
  129. if ( false === get_option('kubrick_header_display') )
  130. update_option('kubrick_header_display', 'none');
  131. else
  132. delete_option('kubrick_header_display');
  133. }
  134. }
  135. } else {
  136. if ( isset($_REQUEST['headerimage']) ) {
  137. check_admin_referer('kubrick-header');
  138. if ( '' == $_REQUEST['headerimage'] )
  139. delete_option('kubrick_header_image');
  140. else {
  141. $headerimage = preg_replace('/^.*?(header-img.php\?upper=[0-9a-fA-F]{6}&lower=[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['headerimage']);
  142. update_option('kubrick_header_image', $headerimage);
  143. }
  144. }
  145. if ( isset($_REQUEST['fontcolor']) ) {
  146. check_admin_referer('kubrick-header');
  147. if ( '' == $_REQUEST['fontcolor'] )
  148. delete_option('kubrick_header_color');
  149. else {
  150. $fontcolor = preg_replace('/^.*?(#[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['fontcolor']);
  151. update_option('kubrick_header_color', $fontcolor);
  152. }
  153. }
  154. if ( isset($_REQUEST['fontdisplay']) ) {
  155. check_admin_referer('kubrick-header');
  156. if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] )
  157. delete_option('kubrick_header_display');
  158. else
  159. update_option('kubrick_header_display', 'none');
  160. }
  161. }
  162. //print_r($_REQUEST);
  163. wp_redirect("themes.php?page=functions.php&saved=true");
  164. die;
  165. }
  166. add_action('admin_head', 'kubrick_theme_page_head');
  167. }
  168. add_theme_page(__('Custom Header'), __('Custom Header'), 'edit_themes', basename(__FILE__), 'kubrick_theme_page');
  169. }
  170. function kubrick_theme_page_head() {
  171. ?>
  172. <script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script>
  173. <script type='text/javascript'>
  174. // <![CDATA[
  175. function pickColor(color) {
  176. ColorPicker_targetInput.value = color;
  177. kUpdate(ColorPicker_targetInput.id);
  178. }
  179. function PopupWindow_populate(contents) {
  180. contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" class="button-secondary" value="<?php esc_attr_e('Close Color Picker'); ?>" onclick="cp.hidePopup(\'prettyplease\')"></input></p>';
  181. this.contents = contents;
  182. this.populated = false;
  183. }
  184. function PopupWindow_hidePopup(magicword) {
  185. if ( magicword != 'prettyplease' )
  186. return false;
  187. if (this.divName != null) {
  188. if (this.use_gebi) {
  189. document.getElementById(this.divName).style.visibility = "hidden";
  190. }
  191. else if (this.use_css) {
  192. document.all[this.divName].style.visibility = "hidden";
  193. }
  194. else if (this.use_layers) {
  195. document.layers[this.divName].visibility = "hidden";
  196. }
  197. }
  198. else {
  199. if (this.popupWindow && !this.popupWindow.closed) {
  200. this.popupWindow.close();
  201. this.popupWindow = null;
  202. }
  203. }
  204. return false;
  205. }
  206. function colorSelect(t,p) {
  207. if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" )
  208. cp.hidePopup('prettyplease');
  209. else {
  210. cp.p = p;
  211. cp.select(t,p);
  212. }
  213. }
  214. function PopupWindow_setSize(width,height) {
  215. this.width = 162;
  216. this.height = 210;
  217. }
  218. var cp = new ColorPicker();
  219. function advUpdate(val, obj) {
  220. document.getElementById(obj).value = val;
  221. kUpdate(obj);
  222. }
  223. function kUpdate(oid) {
  224. if ( 'uppercolor' == oid || 'lowercolor' == oid ) {
  225. uc = document.getElementById('uppercolor').value.replace('#', '');
  226. lc = document.getElementById('lowercolor').value.replace('#', '');
  227. hi = document.getElementById('headerimage');
  228. hi.value = 'header-img.php?upper='+uc+'&lower='+lc;
  229. document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/'+hi.value+'") center no-repeat';
  230. document.getElementById('advuppercolor').value = '#'+uc;
  231. document.getElementById('advlowercolor').value = '#'+lc;
  232. }
  233. if ( 'fontcolor' == oid ) {
  234. document.getElementById('header').style.color = document.getElementById('fontcolor').value;
  235. document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value;
  236. }
  237. if ( 'fontdisplay' == oid ) {
  238. document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
  239. }
  240. }
  241. function toggleDisplay() {
  242. td = document.getElementById('fontdisplay');
  243. td.value = ( td.value == 'none' ) ? 'inline' : 'none';
  244. kUpdate('fontdisplay');
  245. }
  246. function toggleAdvanced() {
  247. a = document.getElementById('jsAdvanced');
  248. if ( a.style.display == 'none' )
  249. a.style.display = 'block';
  250. else
  251. a.style.display = 'none';
  252. }
  253. function kDefaults() {
  254. document.getElementById('headerimage').value = '';
  255. document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#69aee7';
  256. document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#4180b6';
  257. document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/kubrickheader.jpg") center no-repeat';
  258. document.getElementById('header').style.color = '#FFFFFF';
  259. document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '';
  260. document.getElementById('fontdisplay').value = 'inline';
  261. document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
  262. }
  263. function kRevert() {
  264. document.getElementById('headerimage').value = '<?php echo esc_js(kubrick_header_image()); ?>';
  265. document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#<?php echo esc_js(kubrick_upper_color()); ?>';
  266. document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#<?php echo esc_js(kubrick_lower_color()); ?>';
  267. document.getElementById('header').style.background = 'url("<?php echo esc_js(kubrick_header_image_url()); ?>") center no-repeat';
  268. document.getElementById('header').style.color = '';
  269. document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '<?php echo esc_js(kubrick_header_color_string()); ?>';
  270. document.getElementById('fontdisplay').value = '<?php echo esc_js(kubrick_header_display_string()); ?>';
  271. document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
  272. }
  273. function kInit() {
  274. document.getElementById('jsForm').style.display = 'block';
  275. document.getElementById('nonJsForm').style.display = 'none';
  276. }
  277. addLoadEvent(kInit);
  278. // ]]>
  279. </script>
  280. <style type='text/css'>
  281. #headwrap {
  282. text-align: center;
  283. }
  284. #kubrick-header {
  285. font-size: 80%;
  286. }
  287. #kubrick-header .hibrowser {
  288. width: 780px;
  289. height: 260px;
  290. overflow: scroll;
  291. }
  292. #kubrick-header #hitarget {
  293. display: none;
  294. }
  295. #kubrick-header #header h1 {
  296. font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
  297. font-weight: bold;
  298. font-size: 4em;
  299. text-align: center;
  300. padding-top: 70px;
  301. margin: 0;
  302. }
  303. #kubrick-header #header .description {
  304. font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
  305. font-size: 1.2em;
  306. text-align: center;
  307. }
  308. #kubrick-header #header {
  309. text-decoration: none;
  310. color: <?php echo kubrick_header_color_string(); ?>;
  311. padding: 0;
  312. margin: 0;
  313. height: 200px;
  314. text-align: center;
  315. background: url('<?php echo kubrick_header_image_url(); ?>') center no-repeat;
  316. }
  317. #kubrick-header #headerimg {
  318. margin: 0;
  319. height: 200px;
  320. width: 100%;
  321. display: <?php echo kubrick_header_display_string(); ?>;
  322. }
  323. .description {
  324. margin-top: 16px;
  325. color: #fff;
  326. }
  327. #jsForm {
  328. display: none;
  329. text-align: center;
  330. }
  331. #jsForm input.submit, #jsForm input.button, #jsAdvanced input.button {
  332. padding: 0px;
  333. margin: 0px;
  334. }
  335. #advanced {
  336. text-align: center;
  337. width: 620px;
  338. }
  339. html>body #advanced {
  340. text-align: center;
  341. position: relative;
  342. left: 50%;
  343. margin-left: -380px;
  344. }
  345. #jsAdvanced {
  346. text-align: right;
  347. }
  348. #nonJsForm {
  349. position: relative;
  350. text-align: left;
  351. margin-left: -370px;
  352. left: 50%;
  353. }
  354. #nonJsForm label {
  355. padding-top: 6px;
  356. padding-right: 5px;
  357. float: left;
  358. width: 100px;
  359. text-align: right;
  360. }
  361. .defbutton {
  362. font-weight: bold;
  363. }
  364. .zerosize {
  365. width: 0px;
  366. height: 0px;
  367. overflow: hidden;
  368. }
  369. #colorPickerDiv a, #colorPickerDiv a:hover {
  370. padding: 1px;
  371. text-decoration: none;
  372. border-bottom: 0px;
  373. }
  374. </style>
  375. <?php
  376. }
  377. function kubrick_theme_page() {
  378. if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated"><p><strong>'.__('Options saved.').'</strong></p></div>';
  379. ?>
  380. <div class='wrap'>
  381. <h2><?php _e('Customize Header'); ?></h2>
  382. <div id="kubrick-header">
  383. <div id="headwrap">
  384. <div id="header">
  385. <div id="headerimg">
  386. <h1><?php bloginfo('name'); ?></h1>
  387. <div class="description"><?php bloginfo('description'); ?></div>
  388. </div>
  389. </div>
  390. </div>
  391. <br />
  392. <div id="nonJsForm">
  393. <form method="post" action="">
  394. <?php wp_nonce_field('kubrick-header'); ?>
  395. <div class="zerosize"><input type="submit" name="defaultsubmit" value="<?php esc_attr_e('Save'); ?>" /></div>
  396. <label for="njfontcolor"><?php _e('Font Color:'); ?></label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo esc_attr(kubrick_header_color()); ?>" /> <?php printf(__('Any CSS color (%s or %s or %s)'), '<code>red</code>', '<code>#FF0000</code>', '<code>rgb(255, 0, 0)</code>'); ?><br />
  397. <label for="njuppercolor"><?php _e('Upper Color:'); ?></label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo esc_attr(kubrick_upper_color()); ?>" /> <?php printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br />
  398. <label for="njlowercolor"><?php _e('Lower Color:'); ?></label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo esc_attr(kubrick_lower_color()); ?>" /> <?php printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br />
  399. <input type="hidden" name="hi" id="hi" value="<?php echo esc_attr(kubrick_header_image()); ?>" />
  400. <input type="submit" name="toggledisplay" id="toggledisplay" value="<?php esc_attr_e('Toggle Text'); ?>" />
  401. <input type="submit" name="defaults" value="<?php esc_attr_e('Use Defaults'); ?>" />
  402. <input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;<?php esc_attr_e('Save'); ?>&nbsp;&nbsp;" />
  403. <input type="hidden" name="action" value="save" />
  404. <input type="hidden" name="njform" value="true" />
  405. </form>
  406. </div>
  407. <div id="jsForm">
  408. <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo esc_attr($_SERVER['REQUEST_URI']); ?>">
  409. <?php wp_nonce_field('kubrick-header'); ?>
  410. <input type="button" class="button-secondary" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php esc_attr_e('Font Color'); ?>"></input>
  411. <input type="button" class="button-secondary" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php esc_attr_e('Upper Color'); ?>"></input>
  412. <input type="button" class="button-secondary" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php esc_attr_e('Lower Color'); ?>"></input>
  413. <input type="button" class="button-secondary" name="revert" value="<?php esc_attr_e('Revert'); ?>" onclick="kRevert()" />
  414. <input type="button" class="button-secondary" value="<?php esc_attr_e('Advanced'); ?>" onclick="toggleAdvanced()" />
  415. <input type="hidden" name="action" value="save" />
  416. <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo esc_attr(kubrick_header_display()); ?>" />
  417. <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo esc_attr(kubrick_header_color()); ?>" />
  418. <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo esc_attr(kubrick_upper_color()); ?>" />
  419. <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo esc_attr(kubrick_lower_color()); ?>" />
  420. <input type="hidden" name="headerimage" id="headerimage" value="<?php echo esc_attr(kubrick_header_image()); ?>" />
  421. <p class="submit"><input type="submit" name="submitform" class="button-primary" value="<?php esc_attr_e('Update Header'); ?>" onclick="cp.hidePopup('prettyplease')" /></p>
  422. </form>
  423. <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
  424. <div id="advanced">
  425. <form id="jsAdvanced" style="display:none;" action="">
  426. <?php wp_nonce_field('kubrick-header'); ?>
  427. <label for="advfontcolor"><?php _e('Font Color (CSS):'); ?> </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo esc_attr(kubrick_header_color()); ?>" /><br />
  428. <label for="advuppercolor"><?php _e('Upper Color (HEX):');?> </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo esc_attr(kubrick_upper_color()); ?>" /><br />
  429. <label for="advlowercolor"><?php _e('Lower Color (HEX):'); ?> </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo esc_attr(kubrick_lower_color()); ?>" /><br />
  430. <input type="button" class="button-secondary" name="default" value="<?php esc_attr_e('Select Default Colors'); ?>" onclick="kDefaults()" /><br />
  431. <input type="button" class="button-secondary" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php esc_attr_e('Toggle Text Display'); ?>"></input><br />
  432. </form>
  433. </div>
  434. </div>
  435. </div>
  436. </div>
  437. <?php }
  438. /* Custom CSS styles on WYSIWYG Editor - Start
  439. ======================================= */
  440. if ( ! function_exists( 'myCustomTinyMCE') ) :
  441. function myCustomTinyMCE($init) {
  442. $init['theme_advanced_disable'] = 'outdent, indent, justifyleft, justifycenter, justifyright, justifyfull, bullist, numlist, outdent, indent, fontselect, fontsizeselect, forecolor, backcolor, forecolorpicker, backcolorpicker, formatselect'; // Removes the undesired buttons
  443. $init['theme_advanced_buttons1_add_before'] = 'styleselect'; // Adds the buttons at the begining. (theme_advanced_buttons2_add adds them at the end)
  444. $init['theme_advanced_styles'] = 'Big=b, Small=s, Mini=mini';
  445. $init['content_css'] = get_template_directory_uri().'/mycustomstyles.css';
  446. return $init;
  447. }
  448. endif;
  449. add_filter('tiny_mce_before_init', 'myCustomTinyMCE' );
  450. //add_filter( 'mce_css', 'tdav_css' );
  451. add_editor_style('mycustomstyles.css');
  452. // including the Custom CSS on our theme.
  453. function mycustomStyles(){
  454. wp_enqueue_style( 'myCustomStyles', get_bloginfo('stylesheet_directory').'/mycustomstyles.css', '','','all' ); /*adjust this path if you place "mycustomstyles.css" in a different folder than the theme's root.*/
  455. }
  456. add_action('init', 'mycustomStyles');
  457. /* Custom CSS styles on WYSIWYG Editor - End
  458. ======================================= */
  459. ?>