mirror of
https://github.com/e107inc/e107.git
synced 2025-08-21 13:52:35 +02:00
PHPDoc fixes and code optimization.
This commit is contained in:
@@ -392,7 +392,6 @@ class comment_shortcodes extends e_shortcode
|
||||
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
}
|
||||
|
||||
return "<span id='comment-status-".$this->var['comment_id']."'>".$text."</span>";
|
||||
|
@@ -80,7 +80,7 @@ class fpw_shortcodes extends e_shortcode
|
||||
|
||||
/**
|
||||
* @param string $parm
|
||||
* @return mixed|null|string
|
||||
* @return string|null
|
||||
*/
|
||||
function sc_fpw_captcha_input($parm = null)
|
||||
{
|
||||
|
@@ -292,16 +292,13 @@ class news_shortcodes extends e_shortcode
|
||||
/* @deprecated - Will cause issues with glyphs */
|
||||
case 'src':
|
||||
return $src;
|
||||
break;
|
||||
|
||||
case 'tag':
|
||||
return $icon;
|
||||
break;
|
||||
|
||||
case 'url':
|
||||
default:
|
||||
return "<a href='".e107::getUrl()->create('news/list/category', $this->news_item)."'>".$icon."</a>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -273,7 +273,7 @@ class signup_shortcodes extends e_shortcode
|
||||
return false;
|
||||
}
|
||||
|
||||
$options = array('size'=>30,'class'=>'e-password tbox','required'=>1);
|
||||
$options = array('size'=>30,'class'=>'e-password tbox');
|
||||
// $options['title'] = 'Password must contain at least 6 characters, including UPPER/lowercase and numbers';
|
||||
$preLen = e107::getPref('signup_pass_len');
|
||||
$len = vartrue($preLen,6);
|
||||
@@ -356,9 +356,9 @@ class signup_shortcodes extends e_shortcode
|
||||
|
||||
function sc_signup_email($parm=null)
|
||||
{
|
||||
$options = array('size'=>30,'required'=>1,'class'=>'tbox form-control e-email');
|
||||
$options = array('size'=>30,'required'=>1);
|
||||
$options['title'] = LAN_SIGNUP_108; // Must be a valid email address.
|
||||
$options['class'] = vartrue($parm['class'],'');
|
||||
$options['class'] = vartrue($parm['class'], 'tbox form-control e-email');
|
||||
$options['placeholder'] = vartrue($parm['placeholder'],'');
|
||||
|
||||
$val = !empty($_POST['email']) ? filter_var($_POST['email'], FILTER_SANITIZE_EMAIL) : '';
|
||||
|
Reference in New Issue
Block a user