This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="feedback"> | |
<div id="feedback-widget" style="z-index:300;display:none;"> | |
<a class="handle" style="border-left:1px solid #ddd;border-top:1px solid #ddd;border-bottom:1px solid #ddd;" href="#">Feedback</a> | |
<div id="feedback-frame" style="display:none;"> | |
</div> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class FutureTest { | |
@future | |
public static void createAccountFuture() { | |
Account a = new Account(Name='Test Account'); | |
//User with the standard Read Only profile should not be able to insert an account | |
insert a; | |
} | |
///////////////TESTS//////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//constructor | |
public PubHomeController() { | |
pub = [SELECT id FROM Network WHERE Name LIKE '%Power of Us%']; | |
} | |
public class Topic { | |
public String createdDate { get; private set; } | |
public String id { get; private set; } | |
public String description { get; private set; } | |
public Integer talkingAbout { get; private set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:component allowDML="true" controller="PUB_TOUController"> | |
<apex:includeScript value="{!URLFOR($Resource.pubstyles, 'js/bootstrap-scroll-modal.js')}" /> | |
<apex:styleSheet value="{!URLFOR($Resource.pubstyles, 'css/bootstrap-scroll-modal.css')}" /> | |
<style> | |
.bootstrap .modal-backdrop, .bootstrap .modal-backdrop.fade.in { | |
opacity:1; | |
} | |
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="PUBQandARSSController" contentType="text/xml" showHeader="false" sidebar="false" cache="false"><?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0"> | |
<channel> | |
<title>Power of Us Hub Questions Feed</title> | |
<description>These are the 50 most recently asked questions on the Power of Us Hub</description> | |
<link>http://powerofus.salesforcefoundation.org</link> | |
<apex:repeat value="{!questions}" var="q"> | |
<item> | |
<title>{!q.title}</title> | |
<description>{!q.description}</description> |