natehawkes

Untitled

May 16th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.15 KB | None | 0 0
  1. function custom_list( $lists ) {
  2.     $fil = "Dump";
  3.     $new_lists = array(
  4.         'ddl-list-block' => array(
  5.             'name'      => __( 'Download Block', 'delightful-downloads' ),
  6.             'format'    => "
  7.              <article class=\"ddl-list-block ddl-list-item\" id=\"ddl-%id%\">
  8.            
  9.            <div class=\"download-wrap\" style=\"background-image: url('fi');\">
  10.              <div class=\"download-item\">
  11.                <div class=\"download-details\">
  12.                  <h2>%title%</h2>
  13.                  ".$fil."
  14.                  <div class=\"download-meta\">
  15.                    <div class=\"download-meta-data\"></div>
  16.                    <a href=\"%url%\" class=\"download-link\">Download</a>
  17.                  </div>
  18.                </div>
  19.              </div>
  20.            </div>
  21.          </article>
  22.            "
  23.         ),
  24.         'ddl-list-plain' => array(
  25.             'name'      => 'Plain List',
  26.             'format'    => '<i class="fa fa-download"></i><a href="%url%" title="%title%" rel="nofollow">%title% - %date%</a>'
  27.         )
  28.     );
  29.  
  30.     return $new_lists;
  31. }
  32. add_filter( 'dedo_get_lists', 'custom_list' );
Advertisement
Add Comment
Please, Sign In to add comment