Plugin Directory

Changeset 818730


Ignore:
Timestamp:
12/11/2013 08:20:07 AM (12 years ago)
Author:
pskli
Message:

Adding custom CSS to WIP single projects.

Location:
projector
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • projector

    • Property svn:ignore set to
      *.idea
      *.rb
  • projector/trunk/classes/class-msk-projector.php

    r818713 r818730  
    1919        add_action( 'init', array( $this, 'load_localisation' ), 0 );
    2020
    21         // Custom CSS in admin
     21        // Load CSS on front-end
     22        add_action( 'wp_enqueue_scripts', array( $this, 'front_custom_css' ) );
     23
     24        // Load CSS on back-end
    2225        add_action( 'admin_enqueue_scripts', array( $this, 'admin_custom_css' ) );
    2326
     
    2528        add_filter( 'template_include', array( $this, 'load_wip_template' ) );
    2629
    27         add_action('msk_projector_before_outside_content', 'msk_projector_html_opening_container');
    28         add_action('msk_projector_after_outside_content', 'msk_projector_html_closing_container');
     30        add_action( 'msk_projector_before_outside_content', 'msk_projector_html_opening_container');
     31        add_action( 'msk_projector_after_outside_content', 'msk_projector_html_closing_container');
    2932    }
    3033
     
    6265    }
    6366
     67
    6468    /**
    65      * Load custom CSS on admin pages
     69     * Load custom CSS on front-end
     70     */
     71    public function front_custom_css() {
     72        wp_enqueue_style('msk-projector', MSK_PROJECTOR_URL . 'assets/css/style.css', false, null);
     73    }
     74
     75
     76    /**
     77     * Load single-msk_wip.php plugin or theme template file
    6678     */
    6779    public function load_wip_template( $tpl ) {
  • projector/trunk/msk-projector-filters.php

    r818713 r818730  
    4444 */
    4545function msk_projector_wip_item_title($title, $item) {
    46     return '<h3>' . $title . '</h3>';
     46    return '<h5>' . $title . '</h5>';
    4747}
    4848add_filter('msk_projector_wip_item_title', 'msk_projector_wip_item_title', 10, 2);
Note: See TracChangeset for help on using the changeset viewer.