1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 12:41:51 +02:00

Minor fixes and sync with 0.7

This commit is contained in:
CaMer0n 2011-07-24 20:57:48 +00:00
parent 3f4dd7a25c
commit a6613cb515
3 changed files with 31 additions and 25 deletions

View File

@ -179,37 +179,38 @@ class bb_youtube extends e_bb_base
switch ($parms[0])
{
case 'tiny':
$params['w'] = 200;
$params['h'] = 180;
$params['w'] = 320; // 200;
$params['h'] = 205; // 180;
break;
case 'small':
$params['w'] = 445;
$params['h'] = 364;
$params['w'] = 560; // 445;
$params['h'] = 340; // 364;
break;
case 'medium':
$params['w'] = 500;
$params['h'] = 405;
$params['w'] = 640; // 500;
$params['h'] = 385; // 405;
break;
case 'big':
$params['w'] = 660;
$params['h'] = 525;
case 'large':
$params['w'] = 853; // 660;
$params['h'] = 505; // 525;
break;
case 'huge':
$params['w'] = 980;
$params['h'] = 765;
$params['w'] = 1280; // 980;
$params['h'] = 745; // 765;
break;
default:
$dim = explode(',', $parms[0], 2);
default: // maximum 1920 x 1080 (+25)
$dim = explode(',', $dimensions, 2);
$params['w'] = (integer) varset($dim[0], 445);
if($params['w'] > 980 || $params['w'] < 200) $params['w'] = 445;
if($params['w'] > 1920 || $params['w'] < 200) $params['w'] = 640;
$params['h'] = (integer) varset($dim[1], 364);
if($params['h'] > 765 || $params['h'] < 180) $params['h'] = 364;
if($params['h'] > 1105 || $params['h'] < 137) $params['h'] = 385;
break;
}

View File

@ -106,13 +106,13 @@ if (isset($_POST['commentsubmit']))
{
if(vartrue($faqpref['classic_look']))
{
$tmp = $faq->show_existing_parents($action, $sub_action, $id, $from, $amount);
$ftmp = $faq->show_existing_parents($action, $sub_action, $id, $from, $amount);
$caption = FAQLAN_41;
}
else
{
$tmp = $faq->view_all();
$caption = FAQLAN_FAQ;
$ftmp = $faq->view_all();
$caption = FAQLAN_FAQ;
}
if (vartrue($faqpref['faq_title']))
@ -123,25 +123,28 @@ if (isset($_POST['commentsubmit']))
{
define("e_PAGETITLE", FAQLAN_23);
}
require_once (HEADERF);
$ns->tablerender($caption, $tmp['text']);
$ns->tablerender($caption, $ftmp['text']);
}
if($action == "cat" && $idx)
{
$tmp = $faq->view_faq($idx) ;
define("e_PAGETITLE",FAQLAN_FAQ." - ". $tmp['title']);
$ftmp = $faq->view_faq($idx) ;
define("e_PAGETITLE",FAQLAN_FAQ." - ". $ftmp['title']);
require_once(HEADERF);
$ns -> tablerender($tmp['caption'], $tmp['text']);
$ns -> tablerender($ftmp['caption'], $ftmp['text']);
}
if ($action == "cat")
{
$tmp = $faq->view_cat_list($action, $id);
$ftmp = $faq->view_cat_list($action, $id);
define("e_PAGETITLE", strip_tags($tmp['title'].$tmp['caption']));
define("e_PAGETITLE", strip_tags($ftmp['title'].$ftmp['caption']));
require_once (HEADERF);
$ns->tablerender($tmp['caption'], $tmp['text']);
$ns->tablerender($ftmp['caption'], $ftmp['text']);
}
@ -172,6 +175,7 @@ class faq
{
$sql = e107::getDb();
$tp = e107::getParser();
$ret = array();
global $FAQ_START, $FAQ_END, $FAQ_LISTALL_START,$FAQ_LISTALL_LOOP,$FAQ_LISTALL_END;
@ -206,6 +210,7 @@ class faq
$ret['title'] = FAQLAN_FAQ;
$ret['text'] = $text;
$ret['caption'] = $caption;
return $ret;
}

View File

@ -835,7 +835,7 @@ class linkclass
".$rs -> form_close()."
</div>";
$ns->tablerender(LCLAN_ITEM_24, $text);
$ns->tablerender(LCLAN_PAGETITLE_1, $text);
}
function show_links()