Changeset 1845


Ignore:
Timestamp:
Feb 21, 2007, 1:20:02 AM (17 years ago)
Author:
rvelices
Message:

revert revision 1842 on default-colors.css (it messes with where backgrounds are transparent and/or inherited - see picture page for clear and dark theme!)
web services correction:

  • urls were not sent for method images.getInfo
  • uniformization: all element urls (tn_url, element_url, high_url) are xml attributes for all methods
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r1837 r1845  
    44// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    55// +-----------------------------------------------------------------------+
    6 // | branch        : BSF (Best So Far)
    76// | file          : $Id$
    87// | last update   : $Date$
     
    244243}
    245244
     245/**
     246 * returns an array of image attributes that are to be encoded as xml attributes
     247 * instead of xml elements
     248 */
     249function ws_std_get_image_xml_attributes()
     250{
     251  return array(
     252    'id','tn_url','element_url','high_url', 'file','width','height','hit'
     253    );
     254}
    246255
    247256/**
     
    395404          ),
    396405       WS_XML_CONTENT => new PwgNamedArray($images, 'image',
    397           array('id', 'tn_url', 'element_url', 'file','width','height','hit') )
     406          ws_std_get_image_xml_attributes() )
    398407      )
    399408    );
     
    439448  $query = '
    440449SELECT id, name, uppercats, global_rank,
    441     max_date_last, count_images AS nb_images, count_categories AS nb_categories
     450    nb_images, count_images AS total_nb_images,
     451    date_last, max_date_last, count_categories AS nb_categories
    442452  FROM '.CATEGORIES_TABLE.'
    443453   INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' ON id=cat_id
     
    458468          )
    459469      );
    460     foreach( array('id','nb_images','nb_categories') as $key)
     470    foreach( array('id','nb_images','total_nb_images','nb_categories') as $key)
    461471    {
    462472      $row[$key] = (int)$row[$key];
     
    468478      'categories' =>
    469479          new PwgNamedArray($cats,'category',
    470             array('id','url','nb_images','nb_categories','max_date_last')
     480            array('id','url','nb_images','total_nb_images','nb_categories','date_last','max_date_last')
    471481          )
    472482    );
     
    502512    return new PwgError(999, "image_id not found");
    503513  }
    504   array_merge( $image_row, ws_std_get_urls($image_row) );
     514  $image_row = array_merge( $image_row, ws_std_get_urls($image_row) );
    505515
    506516  //-------------------------------------------------------- related categories
     
    601611  unset($ret['path']);
    602612  unset($ret['storage_category_id']);
     613
    603614  return new PwgNamedStruct('image',$ret, null, array('name','comment') );
    604615}
     
    712723          ),
    713724       WS_XML_CONTENT => new PwgNamedArray($images, 'image',
    714           array('id', 'tn_url', 'element_url', 'file','width','height','hit') )
     725          ws_std_get_image_xml_attributes() )
    715726      )
    716727    );
     
    946957          ),
    947958       WS_XML_CONTENT => new PwgNamedArray($images, 'image',
    948           array('id', 'tn_url', 'element_url', 'file','width','height','hit') )
     959          ws_std_get_image_xml_attributes() )
    949960      )
    950961    );
  • trunk/template/yoga/default-colors.css

    r1842 r1845  
    11/* $Id$ */
    2 #content, #menubar, #thePicturePage #the_page { background-color: #eef; }
     2
    33/* others */
    44.pleaseNote {
Note: See TracChangeset for help on using the changeset viewer.