pepebe
5/24/2014 - 8:45 PM

Alternative layout for sterc seoPro

Alternative layout for sterc seoPro

<?php

    /*
        ppb_seoProCss
        Alternative layout for sterc seoPro 
        
        AUTHOR:
        info@pepebe.de
        
        USAGE:
        * create a new plugin, 
        * paste the content of this file into the plugin
        * trigger it on OnDocFormPrerender
        
    */


$style = "
    <style>
    
    #modx-resource-header h2 {
        height: 1em; /* prevent screen from jumping if pagetitle is added or removed */
    }
    
    
     /* prevent formfields from jumping if error message is added or deleted */
    .x-form-element {
        position: static;
        padding-bottom: 16px!important;
    }
    .x-form-invalid-msg {
        position: absolute;
    }
    /* END */

    .x-form-item {
        position: relative;
    }
    
    .seopro-counter {position: static;}
    
        .seopro-counter-wrap {
            border-radius: 0;
        }

        .seopro-counter-chars,
        .seopro-counter-keywords {
            display: block;
            position: absolute;
            right: 5px;
            
            margin: 0;
            padding: 0;
            
            border: none;
        }
      
        .seopro-counter-chars strong,
        .seopro-counter-keywords strong {display: none;}

        .seopro-counter-keywords {
            top: auto;
            bottom: 26px;
            
            height: 20px;
            width:20px;
            
        }        

        .seopro-counter-keywords.red {
            background-position: 4px 4px!important;
        }
        
        .seopro-counter-keywords.green {
            background-position: 4px 2px!important;
        }
        
        .seopro-counter-wrap.seopro-counter-keywords {
        }


        
        .seopro-counter-chars {
            top: 0;
            bottom: auto;
            
            font-size: 12px;
            height: 12px;
            padding: 0;
            margin: 0; 
            background: transparent;
        }
      
            .seopro-counter-chars.current {}
            .seopro-counter-chars.allowed {}
      
            .seopro-counter-keywords.green {}
            .seopro-counter-keywords.red  {}
      
            #seopro-resource-pagetitle {}
                #seopro-counter-keywords-pagetitle {}
                #seopro-counter-chars-pagetitle {}
            
            #seopro-resource-longtitle {}
                #seopro-counter-keywords-longtitle {}
                #seopro-counter-chars-longtitle {}  
            
            #seopro-resource-description {}
                #seopro-counter-keywords-description {
                    bottom: 30px;
                }
                #seopro-counter-chars-description {} 

    </style>
";

$modx->regClientStartupHTMLBlock($style);

return;