For both versions 1.7.7 or 2.0 in a local host you need to set $firstMatrix = array_keys($section[0]['matrix'])[0] instead array_shift(array_keys($arg['matrix']
对于本地主机上的1.7.7或2.0版本,您需要设置$ firstMatrix = array_keys($ section [0] ['matrix'])[0]而不是array_shift(array_keys($ arg ['matrix']
)).
))。
I don`t know why, if someone knows that, please tell me.
我不知道为什么,如果有人知道,请告诉我。 p>
For the version 1.7.7: Change the both foreach at line 194 in limitless/backend/classes/class_enigma.php for this code:
对于版本1.7.7:为此代码的limitless / backend / classes / class_enigma.php中的第194行的两个foreach进行更改: p>
foreach ($args as $key => $section) { foreach($ args as $ key => $ section){ //first matrix referrer on visual_settings.php
//visual_settings.php上的第一个矩阵引荐来源网址
$firstMatrix = array_shift(array_keys($section[0]['matrix']));
$ firstMatrix = array_shift(array_keys($ section [0] ['matrix']));;
$firstMatrixFiltered = trim(trim(str_replace(array(' p.', ' p ','.', ' ul ',' li ',' a ',' ,', ' ',' ',',')
$ firstMatrixFiltered = trim(trim(str_replace(array('p。','p','。','ul','li','a',',',',',',',')
, ' ', str_replace(array('#',' > span','div.',' > a','h2','h1','h4','a.','h3','table
,'',str_replace(array('#','> span','div。','> a','h2','h1','h4','a。','h3','table
','caption','ul li a','ul li','input[type=text]','>li>a'), '',$firstMatrix)), '.'), ' ')
','标题','ul li a','ul li','input [type = text]','> li> a'),'',$ firstMatrix)),'。'),'')
;
;
//$key access the class name
// $ key访问类名
$code .='
'.$key.' <
$ code。='
'。$ key。' i> <
a href="" class="en-section-reset">'.__('Reset','ioa').'
a href =“” class =“ en-section-reset”>'.__('Reset','ioa')。' h4>
';
';
foreach ($section as $key => $arg) {
foreach($ section as $ key => $ arg){
$firstMatrix = array_shift(array_keys($arg['matrix']));
$ firstMatrix = array_shift(array_keys($ arg ['matrix']));;
$firstMatrixFiltered = trim(trim(str_replace(array(' p.', ' p ','.', ' ul ',' li ',' a ',' ,', ' ',' ',',')
$ firstMatrixFiltered = trim(trim(str_replace(array('p。','p','。','ul','li','a',',',',',',',')
, ' ', str_replace(array('#',' > span','div.',' > a','h2','h1','h4','a.','h3','table
,'',str_replace(array('#','> span','div。','> a','h2','h1','h4','a。','h3','table
','caption','ul li a','ul li','input[type=text]','>li>a'), '',$firstMatrix)), '.'), ' ')
','标题','ul li a','ul li','input [type = text]','> li> a'),'',$ firstMatrix)),'。'),'')
;
;
// $arg['class'] to access the class if I have it no visual_settings
// $ arg ['class']访问该类(如果我没有visual_settings)
// access the first value of matrix array -- array_shift(array_keys($arg['matrix']))
//访问矩阵数组的第一个值-array_shift(array_keys($ arg ['matrix']))
$code .='
'.$arg['label'].'
$ code。='
'。$ arg ['label']。'
'.__('Reset','ioa').'
'.__('Reset','ioa')。' h5>
-section clearfix">';
-section clearfix“>';
code> pre>
For the version 2.0: Change the both foreach at the line 201 at limitless/backend/deprecated/class_enigma.php
对于版本2.0:在第201行的无限/后端/不推荐使用/class_enigma.php上更改两个foreach p>
foreach ($args as $key => $section) { foreach($ args as $ key => $ section){ //first matrix referrer on visual_settings.php
//visual_settings.php上的第一个矩阵引荐来源网址
//'.var_dump($section[0]['matrix']).'
//'.var_dump($section[0]['matrix'])。'
$firstMatrix = array_keys($section[0]['matrix'])[0];
$ firstMatrix = array_keys($ section [0] ['matrix'])[0];
//$firstMatrix = array_shift(array_keys($section[0]['matrix']));
// $ firstMatrix = array_shift(array_keys($ section [0] ['matrix']));;
//echo var_dump($section[0]['matrix']);
// echo var_dump($ section [0] ['matrix']);
//echo $firstMatrix;
// echo $ firstMatrix;
$firstMatrixFiltered = trim(trim(str_replace(array(' p.', ' p ','.', ' ul ',' li ',' a ',' ,', ' ',' ',',')
$ firstMatrixFiltered = trim(trim(str_replace(array('p。','p','。','ul','li','a',',',',',',',')
, ' ', str_replace(array('#',' > span','div.',' > a','h2','h1','h4','a.','h3','table
,'',str_replace(array('#','> span','div。','> a','h2','h1','h4','a。','h3','table
','caption','ul li a','ul li','input[type=text]','>li>a'), '',$firstMatrix)), '.'), ' ')
','标题','ul li a','ul li','input [type = text]','> li> a'),'',$ firstMatrix)),'。'),'')
;
;
$code .='
$ code。='
'.$key.''.__('Reset','ioa').'
'.__('Reset','ioa')。' h4>
-styler-section clearfix">';
-styler-section clearfix“>';
foreach ($section as $key => $arg) {
foreach($ section as $ key => $ arg){
$firstMatrix = array_keys($arg['matrix'])[0];
$ firstMatrix = array_keys($ arg ['matrix'])[0];
$firstMatrixFiltered = trim(trim(str_replace(array(' p.', ' p ','.', ' ul ',' li ',' a ',' ,', ' ',' ',',')
$ firstMatrixFiltered = trim(trim(str_replace(array('p。','p','。','ul','li','a',',',',',',',')
, ' ', str_replace(array('#',' > span','div.',' > a','h2','h1','h4','a.','h3','table
,'',str_replace(array('#','> span','div。','> a','h2','h1','h4','a。','h3','table
','caption','ul li a','ul li','input[type=text]','>li>a'), '',$firstMatrix)), '.'), ' ')
','标题','ul li a','ul li','input [type = text]','> li> a'),'',$ firstMatrix)),'。'),'')
;
;
// $arg['class'] to access the class if I have it no visual_settings
// $ arg ['class']访问该类(如果我没有visual_settings)
// access the first value of matrix array -- array_shift(array_keys($arg['matrix']))
//访问矩阵数组的第一个值-array_shift(array_keys($ arg ['matrix']))
$code .='
firstMatrixFiltered。'“>'。$ arg ['label']。''.__('Reset','ioa')。'
';
h5>
';
code> pre>
li>
It is done.
完成。
Use it!!!
使用它! p>
li>
ol>
-EOF-
AI助手支持GPT4.0