css

Filtered out by css filter

  1. $filtered       Array [2]       array   
  2.         values  Array [44]      array   
  3.                 [0...31]        array   
  4.                         #panels-dnd-main        Array [1]       array   
  5.                                 0       0.5em 0 string 
  6.                         div.panels-display      Array [3]       array   

CSS Filter

  1. function filter_css($css, $allowed_properties = array(
  2.    'azimuth',
  3.    'background',
  4.    'background-color',
  5.    'background-image',
  6.    'background-repeat',
  7.    'background-attachment',

CSS Assembler and Compressor

  1. function assemble_css($css) {
  2.   // Initialize the output.
  3.   $output = '';
  4.   // Iterate through all the statements
  5.   foreach ($css as $statement) {
  6.     // Add the keys.

CSS Disassembler

  1. <?php
  2.  
  3. function dissasemble_css($css) {
  4.   // Formatted statements.
  5.   $formatted_statements = array();
  6.   // Remove comments.
  7.   $css = preg_replace("/\/\*(.*)?\*\//Usi", "", $css);

Adding CSS

  1. // in my template.php
  2. $theme_path = path_to_theme();
  3.  
  4. // Add javascript and stylesheets here.
  5. drupal_add_css($theme_path .'/css/mystyles.css', 'theme', 'all');

Fix for css file

  1. div.admin-panel {
  2.   margin: 0;
  3.   padding: 5px 5px 15px 5px;
  4. }
  5.  
  6. div.admin-panel .description {
  7.   margin: 0 0 3px;
  8.   padding: 2px 0 3px 0;
  9. }
  10.  
  11. div.admin-panel .body {

list css

  1. .view-news ul, .view-news .view-content .item-list ul li {
  2. list-style-image:none;
  3. list-style-position:outside;
  4. list-style-type:none;
  5. }

codigo css

  1. .menu ul li
  2. {
  3. list-style: none;  
  4. list-style-image: none;
  5. }

CSS wildcard mechanism

  1. function _phptemplate_page($vars, $suggestions) {
  2.   // CSS Files
  3.   $css = array(
  4.     'admin/*' => 'admin',
  5.     'node/add/portfolio-entry' => 'add-portfolio',
  6.   );
  7.   $newcss = array();

Fix for adding a view name class to page.tpl.php

  1. // in template.php
  2. function _phptemplate_variables($hook, $vars) {
  3.         switch ($hook) {
  4.        
  5.         case 'page':
  6.                 foreach (views_get_all_urls() as $key => $value) {
  7.                         if($_GET['q'] == $value) {
Syndicate content