Ignore:
Timestamp:
06/28/10 17:10:50 (23 months ago)
Author:
mattlevine
Message:
  1. Adding the ability to have theme local contentRenderer.cfc files.
  2. Adding the mura scope as an init argument to contentRenderer.cfc
  3. Adding hasParent() to beans that have path attribute.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/requirements/mura/settings/settingsBean.cfc

    r2336 r2440  
    115115<cfset variables.instance.theme=""/>  
    116116<cfset variables.instance.contentRenderer=""/> 
     117<cfset variables.instance.themeRenderer=""> 
    117118 
    118119<cffunction name="init" returntype="any" output="false" access="public"> 
     
    11761177</cffunction> 
    11771178 
     1179<cffunction name="getThemeRenderer" output="false"> 
     1180<cfif not isObject(variables.instance.themeRenderer)> 
     1181        <cfif fileExists(expandPath(getThemeIncludePath()) & "/contentRenderer.cfc")> 
     1182                <cfset variables.instance.themeRenderer=createObject("component","#getThemeAssetMap()#.contentRenderer")> 
     1183        <cfelse> 
     1184                <cfset variables.instance.themeRenderer=createObject("component","mura.cfobject").init()> 
     1185        </cfif> 
     1186</cfif> 
     1187<cfreturn variables.instance.themeRenderer> 
     1188</cffunction> 
     1189 
    11781190</cfcomponent> 
Note: See TracChangeset for help on using the changeset viewer.