Changeset 1151018
- Timestamp:
- 05/01/2015 01:02:42 PM (11 years ago)
- Location:
- lytics/trunk/lib
- Files:
-
- 2 edited
-
lytics-addons.php (modified) (1 diff)
-
lytics-settings.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lytics/trunk/lib/lytics-addons.php
r1150989 r1151018 45 45 46 46 foreach ($addons as $addon){ 47 if( i n_array( $addon['id'] , $enabled_addons ) ){47 if( is_array( $enabled_addons) && in_array( $addon['id'] , $enabled_addons ) ){ 48 48 $addon = $this->load_addon( $addon ); 49 49 $this->addons[] = $addon; -
lytics/trunk/lib/lytics-settings.php
r1150989 r1151018 118 118 * @todo clean up this output so that it is more readable 119 119 */ 120 function accout_instructions( ){ 121 _e( 'Enter your Lytics tracking tag as shown on your Lytics account dashboard.', 'lytics'); 122 _e( 'To find your Lytics tracking tag, visit the <i>Integrations</i> tab on your Lytics Dashboard and navigate to the instructions for integrating Lytics.', 'lytics'); 123 _e( 'https://admin.lytics.io/#/documentation/jstag_anon' ); 124 _e( 'Then click "Install Tag" to reveal your tracking tag.', 'lytics'); 120 function accout_instructions( ){ ?> 121 <p> <?php _e( 'Enter your Lytics tracking tag as shown on your Lytics account dashboard.', 'lytics'); ?> 122 <p> <?php _e( 'To find your Lytics tracking tag, visit the <i>Integrations</i> tab on your Lytics Dashboard and navigate to the instructions for integrating Lytics.', 'lytics'); ?> 123 <p> <?php _e( 'https://admin.lytics.io/#/documentation/jstag_anon' ); ?> 124 <p> <?php _e( 'Then click "Install Tag" to reveal your tracking tag.', 'lytics'); ?> 125 <?php 125 126 } 126 127 … … 130 131 * @author Russell Fair 131 132 */ 132 function addon_selection(){ 133 _e( 'Select the addons that you wish to enable on your site.' , 'lytics' ); 133 function addon_selection(){ ?> 134 <p> <?php _e( 'Select the addons that you wish to enable on your site.' , 'lytics' ); ?> 135 <?php 134 136 } 135 137 … … 169 171 170 172 foreach ( $addon_list as $addon => $addon_settings ){ 171 $checked = ( i n_array( $addon_settings['id'], $enabled_addons ) ) ? ' checked': '' ;173 $checked = ( is_array( $enabled_addons) && in_array( $addon_settings['id'], $enabled_addons ) ) ? ' checked': '' ; 172 174 printf('<p><input type="checkbox" name="lytics_addon_selection[%s]"%s/>', $addon_settings['id'], $checked ); 173 175 printf('<label for="lytics_addon_selection[%s]">%s</label>', $addon_settings['id'], $addon_settings['name'] );
Note: See TracChangeset
for help on using the changeset viewer.