PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/admin/dsp_settingsEditor.cfm

http://github.com/blueriver/MuraFBConnect
ColdFusion | 42 lines | 21 code | 6 blank | 15 comment | 0 complexity | 70125560eca4e01e9c07c26cadb8a4d6 MD5 | raw file
 1<!---
 2   Copyright 2011 Blue River Interactive
 3
 4   Licensed under the Apache License, Version 2.0 (the "License");
 5   you may not use this file except in compliance with the License.
 6   You may obtain a copy of the License at
 7
 8       http://www.apache.org/licenses/LICENSE-2.0
 9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15--->
16<cfsilent>
17	<cfset $.loadJSLib() />
18	<cfset pluginConfig.addToHTMLHeadQueue('admin/htmlHeadQueueItems/qi_admin_js.cfm') />
19	
20	<cfset settings = application[pluginConfig.getPackage()].settingsService.getSiteSettings(session.siteid) />
21	
22	<cfset client_id = settings.facebook.client_id />
23	<cfif pluginConfig.getSetting('client_id') EQ client_id>
24		<cfset client_id = "" />
25	</cfif>
26</cfsilent>
27
28<cfoutput>
29	<span id="btnSave" class="btn">Save</span>
30	
31	<h3 class="separate">Facebook Settings</h3>
32	<form action="" method="post" onsubmit="javascript:;">
33		
34		<ul>
35			<li>
36				<label for="client_id">Client ID</label>
37				<input type="text" class="text" name="client_id" id="client_id" value="#client_id#" />
38			</li>
39		</ul>
40		
41	</form>
42</cfoutput>