- https://github.com/VeryGoodOpenSource/very_good_cli (It will nicely genearate a project with all the basic setup, but with bloc state management, you can simply replace with any other state management library)
Riverpod or Bloc
Riverpod or Bloc
| if ( defined('CBXPHPSPREADSHEET_PLUGIN_NAME') && cbxphpspreadsheet_loadable() ) { | |
| //Include PHPExcel | |
| require_once( CBXPHPSPREADSHEET_ROOT_PATH . 'lib/vendor/autoload.php' ); //or use 'cbxphpspreadsheet_load();' | |
| //now take instance | |
| $objPHPExcel = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); | |
| //do whatever you need to do | |
| } |
| /** | |
| * A simple circular data structure | |
| */ | |
| function Circular(arr, startIntex){ | |
| this.arr = arr; | |
| this.currentIndex = startIntex || 0; | |
| } | |
| Circular.prototype.next = function(){ | |
| var i = this.currentIndex, arr = this.arr; |
| <nav class="navbar" data-toggle="sticky-onscroll"> | |
| <div class="container"> | |
| <div class="navbar-header"> | |
| <a class="navbar-brand" href="http://bootbites.com">BootBites.com</a> | |
| </div> | |
| </div> | |
| </nav> |
| <?php | |
| if ( ! function_exists( 'hippo_plugin_hook_info' ) ): | |
| function hippo_plugin_hook_info( $hook_name ) { | |
| global $wp_filter; | |
| $docs = array(); | |
| $template = "\t - %s Priority - %s.\n\tin file %s #%s\n\n"; | |
| echo '<pre>'; |
| jQuery(document).ready(function ($) { | |
| // Check if TinyMCE is active | |
| if (typeof tinyMCE != "undefined") { | |
| $('form').on('submit', function () { | |
| // Get content of active editor | |
| var editorContent = tinyMCE.activeEditor.getContent(); | |
| if ((editorContent === '' || editorContent === null)) { | |
| // Do stuff when TinyMCE is empty | |
| } |
| /** | |
| * Pure CSS, accessible like button (inspired by Medium) | |
| */ | |
| .like { | |
| position: absolute; | |
| clip: rect(0,0,0,0); | |
| } | |
| .like + label { |
| <?php | |
| /** | |
| * Font Awesome Icons Array (4.3.0) | |
| * @author Monzurul Haque | |
| * @author_uri https://github.com/farukham | |
| **/ | |
| $icons_arr = array( | |
| __("None", "fifothemes") => "none", | |
| __("Adjust", "fifothemes") => "fa-adjust", |