コード例 #1
0
 public function install()
 {
     $pkg = parent::install();
     $theme = PageTheme::add('nukiuchi_theme', $pkg);
     $page = Single::add('/blog', $pkg);
     $page->setTheme($theme);
 }
コード例 #2
0
 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
ファイル: controller.php プロジェクト: pier5/text-list
 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
ファイル: controller.php プロジェクト: CVJM-Forchheim/xmailer
 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();
     }
 }
コード例 #13
0
 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
ファイル: controller.php プロジェクト: kohki-shikata/sakan
 public function install()
 {
     $pkg = parent::install();
     Theme::add('sakan', $pkg);
     BlockType::installBlockTypeFromPackage('manual_nav', $pkg);
 }
コード例 #16
0
ファイル: controller.php プロジェクト: zawzawzaw/scoop
 public function install()
 {
     $pkg = parent::install();
     Theme::add('scooptherapy', $pkg);
 }
コード例 #17
0
 public function install()
 {
     $pkg = parent::install();
     Theme::add('foundation', $pkg);
 }
コード例 #18
0
 public function install()
 {
     $pkg = parent::install();
     $this->configurePackage($pkg);
 }
コード例 #19
0
 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();
 }
コード例 #23
0
 public function install()
 {
     $pkg = parent::install();
     Theme::add('semantic_ui', $pkg);
 }
コード例 #24
0
 public function install()
 {
     $pkg = parent::install();
     $ci = new ContentImporter();
     $ci->importContentFile($pkg->getPackagePath() . '/config/dashboard.xml');
 }
コード例 #25
0
ファイル: controller.php プロジェクト: zawzawzaw/scoop
 public function install()
 {
     $pkg = parent::install();
     $this->_upgrade($pkg);
 }
コード例 #26
0
 public function install()
 {
     $pkg = parent::install();
     $this->addAttributes($pkg);
 }
コード例 #27
0
 public function install()
 {
     $pkg = parent::install();
     SinglePage::add('/dashboard/collection_version_list', $pkg);
     SinglePage::add('/dashboard/collection_version_list/search', $pkg);
 }
コード例 #28
0
ファイル: controller.php プロジェクト: tallacman/juiced_theme
 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);
 }