- Timestamp:
- 02/06/12 21:41:25 (4 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
get_rss_feed.php (modified) (2 diffs)
-
inc/classes/BxDolPageQuery.php (modified) (1 diff)
-
templates/base/css/common.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/get_rss_feed.php
r15338 r15950 1 1 <?php 2 2 /** 3 * @package Dolphin Core 4 * @copyright Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ 5 * @license CC-BY - http://creativecommons.org/licenses/by/3.0/ 3 * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ 4 * CC-BY License - http://creativecommons.org/licenses/by/3.0/ 5 * 6 * @defgroup DolphinCore Dolphin Core 7 * @{ 6 8 */ 7 9 8 10 require_once('./inc/header.inc.php'); 9 11 10 $mixed ID= bx_process_input(bx_get('ID'));12 $mixedBlockId = bx_process_input(bx_get('ID')); 11 13 12 14 $aPredefinedRssFeeds = array ( 13 15 'boonex_news' => 'http://www.boonex.com/unity/blog/featured_posts/?rss=1', 14 'boonex_version' => 'http://rss.boonex.com/',15 'boonex_unity_market' => 'http://www.boonex.com/unity/extensions/latest/?rss=1',16 'boonex_unity_lang_files' => 'http://www.boonex.com/unity/extensions/tag/translations&rss=1',16 'boonex_version' => 'http://rss.boonex.com/', 17 'boonex_unity_market' => 'http://www.boonex.com/unity/extensions/latest/?rss=1', 18 'boonex_unity_lang_files' => 'http://www.boonex.com/unity/extensions/tag/translations&rss=1', 17 19 'boonex_unity_market_templates' => 'http://www.boonex.com/unity/extensions/tag/templates&rss=1', 18 'boonex_unity_market_featured' => 'http://www.boonex.com/unity/extensions/featured_posts?rss=1', 20 'boonex_unity_market_featured' => 'http://www.boonex.com/unity/extensions/featured_posts?rss=1', 19 21 ); 20 22 21 if (isset($aPredefinedRssFeeds[$mixed ID])) {23 if (isset($aPredefinedRssFeeds[$mixedBlockId])) { 22 24 23 $sCont = $aPredefinedRssFeeds[$mixed ID];25 $sCont = $aPredefinedRssFeeds[$mixedBlockId]; 24 26 25 27 } else { 26 28 27 $oDb = BxDolDb::getInstance();28 $ sQuery = $oDb->prepare("SELECT `Content` FROM `sys_page_compose` WHERE `ID` = ?", (int)$mixedID);29 $sCont = $o Db->getOne($sQuery);29 bx_import('BxDolPageQuery'); 30 $oPageQuery = new BxDolPageQuery(array()); 31 $sCont = $oPageQuery->getPageBlockContent($mixedBlockId); 30 32 31 if ( !$sCont)33 if (!$sCont) 32 34 exit; 33 35 } 34 36 35 list( $sUrl) = explode( '#', $sCont );36 $sUrl = str_replace( '{SiteUrl}', BX_DOL_URL_ROOT, $sUrl);37 list($sUrl) = explode( '#', $sCont ); 38 $sUrl = str_replace('{SiteUrl}', BX_DOL_URL_ROOT, $sUrl); 37 39 38 40 $iMemID = bx_process_input(bx_get('member'), BX_DATA_INT); 39 if ( $iMemID) {41 if ($iMemID) { 40 42 $aMember = getProfileInfo( $iMemID ); 41 43 $sUrl = str_replace( '{NickName}', $aMember['NickName'], $sUrl ); … … 43 45 44 46 header('Content-Type: text/xml; charset=utf-8'); 45 echo bx_file_get_contents( $sUrl . (BX_PROFILER && 0 == strncmp(BX_DOL_URL_ROOT, $sUrl, strlen(BX_DOL_URL_ROOT))? '&bx_profiler_disable=1' : '') ); 47 echo bx_file_get_contents($sUrl . (BX_PROFILER && 0 == strncmp(BX_DOL_URL_ROOT, $sUrl, strlen(BX_DOL_URL_ROOT)) ? '&bx_profiler_disable=1' : '')); 48 49 /** @} */ -
trunk/inc/classes/BxDolPageQuery.php
r15864 r15950 42 42 } 43 43 44 public function getPageBlockContent($iId) { 45 $sQuery = $this->prepare("SELECT `content` FROM `sys_pages_blocks` WHERE `id` = ?", $iId); 46 return $this->getOne($sQuery); 47 } 48 44 49 } 45 50 -
trunk/templates/base/css/common.css
r15942 r15950 31 31 } 32 32 33 .bx-db-header { 33 .bx-popup .bx-db-header { 34 color: #ffffff; 35 text-shadow: #000 0px 1px 2px; 36 37 border-bottom: 1px solid #383d66; 38 /*border-top: 1px solid #666;*/ 39 40 background-image: url(../images/bg-toolbar.png); 41 background-repeat: repeat-x; 42 background-color:#0764a7; 43 /* 44 -moz-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.8); 45 -webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.8); 46 box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.8); 47 */ 34 48 } 35 49
Note: See TracChangeset
for help on using the changeset viewer.