git submodule add https://[email protected]/chok/sfAdsensePlugin.git plugins/sfAdsensePlugin
OR:
git clone https://[email protected]/chok/sfAdsensePlugin.git plugins/sfAdsensePlugin
/config/ProjectConfiguration.class.php:
public function setup() { ... $this->enablePlugins('sfAdsensePlugin'); ... }
/apps/*/config/settings.yml:
all: .settings: ... standard_helpers: - ... - sfAdsense
Or in a template:
<?php use_helper('sfAdsense') ?>
*/config/app.yml:
all: adsense: adv_1: client: ca-pub-xxx slot: xxx width: 120 height: 600 adv_2: client: ca-pub-xxx slot: xxx width: 120 height: 240
In a template:
<?php include_adsense_block('adv_1') ?>