Plugin Directory

Changeset 2441093


Ignore:
Timestamp:
12/16/2020 10:20:18 PM (5 years ago)
Author:
tommasomeli
Message:

Update 1.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • global-custom-fields/tags/1.2/assets/functions.php

    r2315767 r2441093  
    11<?php
    22
    3 if (!defined('ABSPATH')) { exit; }
     3if (!defined('ABSPATH')) {
     4    exit;
     5}
    46
    57require_once GCF_PLUGIN_DIR . "views/Options.php";
     
    2022
    2123// Codemirror
    22 function codemirror_enqueue_scripts($hook) {
    23   $cm_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'text/css'));
    24   wp_localize_script('jquery', 'cm_settings', $cm_settings);
    25   wp_enqueue_script('wp-theme-plugin-editor');
    26   wp_enqueue_style('wp-codemirror');
     24function codemirror_enqueue_scripts($hook)
     25{
     26    $cm_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'text/css'));
     27    wp_localize_script('jquery', 'cm_settings', $cm_settings);
     28    // wp_enqueue_script('wp-theme-plugin-editor');
     29    wp_enqueue_style('wp-codemirror');
    2730}
    2831
     
    3639}
    3740
    38 function gcf_eval(&$field){
     41function gcf_eval(&$field)
     42{
    3943    return gcf_Options::gcf_eval($field);
    4044}
     
    4852        'eval' => false
    4953    ), $attrs));
    50     if(!$group || !$field) return $html;
     54    if (!$group || !$field) return $html;
    5155    $html .= get_gcf($group, $field, $eval);
    5256    return $html;
Note: See TracChangeset for help on using the changeset viewer.