Skip to content

Commit

Permalink
autodeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
toktor committed Sep 22, 2016
0 parents commit 50a4bf0
Show file tree
Hide file tree
Showing 4 changed files with 544 additions and 0 deletions.
51 changes: 51 additions & 0 deletions acf-cl_simple_wysiwyg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

/*
Plugin Name: Advanced Custom Fields: CL Simple Wysiwyg
Description: Modified ACF Wysiwyg field to be used with ACF.
Version: 1.0.0
Author:
*/

// exit if accessed directly
if( ! defined( 'ABSPATH' ) ) exit;

// check if class already exists
if( !class_exists('acf_plugin_cl_simple_wysiwyg') ) :

class acf_plugin_cl_simple_wysiwyg {


function __construct() {

// vars
$this->settings = array(
'version' => '1.0.0',
'url' => plugin_dir_url( __FILE__ ),
'path' => plugin_dir_path( __FILE__ )
);

load_plugin_textdomain( 'acf-cl_simple_wysiwyg', false, plugin_basename( dirname( __FILE__ ) ) . '/lang' );

// include field
add_action('acf/include_field_types', array($this, 'include_field_types')); // v5
add_action('acf/register_fields', array($this, 'include_field_types')); // v4
}

function include_field_types( $version = false ) {

include_once('source/acf-cl_simple_wysiwyg-v5.php');

}

}

// initialize
new acf_plugin_cl_simple_wysiwyg();

// class_exists check
endif;



?>
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "codelight/acf-field-cl-simple-wysiwyg",
"keywords": ["wordpress", "plugin"],
"type": "wordpress-plugin",
"require": {
"composer/installers": "v1.0.7"
}
}
Loading

0 comments on commit 50a4bf0

Please sign in to comment.