var theTitle = "Take Action: TrueMajority.org"; var theFBshare = "We started TrueMajority in order to compound the power of all those who believe in social justice, giving children a decent start in life, protecting the environment, and America working in cooperation with the world community."; var tracking_code = salsa.getParameter("code"); if(tracking_code == "") tracking_code = 'none'; //this gets some parameters from the URL function getFbshare($path){ var redirect=$path; newred = redirect.split("tell_a_friend_KEY="); var tafkey = newred[1]; var taf=salsa.getObject("tell_a_friend",tafkey); if(taf.PT_facebook_share != null) theFBshare = taf.PT_facebook_share; } function getTitle(){ var where = Request.getURI() ; var match = /[a-zA-Z0-9\-]+$/i.exec(where); if(match != null) { var shorturl = /[a-zA-Z0-9\-]+$/i.exec(where); var orderBy = 'Last_Modified DESC'; var conditions = [ new Condition('slug', 'IN', shorturl)]; var items = db.getObjects('publish', conditions, orderBy); for each (item in items) { var table = db.getObject('database_table', item.database_table_KEY); var ref = db.getObject(table.table_name, item.table_KEY); getFbshare(ref.redirect_path); if(table.table_name == 'donate_page'){ theTitle=ref.Reference_Name; print(ref.Reference_Name); } else { theTitle=ref.Title; print(ref.Title); } } } else { var lists =Request.getParameterList(); for each (list in lists) { var holdlist = list.value; var orderBy = 'Last_Modified DESC'; var conditions = [ new Condition('table_KEY', '=', list.value) ]; var items2 = db.getObjects('publish', conditions, orderBy,1); for each (item2 in items2) { var table = db.getObject('database_table', item2.database_table_KEY); var ref = db.getObject(table.table_name, holdlist); getFbshare(ref.redirect_path); if(table.table_name == 'donate_page'){ theTitle=ref.Reference_Name; print(ref.Reference_Name); } else { theTitle=ref.Title; print(ref.Title); } } } } } ?>
|
|
||||||||||
|
||||||||||
|
TrueMajority is a project of USAction, a 501(c)(4) organization under the IRS tax TrueMajority.org / USAction, 1825 K St. NW, Suite 210, Washington, DC 20006 (802) 735-9110 |