mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2025-04-17 19:53:14 +02:00
temporaray redirection to github - Online-Themes and Online-Plugins
Typesettersms.com is down. It had a download-api. The coding of the redirection to github with updates will take some time. Until then is now a direkt link to the repositories at github
This commit is contained in:
parent
02b98ad9b6
commit
10426820d5
1 changed files with 12 additions and 12 deletions
|
@ -34,25 +34,25 @@ class Remote extends \gp\admin\Addon\Install{
|
|||
$this->searchPage = \gp\special\Search::ReqPage('page');
|
||||
|
||||
|
||||
//version specific search
|
||||
// version specific search
|
||||
if( !isset($config['search_version']) || $config['search_version'] ){
|
||||
$this->searchQuery .= '&ug='.rawurlencode(\gpversion);
|
||||
}
|
||||
|
||||
if( !empty($_GET['q']) ){
|
||||
$this->searchQuery .= '&q='.rawurlencode($_GET['q']);
|
||||
}
|
||||
}
|
||||
|
||||
$this->SearchOrder(); // \gp\Addon\Install
|
||||
$this->SearchOrder(); // \gp\Addon\Install ; git: /blob/main/ https://github.com/gtbu/Online-Plugins/blob/main/plugin.zip
|
||||
|
||||
$slug = 'Plugins';
|
||||
$slug = 'Online-Plugins';
|
||||
if( $this->config_index == 'themes' ){
|
||||
$slug = 'Themes';
|
||||
$slug = 'Online-Themes';
|
||||
}
|
||||
$src = \addon_browse_path.'/'.$slug.'?cmd=remote&format=json&'.$this->searchQuery.'&page='.$this->searchPage; // format=json added 4.6b3
|
||||
|
||||
$this->ShowHeader(); // \gp\Addon\Install
|
||||
$src = \CMS_READABLE_DOMAIN.'/'.$slug.'?cmd=remote&format=json&'.$this->searchQuery.'&page='.$this->searchPage; // format=json added 4.6b3
|
||||
|
||||
$this->ShowHeader();
|
||||
|
||||
$data = $this->RemoteBrowseResponse($src);
|
||||
if( $data === false ){
|
||||
return;
|
||||
|
@ -288,11 +288,11 @@ class Remote extends \gp\admin\Addon\Install{
|
|||
*
|
||||
*/
|
||||
public function ViewOnline(){
|
||||
$slug = 'Plugins';
|
||||
$slug = 'Online-Plugins';
|
||||
if( $this->config_index == 'themes' ){
|
||||
$slug = 'Themes';
|
||||
$slug = 'Online-Themes';
|
||||
}
|
||||
$url = \addon_browse_path.'/'.$slug.'?'.$this->searchQuery.'&page='.$this->searchPage;
|
||||
echo '<p>View search results on <a href="'.$url.'" target="_blank">'.CMS_READABLE_DOMAIN.'</p>';
|
||||
$url = \CMS_READABLE_DOMAIN.'/'.$slug.'?'.$this->searchQuery.'&page='.$this->searchPage;
|
||||
echo '<p>View search results on <a href="https://github.com/gtbu/'.$slug.'" target="_blank">Github</p>';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue