Skip to content

Instantly share code, notes, and snippets.

<?php
$_LW->REGISTERED_APPS['public_notifier']=array(
'title'=>'PublicNotifier',
'handlers' => array('onAfterPublicSubmission')
);
class LiveWhaleApplicationPublicNotifier {
// These two arrays are for including the users and/or groups that
<?php
// PHP functionality for a redundant checkbox above the group suggest selector box, providing a shortcut for users to suggest to a specific chosen group (like the homepage or main communications team).
$_LW->REGISTERED_APPS['suggest_to']=array(
'title'=>'suggest_to',
'handlers'=>array('onLoad','onOutput'),
'custom'=>array(
'label'=>'Suggest to main calendar' // Customize checkbox label as appropriate
// JS functionality for a redundant checkbox above the group suggest selector box, providing a checkbox for users to select to a specific chosen group (like the homepage or main communications team).
(function($, LW) {
// Make adjustments below to match the group id and group name
// to the calendar group you want to use for this feature.
var group_id = '8';
var group_name = 'Homepage';
if (LW.page === 'events_edit' || LW.page === 'events_sub_edit' || LW.page === 'news_edit') { // define pages to target with this transformation
<?php
$_LW->REGISTERED_APPS['resize_summary'] = array(
'title' => 'Resize Summary',
'handlers' => array('onOutputRSS'),
'custom' => array(
'always_truncate'=>false, // always truncate, or require /truncate/1?
'fields_to_shorten'=>array( // fields to shorten, and the maximum number of words for that field
'description'=>30
)
)
@loulou2u
loulou2u / pom.xml
Last active August 7, 2016 19:17
Selenium basic maven pom.ml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.loulou2u</groupId>
<artifactId>testsuite</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Selenium Testsuite</name>
<description>A selenium test setup with a collection of tests using Selenium Webdriver 3.0.0-beta release.</description>
<!-- properties -->
<properties>