Plugin Directory

Changeset 1093487


Ignore:
Timestamp:
02/18/2015 04:54:55 PM (11 years ago)
Author:
JHipkin
Message:

tagging version 1.1

Location:
tracking-script-manager
Files:
4 deleted
11 edited
1 copied

Legend:

Unmodified
Added
Removed
  • tracking-script-manager/tags/1.0.5/tracking-scripts.php

    r987512 r1093487  
    4242            public static function define_constants() {
    4343                define('TRACKING_SCRIPT_PATH', plugins_url( ' ', __FILE__ ) );
     44                define('TRACKING_SCRIPT_BASENAME', plugin_basename( __FILE__ ));
    4445               
    4546                define('WP_TRACKING_SCRIPTS_OPTION_GROUP', 'tracking_scripts_options' );
    4647                define('WP_HEADER_TRACKING_SCRIPT', 'header_tracking_script_code' );
    4748                define('WP_FOOTER_TRACKING_SCRIPT', 'footer_tracking_script_code' );
     49                define('WP_PAGE_TRACKING_SCRIPT', 'page_tracking_script_code' );
    4850                define('WP_NEW_HEADER_TRACKING_SCRIPT', 'new_header_tracking_script_code' );
    4951                define('WP_NEW_FOOTER_TRACKING_SCRIPT', 'new_footer_tracking_script_code' );
     52                define('WP_NEW_PAGE_TRACKING_SCRIPT', 'new_page_tracking_script_code' );
     53                define('WP_NEW_PAGE_TRACKING_SCRIPT_ID', 'new_page_tracking_script_code_id' );
     54                define('WP_NEW_PAGE_TRACKING_SCRIPT_LOCATION', 'new_page_tracking_script_code_location' );
     55                define('WP_NEW_PAGE_TRACKING_SCRIPT_GLOBAL', 'new_page_tracking_script_code_global' );
     56                define('WP_PAGE_TRACKING_SCRIPT_COUNT', 'page_tracking_script_count');
    5057            }
    5158           
     
    6067               
    6168                add_action('admin_init', array(__CLASS__, 'initialize_admin_posts'));
     69
     70                add_action( 'wp_ajax_tracking_scripts_get_posts', array(__CLASS__, 'tracking_scripts_posts_ajax_handler') );
     71                add_action( 'wp_ajax_nopriv_tracking_scripts_get_posts', array(__CLASS__, 'tracking_scripts_posts_ajax_handler') );
     72               
     73                add_action( 'wp_ajax_tracking_scripts_get_post_content', array(__CLASS__, 'tracking_scripts_post_content_ajax_handler') );
     74                add_action( 'wp_ajax_nopriv_tracking_scripts_get_posts', array(__CLASS__, 'tracking_scripts_posts_ajax_handler') );
    6275            }
    6376   
     
    6679            **************************************************/
    6780       
    68             /**
    69              *
    70              *
    71              * @param int $post_id The ID of the post being saved.
    72              */
     81            // Header Tracking Codes
    7382            public static function find_header_tracking_codes() {
    7483                $header_scripts = unserialize(get_option(WP_HEADER_TRACKING_SCRIPT));
     
    8190                    }
    8291                }
    83             }
    84            
     92
     93                $page_scripts = unserialize(get_option(WP_PAGE_TRACKING_SCRIPT));
     94               
     95                if($page_scripts) {
     96                    global $wp_query;
     97                    $post_id = $wp_query->post->ID;
     98                    foreach($page_scripts as $script) {
     99                        if($script->active && $script->location == 'header' && $script->page_id == $post_id) {
     100                            echo html_entity_decode(esc_attr($script->script_code), ENT_QUOTES, 'cp1252');
     101                        }
     102                    }
     103                }
     104            }
     105           
     106           
     107            // Footer Tracking Codes
    85108            public static function find_footer_tracking_codes() {
    86109                $footer_scripts = unserialize(get_option(WP_FOOTER_TRACKING_SCRIPT));
     
    93116                    }
    94117                }
     118
     119                $page_scripts = unserialize(get_option(WP_PAGE_TRACKING_SCRIPT));
     120               
     121                if($page_scripts) {
     122                    global $wp_query;
     123                    $post_id = $wp_query->post->ID;
     124                    foreach($page_scripts as $script) {
     125                        if($script->active && $script->location == 'footer' && $script->page_id == $post_id) {
     126                            echo html_entity_decode(esc_attr($script->script_code), ENT_QUOTES, 'cp1252');
     127                        }
     128                    }
     129                }
    95130            }
    96131
     
    100135           
    101136            public static function tracking_scripts_create_menu() {
    102                 add_menu_page('Tracking Scripts', 'Tracking Scripts', 'administrator', __FILE__, array(__CLASS__, 'tracking_options'), '');
     137                add_menu_page('Tracking Scripts Manager', 'Tracking Scripts Manager', 'administrator', __FILE__, array(__CLASS__, 'tracking_options'), '');
    103138                add_action('admin_init', array(__CLASS__, 'register_tracking_scripts_settings'));
    104139            }
     
    110145           
    111146            public static function tracking_scripts_admin_tabs( $current = 'add_new' ) {
    112                 $tabs = array('add_new' => 'Add New', 'existing' => 'Existing');
     147                $tabs = array('add_new' => 'Add New', 'global' => 'Global', 'pages' => 'Specific Location');
    113148                echo '<div id="tracking_scripts_admin"><br></div>';
    114                 echo '<h2 style="font-size: 22px; font-weight: bold; margin: 10px 0 40px;">Tracking Scripts</h2>';
     149                echo '<h2 style="font-size: 22px; font-weight: bold; margin: 10px 0 40px;">Tracking Scripts Manager Pro</h2>';
    115150                echo '<h2 class="nav-tab-wrapper">';
    116151                foreach($tabs as $tab => $name) {
    117152                    $class = ($tab == $current) ? ' nav-tab-active' : '';
    118                     echo "<a class='nav-tab$class' href='?page=tracking-script-manager/tracking-scripts.php&tab=$tab'>$name</a>";
     153                    echo "<a class='nav-tab$class' href='?page=".TRACKING_SCRIPT_BASENAME."&tab=$tab'>$name</a>";
    119154                }
    120155                echo '</h2>';
     
    138173                        <?php do_settings_sections(WP_TRACKING_SCRIPTS_OPTION_GROUP); ?>
    139174                        <?php if($pagenow == 'add_new') { ?>
    140                             <div class="script_section">
    141                                 <h2>Header Scripts</h2>
    142                                 <div class="add_tracking_scripts">
    143                                     <label>Name:</label>
    144                                     <input type="text" name="new_header_script_name"/>
    145                                     <textarea rows="5" cols="40" name="<?php echo WP_NEW_HEADER_TRACKING_SCRIPT; ?>" style="font-weight: normal;"></textarea>
    146                                 </div>
    147                             </div>
    148                             <div class="script_section">
    149                                 <h2>Footer Scripts</h2>
    150                                 <div class="add_tracking_scripts">
    151                                     <label>Name:</label>
    152                                     <input type="text" name="new_footer_script_name"/>
    153                                     <textarea rows="5" cols="40" name="<?php echo WP_NEW_FOOTER_TRACKING_SCRIPT; ?>" style="font-weight: normal;"></textarea>
    154                                 </div>
    155                             </div>
    156                             <?php submit_button('Add Scripts', 'primary', 'save_new_tracking_codes'); ?>
    157                             <input type="hidden" name="action" value="save_new_tracking_codes">
     175                            <?php include_once('templates/tracking-scripts-manager-pro-add-new.php'); ?>
     176                        <?php } else if($pagenow == 'global') { ?>
     177                            <?php include_once('templates/tracking-scripts-manager-pro-edit-global.php'); ?>
    158178                        <?php } else { ?>
    159                             <div class="script_section">
    160                                 <h2>Header Scripts</h2>
    161                                 <?php $header_scripts = unserialize(get_option(WP_HEADER_TRACKING_SCRIPT)); $i = 1; ?>
    162                                 <div class="tracking_scripts">
    163                                     <?php foreach($header_scripts as $script) { ?>
    164                                     <div class="tracking_script">
    165                                         <i class="fa fa-sort" title="Drag to Sort"></i>
    166                                         <p><?php echo $i; ?></p>
    167                                         <div class="script_info">
    168                                             <input type="text" name="header_script_<?php echo $i; ?>_name" value="<?php echo $script->script_name; ?>" readonly="readonly">
    169                                             <input type="text" name="header_script_<?php echo $i; ?>_code" value="<?php echo $script->script_code; ?>" readonly="readonly">
    170                                         </div>
    171                                         <i class="active_tracking fa <?php if($script->active === true) { echo 'fa-check-circle'; } else { echo 'fa-circle-o'; } ?>" title="<?php if($script->active === true) { echo 'Deactivate Script'; } else { echo 'Activate Script'; } ?>"></i>
    172                                         <i class="edit_tracking fa fa-edit" title="Edit Script"></i>
    173                                         <i class="delete_tracking fa fa-times" title="Delete Script"></i>
    174                                         <input type="hidden" class="script_order" name="header_script_<?php echo $i; ?>_order" value="<?php echo $i; ?>">
    175                                         <input type="hidden" class="script_active" name="header_script_<?php echo $i; ?>_active" value="<?php if($script->active === true) { echo 'true'; } else { echo 'false'; } ?>">
    176                                         <input type="hidden" class="script_exists" name="header_script_<?php echo $i; ?>_exists" value="true">
    177                                     </div>
    178                                     <?php $i++; } ?>
    179                                 </div>
    180                             </div>
    181                             <div class="script_section">
    182                                 <h2>Footer Scripts</h2>
    183                                 <?php $footer_scripts = unserialize(get_option(WP_FOOTER_TRACKING_SCRIPT)); $i = 1; ?>
    184                                 <div class="tracking_scripts">
    185                                     <?php foreach($footer_scripts as $script) { ?>
    186                                     <div class="tracking_script">
    187                                         <i class="fa fa-sort" title="Drag to Sort"></i>
    188                                         <p><?php echo $i; ?></p>
    189                                         <div class="script_info">
    190                                             <input type="text" name="footer_script_<?php echo $i; ?>_name" value="<?php echo $script->script_name; ?>" readonly="readonly">
    191                                             <input type="text" name="footer_script_<?php echo $i; ?>_code" value="<?php echo $script->script_code; ?>" readonly="readonly">
    192                                         </div>
    193                                         <i class="active_tracking fa <?php if($script->active === true) { echo 'fa-check-circle'; } else { echo 'fa-circle-o'; } ?>" title="<?php if($script->active === true) { echo 'Deactivate Script'; } else { echo 'Activate Script'; } ?>"></i>
    194                                         <i class="edit_tracking fa fa-edit" title="Edit Script"></i>
    195                                         <i class="delete_tracking fa fa-times" title="Delete Script"></i>
    196                                         <input type="hidden" class="script_order" name="footer_script_<?php echo $i; ?>_order" value="<?php echo $i; ?>">
    197                                         <input type="hidden" class="script_active" name="footer_script_<?php echo $i; ?>_active" value="<?php if($script->active === true) { echo 'true'; } else { echo 'false'; } ?>">
    198                                         <input type="hidden" class="script_exists" name="footer_script_<?php echo $i; ?>_exists" value="true">
    199                                     </div>
    200                                     <?php $i++; } ?>
    201                                 </div>
    202                             </div>
    203                             <?php submit_button('Update Scripts', 'primary', 'update_tracking_codes'); ?>
    204                             <input type="hidden" name="action" value="update_tracking_codes">
     179                            <?php include_once('templates/tracking-scripts-manager-pro-edit-single-post.php'); ?>
    205180                        <?php } ?>
    206181                    </form>
     
    210185            }
    211186           
     187           
     188            // Admin Scripts
    212189            public static function tracking_scripts_admin_scripts() {
    213190                wp_enqueue_script('jquery');
     
    218195               
    219196                wp_enqueue_script( 'tracking_script_js', plugin_dir_url(__FILE__) . '/js/main.js', array(), '', true );
    220                
    221                
    222             }
    223            
    224            
     197                wp_localize_script( 'tracking_script_js', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
     198            }
     199
     200
     201            // Ajax Functions
     202            public static function tracking_scripts_posts_ajax_handler() {
     203                $post_type = ($_POST['postType']) ? esc_attr($_POST['postType']) : 'post';
     204
     205                $args = array(
     206                    'post_type' => $post_type,
     207                    'posts_per_page' => -1,
     208                    'orderby' => 'name',
     209                    'order' => 'ASC'
     210                );
     211
     212                ob_start();
     213               
     214                $query = new WP_Query($args);
     215                echo '<option value="none" id="none">Choose '.ucwords($post_type).'</option>';
     216                while($query->have_posts()) : $query->the_post();
     217                    echo '<option value="'.get_the_ID().'" id="'.get_the_ID().'">'.ucwords(get_the_title()).'</option>';
     218                endwhile;
     219                wp_reset_postdata();
     220               
     221                echo ob_get_clean();
     222                die();
     223            }
     224           
     225            public static function tracking_scripts_post_content_ajax_handler() {
     226                $current_page_id = ($_POST['postID']) ? esc_attr($_POST['postID']) : null;
     227               
     228                if($current_page_id) {
     229                    $page_scripts = unserialize(get_option(WP_PAGE_TRACKING_SCRIPT)); $i = 1;                               
     230                    $page_scripts_array = array();
     231                    foreach($page_scripts as $script) {
     232                        if($script->page_id == $current_page_id) {
     233                            $page_scripts_array[$script->location][] = $script;
     234                        }
     235                    }
     236                   
     237                    ob_start();
     238                ?>             
     239                    <div id="tracking_scripts_<?php echo $current_page_id; ?>" class="tracking_scripts">
     240                        <?php
     241                            $page_header_scripts = $page_scripts_array['header'];
     242                            $page_footer_scripts = $page_scripts_array['footer'];
     243                        ?>
     244                        <h3>Header</h3>
     245                        <?php if($page_header_scripts) { ?>
     246                            <ul class="tracking_script_list">
     247                            <?php $i = 1; ?>
     248                            <?php foreach($page_header_scripts as $script) { ?>
     249                                <div class="tracking_script">
     250                                    <i class="fa fa-sort" title="Drag to Sort"></i>
     251                                    <p><?php echo $i; ?></p>
     252                                    <div class="script_info">
     253                                        <input type="text" name="page_script_<?php echo $script->script_id; ?>_name" value="<?php echo $script->script_name; ?>" readonly="readonly">
     254                                        <input type="text" name="page_script_<?php echo $script->script_id; ?>_code" value="<?php echo $script->script_code; ?>" readonly="readonly">
     255                                    </div>
     256                                    <i class="active_tracking fa <?php if($script->active === true) { echo 'fa-check-circle'; } else { echo 'fa-circle-o'; } ?>" title="<?php if($script->active === true) { echo 'Deactivate Script'; } else { echo 'Activate Script'; } ?>"></i>
     257                                    <i class="edit_tracking fa fa-edit" title="Edit Script"></i>
     258                                    <i class="delete_tracking fa fa-times" title="Delete Script"></i>
     259                                    <input type="hidden" class="script_order" name="page_script_<?php echo $script->script_id; ?>_order" value="<?php echo $i; ?>">
     260                                    <input type="hidden" class="script_active" name="page_script_<?php echo $script->script_id; ?>_active" value="<?php if($script->active === true) { echo 'true'; } else { echo 'false'; } ?>">
     261                                    <input type="hidden" class="script_exists" name="page_script_<?php echo $script->script_id; ?>_exists" value="true">
     262                                </div>
     263                                <?php $i++; ?>
     264                            <?php } ?>
     265                            </ul>
     266                        <?php } ?>
     267                        <h3>Footer</h3>
     268                        <?php if($page_footer_scripts) { ?>
     269                            <ul class="tracking_script_list">
     270                            <?php foreach($page_footer_scripts as $script) { ?>
     271                                <div class="tracking_script">
     272                                    <i class="fa fa-sort" title="Drag to Sort"></i>
     273                                    <p><?php echo $i; ?></p>
     274                                    <div class="script_info">
     275                                        <input type="text" name="page_script_<?php echo $script->script_id; ?>_name" value="<?php echo $script->script_name; ?>" readonly="readonly">
     276                                        <input type="text" name="page_script_<?php echo $script->script_id; ?>_code" value="<?php echo $script->script_code; ?>" readonly="readonly">
     277                                    </div>
     278                                    <i class="active_tracking fa <?php if($script->active === true) { echo 'fa-check-circle'; } else { echo 'fa-circle-o'; } ?>" title="<?php if($script->active === true) { echo 'Deactivate Script'; } else { echo 'Activate Script'; } ?>"></i>
     279                                    <i class="edit_tracking fa fa-edit" title="Edit Script"></i>
     280                                    <i class="delete_tracking fa fa-times" title="Delete Script"></i>
     281                                    <input type="hidden" class="script_order" name="page_script_<?php echo $script->script_id; ?>_order" value="<?php echo $i; ?>">
     282                                    <input type="hidden" class="script_active" name="page_script_<?php echo $script->script_id; ?>_active" value="<?php if($script->active === true) { echo 'true'; } else { echo 'false'; } ?>">
     283                                    <input type="hidden" class="script_exists" name="page_script_<?php echo $script->script_id; ?>_exists" value="true">
     284                                </div>
     285                                <?php $i++; ?>
     286                            <?php } ?>
     287                            </ul>
     288                        <?php } ?>
     289                    </div>
     290            <?php
     291                    echo ob_get_clean();
     292                    die();
     293                }
     294            }
     295           
     296            // Admin Hooks
    225297            public static function initialize_admin_posts() {
    226298                add_action('admin_post_save_new_tracking_codes', array(__CLASS__, 'save_new_tracking_codes')); // If the user is logged in
     
    229301                add_action('admin_post_update_tracking_codes', array(__CLASS__, 'update_tracking_codes')); // If the user is logged in
    230302                add_action('admin_post_nopriv_update_tracking_codes', array(__CLASS__, 'update_tracking_codes')); // If the user in not logged in
    231             }
    232            
    233            
     303           
     304                add_action('admin_post_update_page_tracking_codes', array(__CLASS__, 'update_page_tracking_codes')); // If the user is logged in
     305                add_action('admin_post_nopriv_update_page_tracking_codes', array(__CLASS__, 'update_page_tracking_codes')); // If the user in not logged in
     306            }
     307           
     308           
     309           
     310            // Save New Tracking Codes
    234311            public static function save_new_tracking_codes() {
    235312                $header_scripts = unserialize(get_option(WP_HEADER_TRACKING_SCRIPT));
    236313                $footer_scripts = unserialize(get_option(WP_FOOTER_TRACKING_SCRIPT));
     314                $page_scripts = unserialize(get_option(WP_PAGE_TRACKING_SCRIPT));
    237315               
    238316                if(!$header_scripts) {
     
    244322                }
    245323               
    246                 if($_POST['new_header_script_name']) {
    247                     $tracking = new Tracking_Script();
    248                     $tracking->script_name = sanitize_text_field($_POST['new_header_script_name']);
    249                     $tracking->script_code = stripslashes(esc_textarea($_POST[WP_NEW_HEADER_TRACKING_SCRIPT]));
    250                     $tracking->active = true;
    251                     $tracking->order = count($header_scripts);
    252                     $header_scripts[] = $tracking;
    253                     update_option(WP_HEADER_TRACKING_SCRIPT, serialize($header_scripts));
    254                 }
    255                
    256                 if($_POST['new_footer_script_name']) {
    257                     $tracking = new Tracking_Script();
    258                     $tracking->script_name = sanitize_text_field($_POST['new_footer_script_name']);
    259                     $tracking->script_code = stripslashes(esc_textarea($_POST[WP_NEW_FOOTER_TRACKING_SCRIPT]));
    260                     $tracking->active = true;
    261                     $tracking->order = count($footer_scripts);
    262                     $footer_scripts[] = $tracking;
    263                     update_option(WP_FOOTER_TRACKING_SCRIPT, serialize($footer_scripts));
    264                 }
    265                
    266                 wp_redirect(get_admin_url().'admin.php?page=tracking-script-manager/tracking-scripts.php&tab=existing');
     324                if($_POST[WP_NEW_PAGE_TRACKING_SCRIPT_GLOBAL] && $_POST[WP_NEW_PAGE_TRACKING_SCRIPT_GLOBAL] == 'yes') {
     325                    $tracking_location = esc_attr($_POST[WP_NEW_PAGE_TRACKING_SCRIPT_LOCATION]);
     326                   
     327                    if($tracking_location == 'header') {
     328                        $tracking = new Tracking_Script();
     329                        $tracking->script_name = sanitize_text_field($_POST['new_page_script_name']);
     330                        $tracking->script_code = stripslashes(esc_textarea($_POST[WP_NEW_PAGE_TRACKING_SCRIPT]));
     331                        $tracking->active = true;
     332                        $tracking->order = count($header_scripts);
     333                        $tracking->location = 'header';
     334                        $header_scripts[] = $tracking;
     335                        update_option(WP_HEADER_TRACKING_SCRIPT, serialize($header_scripts));
     336                    } else if($tracking_location == 'footer') {
     337                        $tracking = new Tracking_Script();
     338                        $tracking->script_name = sanitize_text_field($_POST['new_page_script_name']);
     339                        $tracking->script_code = stripslashes(esc_textarea($_POST[WP_NEW_PAGE_TRACKING_SCRIPT]));
     340                        $tracking->active = true;
     341                        $tracking->order = count($footer_scripts);
     342                        $tracking->location = 'footer';
     343                        $footer_scripts[] = $tracking;
     344                        update_option(WP_FOOTER_TRACKING_SCRIPT, serialize($footer_scripts));
     345                    }
     346                } else {
     347                    if($_POST[WP_NEW_PAGE_TRACKING_SCRIPT_ID] && $_POST[WP_NEW_PAGE_TRACKING_SCRIPT]) {
     348                        $tracking_pagecount = unserialize(get_option(WP_PAGE_TRACKING_SCRIPT_COUNT));
     349                        if(!$tracking_pagecount) {
     350                            $tracking_pagecount = 1;
     351                        } else {
     352                            $tracking_pagecount++;
     353                        }
     354                        update_option(WP_PAGE_TRACKING_SCRIPT_COUNT, serialize($tracking_pagecount));
     355                       
     356                        $tracking = new Tracking_Script();
     357                        $tracking->script_name = sanitize_text_field($_POST['new_page_script_name']);
     358                        $tracking->script_code = stripslashes(esc_textarea($_POST[WP_NEW_PAGE_TRACKING_SCRIPT]));
     359                        $tracking->active = true;
     360                        $tracking->page_id = esc_attr($_POST[WP_NEW_PAGE_TRACKING_SCRIPT_ID]);
     361                        $tracking->location = esc_attr($_POST[WP_NEW_PAGE_TRACKING_SCRIPT_LOCATION]);
     362                        $tracking->script_id = $tracking_pagecount;
     363                        $page_scripts[] = $tracking;
     364                        update_option(WP_PAGE_TRACKING_SCRIPT, serialize($page_scripts));
     365                    }
     366                }
     367
     368                $redirect_url = get_admin_url().'admin.php?page='.TRACKING_SCRIPT_BASENAME;
     369                if($_POST[WP_NEW_PAGE_TRACKING_SCRIPT_GLOBAL] == 'yes') {
     370                    $redirect_url = get_admin_url().'admin.php?page='.TRACKING_SCRIPT_BASENAME.'&tab=global';
     371                } else if($_POST[WP_NEW_PAGE_TRACKING_SCRIPT_ID] && $_POST[WP_NEW_PAGE_TRACKING_SCRIPT]) {
     372                    $redirect_url = get_admin_url().'admin.php?page='.TRACKING_SCRIPT_BASENAME.'&tab=pages';
     373                }
     374               
     375                wp_redirect($redirect_url);
    267376                exit();
    268377            }
    269378           
    270             function update_tracking_codes() {
     379           
     380            // Update Global Codes
     381            public static function update_tracking_codes() {
    271382                $header_scripts = unserialize(get_option(WP_HEADER_TRACKING_SCRIPT));
    272383                $footer_scripts = unserialize(get_option(WP_FOOTER_TRACKING_SCRIPT));
     
    339450                update_option(WP_FOOTER_TRACKING_SCRIPT, serialize($footer_scripts));
    340451               
    341                 wp_redirect(get_admin_url().'admin.php?page=tracking-script-manager/tracking-scripts.php&tab=existing');
     452                wp_redirect(get_admin_url().'admin.php?page='.TRACKING_SCRIPT_BASENAME.'&tab=global');
    342453                exit();
    343454            }   
     455
     456
     457            // Update Page Specific Codes
     458            public static function update_page_tracking_codes() {
     459                $page_scripts = unserialize(get_option(WP_PAGE_TRACKING_SCRIPT));
     460
     461                $index = 0;
     462                foreach($page_scripts as $script) {
     463                    $script_id = $script->script_id;
     464                    if($_POST['page_script_'.$script_id.'_name']) {
     465                        $script->script_name = sanitize_text_field($_POST['page_script_'.$script_id.'_name']);
     466                    }
     467                    if($_POST['page_script_'.$script_id.'_code']) {
     468                        $script->script_code = stripslashes(esc_textarea($_POST['page_script_'.$script_id.'_code']));
     469                    }
     470                    if($_POST['page_script_'.$script_id.'_active']) {
     471                        if($_POST['page_script_'.$script_id.'_active'] === 'false') {
     472                            $script->active = false;
     473                        } else {
     474                            $script->active = true;
     475                        }
     476                    }
     477                    if($_POST['page_script_'.$script_id.'_order']) {
     478                        $order = filter_input(INPUT_POST, 'page_script_'.$script_id.'_order', FILTER_VALIDATE_INT);
     479                        if(is_int($order)) {
     480                            $script->order = $order;
     481                        }
     482                    }
     483                    if($_POST['page_script_'.$script_id.'_exists']) {
     484                        if($_POST['page_script_'.$script_id.'_exists'] === 'false') {
     485                            unset($page_scripts[$index]);
     486                        }
     487                    }
     488                    $index++;
     489                }
     490
     491                usort($page_scripts, array(__CLASS__, 'compare_order'));               
     492
     493                update_option(WP_PAGE_TRACKING_SCRIPT, serialize($page_scripts));
     494               
     495                wp_redirect(get_admin_url().'admin.php?page='.TRACKING_SCRIPT_BASENAME.'&tab=pages');
     496                exit();
     497            }
    344498           
    345499            public static function compare_order($a, $b) {
  • tracking-script-manager/tags/1.1/css/main.css

    r1092690 r1093487  
    1 *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@font-face{font-family:'FontAwesome';src:url("fonts/fontawesome-webfont.eot?v=4.0.3");src:url("fonts/fontawesome-webfont.eot?#iefix&v=4.0.3") format("embedded-opentype"),url("fonts/fontawesome-webfont.woff?v=4.0.3") format("woff"),url("fonts/fontawesome-webfont.ttf?v=4.0.3") format("truetype"),url("fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular") format("svg");font-weight:normal;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-gear:before,.fa-cog:before{content:""}.fa-trash-o:before{content:""}.fa-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-rotate-right:before,.fa-repeat:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before{content:""}.fa-check-circle:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-warning:before,.fa-exclamation-triangle:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-gears:before,.fa-cogs:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook:before{content:""}.fa-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before{content:""}.fa-arrow-circle-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-save:before,.fa-floppy-o:before{content:""}.fa-square:before{content:""}.fa-bars:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-unsorted:before,.fa-sort:before{content:""}.fa-sort-down:before,.fa-sort-asc:before{content:""}.fa-sort-up:before,.fa-sort-desc:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-legal:before,.fa-gavel:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-flash:before,.fa-bolt:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-paste:before,.fa-clipboard:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-reply-all:before{content:""}.fa-mail-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-unlink:before,.fa-chain-broken:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:""}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:""}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:""}.fa-euro:before,.fa-eur:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-rupee:before,.fa-inr:before{content:""}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:""}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:""}.fa-won:before,.fa-krw:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-turkish-lira:before,.fa-try:before{content:""}.fa-plus-square-o:before{content:""}.tracking_scripts_wrap{display:block;float:left;margin-right:2.35765%;width:100%}.tracking_scripts_wrap:last-child{margin-right:0}.tracking_scripts_wrap .script_section{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:40px}.tracking_scripts_wrap .script_section:last-child{margin-right:0}.tracking_scripts_wrap .script_section h2{display:block;float:left;margin-right:2.35765%;width:14.70196%;font-size:14px;font-weight:600;padding:0}.tracking_scripts_wrap .script_section h2:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts{display:block;float:left;margin-right:2.35765%;width:31.76157%}.tracking_scripts_wrap .add_tracking_scripts:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts label{display:block;float:left;margin-right:2.35765%;width:22.37878%;margin-bottom:20px;text-align:left}.tracking_scripts_wrap .add_tracking_scripts label:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts input[type="text"]{display:block;float:left;margin-right:2.35765%;width:74.41059%;margin-right:0;float:right}.tracking_scripts_wrap .add_tracking_scripts input[type="text"]:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts textarea{display:block;float:left;margin-right:2.35765%;width:100%}.tracking_scripts_wrap .add_tracking_scripts textarea:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts{display:block;float:left;margin-right:2.35765%;width:57.35098%}.tracking_scripts_wrap .tracking_scripts:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:10px;font-size:24px;background-color:white;padding:20px;cursor:move}.tracking_scripts_wrap .tracking_scripts .tracking_script:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script>*{vertical-align:middle;margin-top:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i{font-family:'FontAwesome';cursor:pointer;display:block;float:left;margin-right:2.35765%;width:6.17215%}.tracking_scripts_wrap .tracking_scripts .tracking_script i:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i:first-of-type{display:block;float:left;margin-right:2.35765%;width:1.90725%;cursor:move}.tracking_scripts_wrap .tracking_scripts .tracking_script i:first-of-type:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script>p,.tracking_scripts_wrap .tracking_scripts .tracking_script div{display:inline-block}.tracking_scripts_wrap .tracking_scripts .tracking_script>p{display:block;float:left;margin-right:2.35765%;width:6.17215%;font-size:12px}.tracking_scripts_wrap .tracking_scripts .tracking_script>p:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div{display:block;float:left;margin-right:2.35765%;width:57.35098%}.tracking_scripts_wrap .tracking_scripts .tracking_script div:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[type="text"]{display:block;float:left;margin-right:2.35765%;width:100%;font-size:14px;margin:0 0 10px}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[type="text"]:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[readonly]{border:none;background-color:transparent;box-shadow:none;color:black}
     1*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@font-face{font-family:'FontAwesome';src:url("fonts/fontawesome-webfont.eot?v=4.0.3");src:url("fonts/fontawesome-webfont.eot?#iefix&v=4.0.3") format("embedded-opentype"),url("fonts/fontawesome-webfont.woff?v=4.0.3") format("woff"),url("fonts/fontawesome-webfont.ttf?v=4.0.3") format("truetype"),url("fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular") format("svg");font-weight:normal;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-gear:before,.fa-cog:before{content:""}.fa-trash-o:before{content:""}.fa-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-rotate-right:before,.fa-repeat:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before{content:""}.fa-check-circle:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-warning:before,.fa-exclamation-triangle:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-gears:before,.fa-cogs:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook:before{content:""}.fa-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before{content:""}.fa-arrow-circle-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-save:before,.fa-floppy-o:before{content:""}.fa-square:before{content:""}.fa-bars:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-unsorted:before,.fa-sort:before{content:""}.fa-sort-down:before,.fa-sort-asc:before{content:""}.fa-sort-up:before,.fa-sort-desc:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-legal:before,.fa-gavel:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-flash:before,.fa-bolt:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-paste:before,.fa-clipboard:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-reply-all:before{content:""}.fa-mail-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-unlink:before,.fa-chain-broken:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:""}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:""}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:""}.fa-euro:before,.fa-eur:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-rupee:before,.fa-inr:before{content:""}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:""}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:""}.fa-won:before,.fa-krw:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-turkish-lira:before,.fa-try:before{content:""}.fa-plus-square-o:before{content:""}.tracking_scripts_wrap{display:block;float:left;margin-right:2.35765%;width:100%}.tracking_scripts_wrap:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts_main_header{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:20px}.tracking_scripts_wrap .tracking_scripts_main_header:last-child{margin-right:0}.tracking_scripts_wrap .script_section{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:40px}.tracking_scripts_wrap .script_section:last-child{margin-right:0}.tracking_scripts_wrap .script_section h2{display:block;float:left;margin-right:2.35765%;width:14.70196%;font-size:14px;line-height:14px;font-weight:600;padding:0}.tracking_scripts_wrap .script_section h2:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts_right_side{display:block;float:left;margin-right:2.35765%;width:31.76157%}.tracking_scripts_wrap .add_tracking_scripts_right_side:last-child{margin-right:0}.tracking_scripts_wrap #add_page_tracking_script_code label{margin-bottom:20px}.tracking_scripts_wrap .add_tracking_scripts{display:block;float:left;margin-right:2.35765%;width:57.35098%}.tracking_scripts_wrap .add_tracking_scripts:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts label{display:block;float:left;margin-right:2.35765%;width:14.70196%;text-align:left;clear:left}.tracking_scripts_wrap .add_tracking_scripts label:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts label.single_line_label{line-height:28px}.tracking_scripts_wrap .add_tracking_scripts select{display:block;float:left;margin-right:2.35765%;width:14.70196%;margin-right:0}.tracking_scripts_wrap .add_tracking_scripts select:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts input[type="text"]{display:block;float:left;margin-right:2.35765%;width:23.23176%;margin-right:0}.tracking_scripts_wrap .add_tracking_scripts input[type="text"]:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts input[type="radio"]{margin-left:14px}.tracking_scripts_wrap .add_tracking_scripts input[type="radio"]:first-child{margin-left:0}.tracking_scripts_wrap .add_tracking_scripts textarea{display:block;float:left;margin-right:2.35765%;width:23.23176%}.tracking_scripts_wrap .add_tracking_scripts textarea:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts.add_tracking_scripts_row{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:20px}.tracking_scripts_wrap .add_tracking_scripts.add_tracking_scripts_row:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts{display:block;float:left;margin-right:2.35765%;width:65.88078%}.tracking_scripts_wrap .tracking_scripts:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:10px;font-size:24px;background-color:white;padding:20px;cursor:move}.tracking_scripts_wrap .tracking_scripts .tracking_script:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script>*{vertical-align:middle;margin-top:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i{font-family:'FontAwesome';cursor:pointer;display:block;float:left;margin-right:2.35765%;width:6.17215%}.tracking_scripts_wrap .tracking_scripts .tracking_script i:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i:first-of-type{display:block;float:left;margin-right:2.35765%;width:1.90725%;cursor:move}.tracking_scripts_wrap .tracking_scripts .tracking_script i:first-of-type:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script>p,.tracking_scripts_wrap .tracking_scripts .tracking_script div{display:inline-block}.tracking_scripts_wrap .tracking_scripts .tracking_script>p{display:block;float:left;margin-right:2.35765%;width:6.17215%;font-size:12px}.tracking_scripts_wrap .tracking_scripts .tracking_script>p:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div{display:block;float:left;margin-right:2.35765%;width:57.35098%}.tracking_scripts_wrap .tracking_scripts .tracking_script div:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[type="text"]{display:block;float:left;margin-right:2.35765%;width:100%;font-size:14px;margin:0 0 10px}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[type="text"]:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[readonly]{border:none;background-color:transparent;box-shadow:none;color:black}
    22/*# sourceMappingURL=main.css.map */
  • tracking-script-manager/tags/1.1/readme.txt

    r1092709 r1093487  
    44Tags: tracking, analytics, scripts
    55Requires at least: 3.0.1
    6 Tested up to: 4.0
    7 Stable tag: 1.0.9
     6Tested up to: 4.1
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    15 Add tracking codes and scripts, or any code to the header or footer of your WordPress website without editing code. Easily manage existing scripts including editing, updating, reordering and deactivating. Tracking Scripts Manager is especially useful for advertising tracking scripts, analytic scripts, and promotional scripts.
     15Add tracking codes and scripts, or any code to the header, footer or specific page of your WordPress website without editing code. Easily manage existing scripts including editing, updating, reordering and deactivating. Tracking Scripts Manager is especially useful for advertising tracking scripts, analytic scripts, and promotional scripts.
    1616
    1717== Installation ==
     
    19191. Upload the 'tracking-script-manager' folder to the '/wp-content/plugins/' directory.
    20202. Activate the plugin through the 'Plugins' menu in WordPress.
    21 3. Click on the 'Tracking Scripts' options page.
     213. Click on the 'Tracking Scripts Manager' options page.
    2222
    2323== Frequently Asked Questions ==
     
    2525= How do I add a script? =
    2626
    27 On the "Add New" tab, enter a name and the script code to either the Header or Footer section and click "Add Scripts".
     27On the "Add New" tab, select the location for the script (header or footer) and whether you want it to be global or page-specific. If its global, simply enter a name and the content of the script. If page-specific, select the post type and the post for which to add the script. Then enter a name and the script content.
    2828
    2929= How do I delete a script? =
    3030
    31 On the "Existing" tab, click the delete (X) button next to the script you would like to delete. Confirm your decision to delete and then click "Update Scripts".
     31On either the "Global" or "Specific Location" tabs, click the delete (X) button next to the script you would like to delete. Confirm your decision to delete and then click "Update Scripts".
    3232
    3333= How do I reorder scripts? =
    3434
    35 On the "Existing" tab, simply click and drag the script to the new position you would like it to be. Then click "Update Scripts".
     35On either the "Global" or "Specific Location" tabs, simply click and drag the script to the new position you would like it to be. Then click "Update Scripts".
    3636
    3737== Screenshots ==
    3838
    39 1. Add a new Tracking Script to the header and/or footer.
    40 2. View your current Tracking Scripts.
    41 3. Edit the name and actual code for the script.
     391. Add a new Tracking Script globally to the header or footer.
     402. Add a new Tracking Script to a specific post or page (including custom post types).
     413. View your global Tracking Scripts.
     424. View your page-specific Tracking Scripts.
    4243
    4344== Changelog ==
     45
     46= 1.1 =
     47* Major Upgrade: Allows for scripts to be added to a specific page
    4448
    4549= 1.0.9 =
     
    7579== Upgrade Notice ==
    7680
     81= 1.1 =
     82Major Upgrade: Allows for scripts to be added to a specific page
     83
    7784= 1.0.9 =
    7885Cleaning up script enqueuing
     
    8289
    8390= 1.0.7 =
    84 Fixed some CSS issues
     91Fixed CSS issues
    8592
    8693= 1.0.6 =
  • tracking-script-manager/trunk/css/main.css

    r1092690 r1093487  
    1 *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@font-face{font-family:'FontAwesome';src:url("fonts/fontawesome-webfont.eot?v=4.0.3");src:url("fonts/fontawesome-webfont.eot?#iefix&v=4.0.3") format("embedded-opentype"),url("fonts/fontawesome-webfont.woff?v=4.0.3") format("woff"),url("fonts/fontawesome-webfont.ttf?v=4.0.3") format("truetype"),url("fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular") format("svg");font-weight:normal;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-gear:before,.fa-cog:before{content:""}.fa-trash-o:before{content:""}.fa-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-rotate-right:before,.fa-repeat:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before{content:""}.fa-check-circle:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-warning:before,.fa-exclamation-triangle:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-gears:before,.fa-cogs:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook:before{content:""}.fa-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before{content:""}.fa-arrow-circle-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-save:before,.fa-floppy-o:before{content:""}.fa-square:before{content:""}.fa-bars:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-unsorted:before,.fa-sort:before{content:""}.fa-sort-down:before,.fa-sort-asc:before{content:""}.fa-sort-up:before,.fa-sort-desc:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-legal:before,.fa-gavel:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-flash:before,.fa-bolt:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-paste:before,.fa-clipboard:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-reply-all:before{content:""}.fa-mail-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-unlink:before,.fa-chain-broken:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:""}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:""}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:""}.fa-euro:before,.fa-eur:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-rupee:before,.fa-inr:before{content:""}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:""}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:""}.fa-won:before,.fa-krw:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-turkish-lira:before,.fa-try:before{content:""}.fa-plus-square-o:before{content:""}.tracking_scripts_wrap{display:block;float:left;margin-right:2.35765%;width:100%}.tracking_scripts_wrap:last-child{margin-right:0}.tracking_scripts_wrap .script_section{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:40px}.tracking_scripts_wrap .script_section:last-child{margin-right:0}.tracking_scripts_wrap .script_section h2{display:block;float:left;margin-right:2.35765%;width:14.70196%;font-size:14px;font-weight:600;padding:0}.tracking_scripts_wrap .script_section h2:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts{display:block;float:left;margin-right:2.35765%;width:31.76157%}.tracking_scripts_wrap .add_tracking_scripts:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts label{display:block;float:left;margin-right:2.35765%;width:22.37878%;margin-bottom:20px;text-align:left}.tracking_scripts_wrap .add_tracking_scripts label:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts input[type="text"]{display:block;float:left;margin-right:2.35765%;width:74.41059%;margin-right:0;float:right}.tracking_scripts_wrap .add_tracking_scripts input[type="text"]:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts textarea{display:block;float:left;margin-right:2.35765%;width:100%}.tracking_scripts_wrap .add_tracking_scripts textarea:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts{display:block;float:left;margin-right:2.35765%;width:57.35098%}.tracking_scripts_wrap .tracking_scripts:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:10px;font-size:24px;background-color:white;padding:20px;cursor:move}.tracking_scripts_wrap .tracking_scripts .tracking_script:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script>*{vertical-align:middle;margin-top:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i{font-family:'FontAwesome';cursor:pointer;display:block;float:left;margin-right:2.35765%;width:6.17215%}.tracking_scripts_wrap .tracking_scripts .tracking_script i:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i:first-of-type{display:block;float:left;margin-right:2.35765%;width:1.90725%;cursor:move}.tracking_scripts_wrap .tracking_scripts .tracking_script i:first-of-type:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script>p,.tracking_scripts_wrap .tracking_scripts .tracking_script div{display:inline-block}.tracking_scripts_wrap .tracking_scripts .tracking_script>p{display:block;float:left;margin-right:2.35765%;width:6.17215%;font-size:12px}.tracking_scripts_wrap .tracking_scripts .tracking_script>p:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div{display:block;float:left;margin-right:2.35765%;width:57.35098%}.tracking_scripts_wrap .tracking_scripts .tracking_script div:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[type="text"]{display:block;float:left;margin-right:2.35765%;width:100%;font-size:14px;margin:0 0 10px}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[type="text"]:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[readonly]{border:none;background-color:transparent;box-shadow:none;color:black}
     1*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@font-face{font-family:'FontAwesome';src:url("fonts/fontawesome-webfont.eot?v=4.0.3");src:url("fonts/fontawesome-webfont.eot?#iefix&v=4.0.3") format("embedded-opentype"),url("fonts/fontawesome-webfont.woff?v=4.0.3") format("woff"),url("fonts/fontawesome-webfont.ttf?v=4.0.3") format("truetype"),url("fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular") format("svg");font-weight:normal;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-gear:before,.fa-cog:before{content:""}.fa-trash-o:before{content:""}.fa-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-rotate-right:before,.fa-repeat:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before{content:""}.fa-check-circle:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-warning:before,.fa-exclamation-triangle:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-gears:before,.fa-cogs:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook:before{content:""}.fa-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before{content:""}.fa-arrow-circle-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-save:before,.fa-floppy-o:before{content:""}.fa-square:before{content:""}.fa-bars:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-unsorted:before,.fa-sort:before{content:""}.fa-sort-down:before,.fa-sort-asc:before{content:""}.fa-sort-up:before,.fa-sort-desc:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-legal:before,.fa-gavel:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-flash:before,.fa-bolt:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-paste:before,.fa-clipboard:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-reply-all:before{content:""}.fa-mail-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-unlink:before,.fa-chain-broken:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:""}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:""}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:""}.fa-euro:before,.fa-eur:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-rupee:before,.fa-inr:before{content:""}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:""}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:""}.fa-won:before,.fa-krw:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-turkish-lira:before,.fa-try:before{content:""}.fa-plus-square-o:before{content:""}.tracking_scripts_wrap{display:block;float:left;margin-right:2.35765%;width:100%}.tracking_scripts_wrap:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts_main_header{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:20px}.tracking_scripts_wrap .tracking_scripts_main_header:last-child{margin-right:0}.tracking_scripts_wrap .script_section{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:40px}.tracking_scripts_wrap .script_section:last-child{margin-right:0}.tracking_scripts_wrap .script_section h2{display:block;float:left;margin-right:2.35765%;width:14.70196%;font-size:14px;line-height:14px;font-weight:600;padding:0}.tracking_scripts_wrap .script_section h2:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts_right_side{display:block;float:left;margin-right:2.35765%;width:31.76157%}.tracking_scripts_wrap .add_tracking_scripts_right_side:last-child{margin-right:0}.tracking_scripts_wrap #add_page_tracking_script_code label{margin-bottom:20px}.tracking_scripts_wrap .add_tracking_scripts{display:block;float:left;margin-right:2.35765%;width:57.35098%}.tracking_scripts_wrap .add_tracking_scripts:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts label{display:block;float:left;margin-right:2.35765%;width:14.70196%;text-align:left;clear:left}.tracking_scripts_wrap .add_tracking_scripts label:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts label.single_line_label{line-height:28px}.tracking_scripts_wrap .add_tracking_scripts select{display:block;float:left;margin-right:2.35765%;width:14.70196%;margin-right:0}.tracking_scripts_wrap .add_tracking_scripts select:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts input[type="text"]{display:block;float:left;margin-right:2.35765%;width:23.23176%;margin-right:0}.tracking_scripts_wrap .add_tracking_scripts input[type="text"]:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts input[type="radio"]{margin-left:14px}.tracking_scripts_wrap .add_tracking_scripts input[type="radio"]:first-child{margin-left:0}.tracking_scripts_wrap .add_tracking_scripts textarea{display:block;float:left;margin-right:2.35765%;width:23.23176%}.tracking_scripts_wrap .add_tracking_scripts textarea:last-child{margin-right:0}.tracking_scripts_wrap .add_tracking_scripts.add_tracking_scripts_row{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:20px}.tracking_scripts_wrap .add_tracking_scripts.add_tracking_scripts_row:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts{display:block;float:left;margin-right:2.35765%;width:65.88078%}.tracking_scripts_wrap .tracking_scripts:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script{display:block;float:left;margin-right:2.35765%;width:100%;margin-bottom:10px;font-size:24px;background-color:white;padding:20px;cursor:move}.tracking_scripts_wrap .tracking_scripts .tracking_script:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script>*{vertical-align:middle;margin-top:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i{font-family:'FontAwesome';cursor:pointer;display:block;float:left;margin-right:2.35765%;width:6.17215%}.tracking_scripts_wrap .tracking_scripts .tracking_script i:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i:first-of-type{display:block;float:left;margin-right:2.35765%;width:1.90725%;cursor:move}.tracking_scripts_wrap .tracking_scripts .tracking_script i:first-of-type:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script i:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script>p,.tracking_scripts_wrap .tracking_scripts .tracking_script div{display:inline-block}.tracking_scripts_wrap .tracking_scripts .tracking_script>p{display:block;float:left;margin-right:2.35765%;width:6.17215%;font-size:12px}.tracking_scripts_wrap .tracking_scripts .tracking_script>p:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div{display:block;float:left;margin-right:2.35765%;width:57.35098%}.tracking_scripts_wrap .tracking_scripts .tracking_script div:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[type="text"]{display:block;float:left;margin-right:2.35765%;width:100%;font-size:14px;margin:0 0 10px}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[type="text"]:last-child{margin-right:0}.tracking_scripts_wrap .tracking_scripts .tracking_script div input[readonly]{border:none;background-color:transparent;box-shadow:none;color:black}
    22/*# sourceMappingURL=main.css.map */
  • tracking-script-manager/trunk/readme.txt

    r1092709 r1093487  
    44Tags: tracking, analytics, scripts
    55Requires at least: 3.0.1
    6 Tested up to: 4.0
    7 Stable tag: 1.0.9
     6Tested up to: 4.1
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    15 Add tracking codes and scripts, or any code to the header or footer of your WordPress website without editing code. Easily manage existing scripts including editing, updating, reordering and deactivating. Tracking Scripts Manager is especially useful for advertising tracking scripts, analytic scripts, and promotional scripts.
     15Add tracking codes and scripts, or any code to the header, footer or specific page of your WordPress website without editing code. Easily manage existing scripts including editing, updating, reordering and deactivating. Tracking Scripts Manager is especially useful for advertising tracking scripts, analytic scripts, and promotional scripts.
    1616
    1717== Installation ==
     
    19191. Upload the 'tracking-script-manager' folder to the '/wp-content/plugins/' directory.
    20202. Activate the plugin through the 'Plugins' menu in WordPress.
    21 3. Click on the 'Tracking Scripts' options page.
     213. Click on the 'Tracking Scripts Manager' options page.
    2222
    2323== Frequently Asked Questions ==
     
    2525= How do I add a script? =
    2626
    27 On the "Add New" tab, enter a name and the script code to either the Header or Footer section and click "Add Scripts".
     27On the "Add New" tab, select the location for the script (header or footer) and whether you want it to be global or page-specific. If its global, simply enter a name and the content of the script. If page-specific, select the post type and the post for which to add the script. Then enter a name and the script content.
    2828
    2929= How do I delete a script? =
    3030
    31 On the "Existing" tab, click the delete (X) button next to the script you would like to delete. Confirm your decision to delete and then click "Update Scripts".
     31On either the "Global" or "Specific Location" tabs, click the delete (X) button next to the script you would like to delete. Confirm your decision to delete and then click "Update Scripts".
    3232
    3333= How do I reorder scripts? =
    3434
    35 On the "Existing" tab, simply click and drag the script to the new position you would like it to be. Then click "Update Scripts".
     35On either the "Global" or "Specific Location" tabs, simply click and drag the script to the new position you would like it to be. Then click "Update Scripts".
    3636
    3737== Screenshots ==
    3838
    39 1. Add a new Tracking Script to the header and/or footer.
    40 2. View your current Tracking Scripts.
    41 3. Edit the name and actual code for the script.
     391. Add a new Tracking Script globally to the header or footer.
     402. Add a new Tracking Script to a specific post or page (including custom post types).
     413. View your global Tracking Scripts.
     424. View your page-specific Tracking Scripts.
    4243
    4344== Changelog ==
     45
     46= 1.1 =
     47* Major Upgrade: Allows for scripts to be added to a specific page
    4448
    4549= 1.0.9 =
     
    7579== Upgrade Notice ==
    7680
     81= 1.1 =
     82Major Upgrade: Allows for scripts to be added to a specific page
     83
    7784= 1.0.9 =
    7885Cleaning up script enqueuing
     
    8289
    8390= 1.0.7 =
    84 Fixed some CSS issues
     91Fixed CSS issues
    8592
    8693= 1.0.6 =
Note: See TracChangeset for help on using the changeset viewer.