Convert all variables from camelCase to snake_case
This commit is contained in:
parent
2899e87cb0
commit
1371c19f4d
9 changed files with 401 additions and 401 deletions
|
@ -75,11 +75,11 @@ abstract class MCI_Footnotes_Widget_Base extends WP_Widget {
|
|||
* “The called constructor method for WP_Widget in MCI_Footnotes_Widget_ReferenceContainer is deprecated since version 4.3.0! Use __construct() instead.”
|
||||
*/
|
||||
public function __construct() {
|
||||
$l_arr_WidgetOptions = array(
|
||||
$l_arr_widget_options = array(
|
||||
'classname' => __CLASS__,
|
||||
'description' => $this->getDescription(),
|
||||
);
|
||||
$l_arr_ControlOptions = array(
|
||||
$l_arr_control_options = array(
|
||||
'id_base' => strtolower( $this->getID() ),
|
||||
'width' => $this->getWidgetWidth(),
|
||||
);
|
||||
|
@ -87,8 +87,8 @@ abstract class MCI_Footnotes_Widget_Base extends WP_Widget {
|
|||
parent::__construct(
|
||||
strtolower( $this->getID() ), // unique ID for the widget, has to be lowercase
|
||||
$this->getName(), // Plugin name to be displayed
|
||||
$l_arr_WidgetOptions, // Optional Widget Options
|
||||
$l_arr_ControlOptions // Optional Widget Control Options
|
||||
$l_arr_widget_options, // Optional Widget Options
|
||||
$l_arr_control_options // Optional Widget Control Options
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,10 +76,10 @@ class MCI_Footnotes_Widget_ReferenceContainer extends MCI_Footnotes_Widget_Base
|
|||
* @param mixed $instance
|
||||
*/
|
||||
public function widget( $args, $instance ) {
|
||||
global $g_obj_MCI_Footnotes;
|
||||
global $g_obj_mci_footnotes;
|
||||
// reference container positioning is set to "widget area"
|
||||
if ( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION ) == 'widget' ) {
|
||||
echo $g_obj_MCI_Footnotes->a_obj_Task->ReferenceContainer();
|
||||
echo $g_obj_mci_footnotes->a_obj_task->ReferenceContainer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue