예제 #1
0
 public function install()
 {
     $pkg = parent::install();
     $theme = PageTheme::add('nukiuchi_theme', $pkg);
     $page = Single::add('/blog', $pkg);
     $page->setTheme($theme);
 }
 public function install()
 {
     // Get the package object
     $this->pkg = parent::install();
     // Installing
     $this->installOrUpgrade();
 }
예제 #3
0
 public function install()
 {
     if (!extension_loaded('newrelic')) {
         throw new \Exception(t('The newrelic php extension must be installed as a prerequisite. See %sHow to Setup%s', '<a href="http://www.concrete5.org/marketplace/addons/new-relic-apm/how-to-setup/">', '</a>'));
     }
     parent::install();
 }
예제 #4
0
 public function install()
 {
     $pkg = parent::install();
     $bt = BlockType::getByHandle('text_list');
     if (!is_object($bt)) {
         $bt = BlockType::installBlockType('text_list', $pkg);
     }
 }
예제 #5
0
 public function install()
 {
     $fs = new Filesystem();
     if (!$fs->exists(__DIR__ . '/vendor/autoload.php')) {
         throw new Exception(t("You need to install the composer packages for this add-on before installation!"));
     }
     $pkg = parent::install();
 }
예제 #6
0
 public function install()
 {
     $pkg = parent::install();
     $bt = BlockType::getByHandle('login_dialog');
     if (!is_object($bt)) {
         $bt = BlockType::installBlockType('login_dialog', $pkg);
     }
 }
예제 #7
0
 public function install()
 {
     $pkg = parent::install();
     \Loader::model('attribute/categories/collection');
     $col = AttributeKeyCategory::getByHandle('collection');
     $at = AttributeType::add('icon_selector', t('Icon Selector'), $pkg);
     $col->associateAttributeKeyType($at);
 }
예제 #8
0
 public function install()
 {
     $pkg = parent::install();
     $bt = BlockType::installBlockType('code_snippet', $pkg);
     $btSet = BlockTypeSet::getByHandle('basic');
     if (is_object($bt) && is_object($btSet)) {
         $btSet->addBlockType($bt);
     }
 }
예제 #9
0
 public function install()
 {
     $pkg = parent::install();
     \Loader::model('attribute/categories/collection');
     $col = AttributeKeyCategory::getByHandle('collection');
     //Install attribute and attach to the Colletion Category
     $gallery = AttributeType::add('mixed_gallery', t('Mixed Gallery'), $pkg);
     $col->associateAttributeKeyType($gallery);
 }
예제 #10
0
 public function install()
 {
     $pkg = parent::install();
     //BlockType::installBlockTypeFromPackage('Mailer', $pkg);
     Job::installByPackage('process_xmailer', $pkg);
     SinglePage::add('/dashboard/xmailer', $pkg);
     SinglePage::add('/dashboard/xmailer/mailboxes', $pkg);
     SinglePage::add('/dashboard/xmailer/mailboxes/user', $pkg);
     SinglePage::add('/dashboard/xmailer/mailboxes/group', $pkg);
     SinglePage::add('/dashboard/xmailer/settings', $pkg);
 }
예제 #11
0
 public function install()
 {
     $pkg = parent::install();
     Loader::model('single_page');
     //Install confirmation page
     $confirm_page = SinglePage::add('/confirm_newsletter_signup', $pkg);
     $confirm_page->setAttribute('exclude_nav', 1);
     $signup_page = SinglePage::add('/newsletter_signup', $pkg);
     $signup_page->setAttribute('exclude_nav', 1);
     //Install dasboard report page
     SinglePage::add('/dashboard/reports/newsletter_emails', $pkg);
 }
예제 #12
0
 public function install($data = array())
 {
     $pkg = parent::install();
     // Set Theme
     // check for active themes
     $active_theme = PageTheme::getSiteTheme();
     // strcmp($active_theme->getThemeHandle(), $themeHandle) == 0
     if (is_object($active_theme) && $active_theme->getThemeHandle() !== 'elemental') {
         // Theme::setThemeHandle($themeHandle);
         // $pt = PageTheme::getByID($pThemeID);
         $pt = PageTheme::getByHandle('elemental');
         $pt->applyToSite();
     }
 }
 public function install()
 {
     $pkg = parent::install();
     //Add dashboard page
     $sp = SinglePage::add('/dashboard/open_graph_tags_lite', $pkg);
     if (is_object($sp)) {
         $sp->update(array('cName' => t('Open Graph Tags Lite'), 'cDescription' => t('Auto insert Open Graph Tags (OGP) into HEAD tag')));
     }
     $sp = SinglePage::add('/dashboard/open_graph_tags_lite/settings', $pkg);
     if (is_object($sp)) {
         $sp->update(array('cName' => t('Open Graph Tags Settings'), 'cDescription' => ''));
     }
     //Add og:image attribute
     $cak = CollectionAttributeKey::getByHandle('og_image');
     if (!is_object($cak)) {
         $at = AttributeType::getByHandle('image_file');
         CollectionAttributeKey::add($at, array('akHandle' => 'og_image', 'akName' => t('og:image')));
     }
 }
예제 #14
0
 public function install()
 {
     $pkg = parent::install();
     BlockType::installBlockTypeFromPackage('mixed_content', $pkg);
 }
예제 #15
0
 public function install()
 {
     $pkg = parent::install();
     Theme::add('sakan', $pkg);
     BlockType::installBlockTypeFromPackage('manual_nav', $pkg);
 }
예제 #16
0
 public function install()
 {
     $pkg = parent::install();
     Theme::add('scooptherapy', $pkg);
 }
 public function install()
 {
     $pkg = parent::install();
     Theme::add('foundation', $pkg);
 }
 public function install()
 {
     $pkg = parent::install();
     $this->configurePackage($pkg);
 }
 public function install()
 {
     parent::install();
     $this->setupDefaultPlugins();
 }
예제 #20
0
 public function install()
 {
     if (version_compare(PHP_VERSION, '5.4.0', '<')) {
         throw new \Exception(t('This add-on requires PHP 5.4 or greater.'));
     }
     $pkg = parent::install();
     $this->installSinglePages($pkg);
     $this->installPageTypes($pkg);
 }
예제 #21
0
 /**
  * Installs the package info row and installs the database. Packages installing additional content should override this method, call the parent method,
  * and use the resulting package object for further installs.
  * @return Package
  */
 public function install()
 {
     return parent::install();
 }
예제 #22
0
 public function install()
 {
     $pkg = parent::install();
 }
 public function install()
 {
     $pkg = parent::install();
     Theme::add('semantic_ui', $pkg);
 }
 public function install()
 {
     $pkg = parent::install();
     $ci = new ContentImporter();
     $ci->importContentFile($pkg->getPackagePath() . '/config/dashboard.xml');
 }
예제 #25
0
 public function install()
 {
     $pkg = parent::install();
     $this->_upgrade($pkg);
 }
예제 #26
0
 public function install()
 {
     $pkg = parent::install();
     $this->addAttributes($pkg);
 }
 public function install()
 {
     $pkg = parent::install();
     SinglePage::add('/dashboard/collection_version_list', $pkg);
     SinglePage::add('/dashboard/collection_version_list/search', $pkg);
 }
예제 #28
0
 public function install()
 {
     $pkg = parent::install();
     Theme::add('juiced', $pkg);
 }
예제 #29
0
 public function install()
 {
     $pkg = parent::install();
     OrderStatus::add('canceled', 'Canceled');
     PaymentMethod::add('paypal_express', 'Paypal Express', $pkg);
 }