Skip to content
Permalink
Browse files

Manual method to install from repo if no internet

  • Loading branch information...
Ayoola FALOLA
Ayoola FALOLA committed May 20, 2019
1 parent 1bc93ba commit d66061fce1ccacee2f6ce8674d7f90e9f22c0836
@@ -206,6 +206,15 @@ protected function init()
$category = ( @$_GET['category'] ? : $this->getDefaultCategory() );
// var_export( $options );
if( $this->getDbData() )
{
//var_export( $this->getDbData() );
}
else
{
$this->noContentDefault();
return false;
}
// var_export( $category );
// var_export( $options[$category]['option_name'] );
if( ! empty( $options[$category] ) )
@@ -217,6 +226,25 @@ protected function init()
}
}
/**
*
*
*/
public function noContentDefault()
{
if( $this->getDbData() )
{
//var_export( $this->getDbData() );
}
else
{
// $this->setViewContent( '<h2 class="">Upload theme manually</h2>', true );
$this->setViewContent( '<p class="pc-notify-info">Connect to the internet to download plugins directly from <a target="_blank" href="https://plugins.pagecarton.org">PageCarton Plugins </a> or download manually and upload here. <a target="_blank" href="https://plugins.pagecarton.org"><i class="fa fa-external-link pc_give_space"></i> PageCarton plugins </a></p>' );
$this->setViewContent( Ayoola_Extension_Import::viewInLine() );
return false;
}
}
/**
* Overides the parent class
*
@@ -63,6 +63,25 @@ public function getDefaultCategory()
{
return Application_Settings_SiteInfo::retrieve( 'site_type' );
}
/**
*
*
*/
public function noContentDefault()
{
if( $this->getDbData() )
{
//var_export( $this->getDbData() );
}
else
{
// $this->setViewContent( '<h2 class="">Upload theme manually</h2>', true );
$this->setViewContent( '<p class="pc-notify-info">Connect to the internet to download themes directly from <a target="_blank" href="https://themes.pagecarton.org">PageCarton Themes </a> or download manually and upload here. <a target="_blank" href="https://themes.pagecarton.org"><i class="fa fa-external-link pc_give_space"></i> PageCarton Themes </a></p>' );
$this->setViewContent( Ayoola_Page_Layout_Creator::viewInLine() );
return false;
}
}
/**

0 comments on commit d66061f

Please sign in to comment.
You can’t perform that action at this time.