wordpress/wp-content/plugins/kt-tinymce-color-grid/index.php
/**
         * Render TinyMCE palette color map
         * @since 1.8
         * @return array
         */
Render TinyMCE palette color map
@since 1.8
@return array
Render TinyMCE palette color map @since 1 . 8 @return array
protected function render_palette() {
            $_palette = $this->get_palette(array(
                'status' => self::COLOR_ACTIVE,
            ));
            $_palette[] = array(
                'color' => 'reset',
                'status' => self::COLOR_ACTIVE,
            );
            list($palette, $rows, $columns) = $this->chunk_palette($_palette);
            $map = array();
            for ($row = 0; $row < $rows; $row++) {
                $this->add_row_to_map($map, $palette, $row);
            }
            return compact('map', 'rows', 'columns');
        }
protected function render_palette ( ) { $ _palette = $ this -> get_palette ( array ( 'status' => self :: COLOR_ACTIVE , ) ) ; $ _palette [ ] = array ( 'color' => 'reset' , 'status' => self :: COLOR_ACTIVE , ) ; list ( $ palette , $ rows , $ columns ) = $ this -> chunk_palette ( $ _palette ) ; $ map = array ( ) ; for ( $ row = 0 ; $ row < $ rows ; $ row ++ ) { $ this -> add_row_to_map ( $ map , $ palette , $ row ) ; } return compact ( 'map' , 'rows' , 'columns' ) ; }
Render TinyMCE palette color map
 @since 1.8
 @return array
Render TinyMCE palette color map @since 1 . 8 @return array