Esempio n. 1
0
<?php

$c = new ShareAndFollow();
$cssOptions = $c->getCSSOptions();
$buildCss = '';
// start of CSS or head section build
$printCSS = '';
if ($cssOptions['cssid'] == $c->_options['cssid'] && $c->_options['add_css'] == 'false') {
    $buildCss = $cssOptions['screen'];
    $printCSS = $cssOptions['print'];
} else {
    if ($c->_options['add_css'] == 'true') {
        $buildCss .= "/* cssid=" . $c->_options['cssid'] . "                            */   \n";
        $buildCss .= "/* WARNING!! this file is dynamicaly generated changes will  */ \n";
        $buildCss .= "/* be overwritten with every change to the admin screen.      */ \n";
        $buildCss .= "/* You can add css to this file in the admin screen.       */ \n\n";
    }
    function findLocation($location, $width)
    {
        switch ($location) {
            case '000':
                return $local = 0;
                break;
            case '00f':
                return $local = $width;
                break;
            case '333':
                return $local = $width * 2;
                break;
            case '666':
                return $local = $width * 3;