public/wordpress/wp-content/plugins/h5p/admin/class-h5p-content-admin.php
/**
   * Adds scripts and settings for allowing selection of H5P contents when
   * inserting into pages, posts etc.
   *
   * @since 1.2.0
   */
Adds scripts and settings for allowing selection of H5P contents when
inserting into pages, posts etc.


Adds scripts and settings for allowing selection of H5P contents when inserting into pages posts etc .
public function print_insert_content_scripts() {
    if (!$this->insertButton) {
      return;
    }
    $plugin_admin = H5P_Plugin_Admin::get_instance();
    $plugin_admin->print_data_view_settings(
      'h5p-insert-content',
      admin_url('admin-ajax.php?action=h5p_insert_content'),
      array(
        (object) array(
          'text' => __('Title', $this->plugin_slug),
          'sortable' => TRUE
        ),
        (object) array(
          'text' => __('Content type', $this->plugin_slug),
          'sortable' => TRUE,
          'facet' => TRUE
        ),
        (object) array(
          'text' => __('Tags', $this->plugin_slug),
          'sortable' => FALSE,
          'facet' => TRUE
        ),
        (object) array(
          'text' => __('Last modified', $this->plugin_slug),
          'sortable' => TRUE
        ),
        (object) array(
          'class' => 'h5p-insert-link'
        )
      ),
      array(true),
      __("No H5P content available. You must upload or create new content.", $this->plugin_slug),
      (object) array(
        'by' => 3,
        'dir' => 0
      )
    );
  }
public function print_insert_content_scripts ( ) { if ( ! $ this -> insertButton ) { return ; } $ plugin_admin = H5P_Plugin_Admin :: get_instance ( ) ; $ plugin_admin -> print_data_view_settings ( 'h5p-insert-content' , admin_url ( 'admin-ajax.php?action=h5p_insert_content' ) , array ( ( object ) array ( 'text' => __ ( 'Title' , $ this -> plugin_slug ) , 'sortable' => TRUE ) , ( object ) array ( 'text' => __ ( 'Content type' , $ this -> plugin_slug ) , 'sortable' => TRUE , 'facet' => TRUE ) , ( object ) array ( 'text' => __ ( 'Tags' , $ this -> plugin_slug ) , 'sortable' => FALSE , 'facet' => TRUE ) , ( object ) array ( 'text' => __ ( 'Last modified' , $ this -> plugin_slug ) , 'sortable' => TRUE ) , ( object ) array ( 'class' => 'h5p-insert-link' ) ) , array ( true ) , __ ( " No H5P content available. You must upload or create new content. " , $ this -> plugin_slug ) , ( object ) array ( 'by' => 3 , 'dir' => 0 ) ) ; }
Adds scripts and settings for allowing selection of H5P contents when
 inserting into pages, posts etc.
Adds scripts and settings for allowing selection of H5P contents when inserting into pages posts etc .