File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,19 @@ public function __construct(
3737 }
3838 }
3939
40- public function getTextFieldContent ($ page , $ trimTextPosition ) {
41- if (is_array ($ this ->textfields )) {
42- foreach ($ this ->textfields as $ field ) {
43- if ($ page ->$ field ()->exists () && $ page ->$ field ()->isNotEmpty ()) {
44- return $ page ->$ field ()->value ();
40+ public function getTextFieldContent ($ page , $ trimTextPosition )
41+ {
42+ if (is_array ($ this ->textfields )) {
43+ foreach ($ this ->textfields as $ field ) {
44+ if ($ page ->$ field ()->exists () && $ page ->$ field ()->isNotEmpty ()) {
45+ return Str::short ($ page ->$ field ()->value (), $ trimTextPosition );
4546 }
4647 }
4748 }
4849
4950 $ field = $ this ->textfields ;
50- if (!is_array ($ this ->textfields ) && $ page ->$ field ()->isNotEmpty ()) {
51- return $ page ->$ field ()->value ();
51+ if (!is_array ($ this ->textfields ) && $ page ->$ field ()->isNotEmpty ()) {
52+ return Str:: short ( $ page ->$ field ()->value (), $ trimTextPosition );
5253 }
5354
5455 return Str::short ($ page ->title (), $ trimTextPosition );
You can’t perform that action at this time.
0 commit comments