Changeset 3366:1627515406c9
- Timestamp:
- 10/26/16 16:19:15 (9 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r3259 r3366 1267 1267 type CDATA #IMPLIED -- post has a given type (default: "post") 1268 1268 category CDATA #IMPLIED -- post has a given category 1269 categories CDATA #IMPLIED -- post has a one of given categories 1269 1270 first (0|1) #IMPLIED -- post is the first post from list (value : 1) or not (value : 0) 1270 1271 odd (0|1) #IMPLIED -- post is in an odd position (value : 1) or not (value : 0) … … 1317 1318 } 1318 1319 1320 if (isset($attr['categories'])) { 1321 $categories = explode(',',addslashes(trim($attr['categories']))); 1322 if (is_array($categories) && count($categories)) { 1323 foreach ($categories as $category) { 1324 if (substr($category,0,1) == '!') { 1325 $category = substr($category,1); 1326 $if[] = '($_ctx->posts->cat_url != "'.$category.'")'; 1327 } else { 1328 $if[] = '($_ctx->posts->cat_url == "'.$category.'")'; 1329 } 1330 } 1331 } 1332 } 1333 1319 1334 if (isset($attr['first'])) { 1320 1335 $sign = (boolean) $attr['first'] ? '=' : '!';
Note: See TracChangeset
for help on using the changeset viewer.