C:\xampp\htdocs\landing\wp-content\plugins\penci-framework\inc\post-classes.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
if ( ! defined'ABSPATH' ) ) {
    exit;
}

if ( ! 
function_exists'penci_get_post_class' ) ) {
    function 
penci_get_post_class$class ''$post_id null ) {

        
$classes = array();

        if ( 
$class ) {
            if ( ! 
is_array$class ) ) {
                
$class preg_split'#\s+#'$class );
            }
            
$classes array_map'esc_attr'$class );
        } else {
            
// Ensure that we always coerce class to being an array.
            
$class = array();
        }

        if ( ! 
$post_id ) {
            return 
$classes;
        }

        
$classes[] = 'hentry';
        
$classes[] = 'penci-post-item';

        
$classes array_map'esc_attr'$classes );

        return 
array_unique$classes );
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586