Plugin Directory

Changeset 1870738


Ignore:
Timestamp:
05/08/2018 12:24:34 PM (8 years ago)
Author:
omsuhani
Message:

stylish sitemap add css and image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sitemap-with-woocommerce/trunk/index.php

    r1835910 r1870738  
    1313
    1414//Display Posts in Sitemap
     15if ( !function_exists('pagelist_sbwpes_add_stylesheet') ) {
     16    function pagelist_sbwpes_add_stylesheet() {
     17        wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '4.2', 'all' );
     18    }
     19    add_action('wp_print_styles', 'pagelist_sbwpes_add_stylesheet');
     20}
     21
    1522function sbwpes_sitemap_post() { ?>
    1623    <h2><?php _e('Posts', 'easy-sitemap' ); ?>:</h2>
    17                 <ul>
     24                <ul class="sitemap">
    1825                <?php
    1926                //http://codex.wordpress.org/Function_Reference/get_categories
     
    5562function sbwpes_sitemap_page() { ?>
    5663        <h2><?php _e('Pages', 'easy-sitemap' ); ?>:</h2>
    57             <ul class="sitemap-pages">
     64            <ul class="sitemap">
    5865            <?php
    5966            //http://codex.wordpress.org/Function_Reference/wp_list_pages
     
    6875function sbwpes_sitemap_product() { ?>
    6976    <h2><?php _e('Products', 'easy-sitemap' ); ?>:</h2>
    70         <ul>
     77        <ul class="sitemap">
    7178        <?php $loop = new WP_Query( array(
    7279            'post_type' => 'product',
     
    99106$count = count($product_categories);?>
    100107<h2><?php _e('Category', 'easy-sitemap' ); ?>:</h2>
    101 <ul>
     108<ul class="sitemap">
    102109<?php if ( $count > 0 ){
    103110    foreach ( $product_categories as $product_category ) {
     
    118125        );
    119126        $products = new WP_Query( $args );
    120         echo "<ul>";
     127        echo "<ul class="sitemap">";
    121128        while ( $products->have_posts() ) {
    122129            $products->the_post();
     
    142149
    143150   <!-- <h2><?php _e('Products', 'easy-sitemap' ); ?>:</h2>
    144         <ul>
     151        <ul class="sitemap">
    145152        <?php $loop = new WP_Query( array(
    146153            'post_type' => 'product',
Note: See TracChangeset for help on using the changeset viewer.