コード例 #1
0
ファイル: edit_title.php プロジェクト: hamilr2/rpits
  <div style="position:absolute;height:25px;width:640px;background-color:#FF7722;opacity:.3;left:0px;bottom:0px;"></div>
<img style="position:absolute;bottom:0px;<?php 
if ($row["h"] < 455) {
    ?>
margin-bottom:25px<?php 
}
?>
" width="640" src="render_title.php?id=<?php 
echo $row["id"];
?>
" />
<?php 
foreach ($commands as $c) {
    if ($c["command"] == "text") {
        $content = getContent($id, $c["content"]);
        $font = getFontFamily($c["font"]);
        if ($c["align"] == "r") {
            $align = "right";
            $dist = 640 - $c["points"][0];
        } else {
            $align = "left";
            $dist = $c["points"][0];
        }
        echo "<div class=\"floater\" style=\"{$align}:" . $dist . "px;top:" . ($c["points"][1] - $c["size"]) . "px;height:" . ($c["size"] - $c["size"] / 4) . "pt;width:" . $c["max"] . "px\">\n";
        echo "\t<input class=\"input\" type=\"text\" name=\"" . $c["content"] . "\"style=\"font-family:{$font};";
        echo "font-size:" . $c["size"] . "pt;text-align:{$align};margin-top:-" . $c["size"] / 3 . "px;width:" . $c["max"] . "px\" value=\"{$content}\"/>\n</div>\n";
    }
}
?>
<input type="hidden" name="id" value="<?php 
echo $id;
コード例 #2
0
ファイル: googleFontsStyles.php プロジェクト: s3cur3/ci-maf
function ciPrintFontStyles()
{
    function getFontFamily($key, $default)
    {
        return str_replace("+", " ", get_option($key, $default));
    }
    $h1Family = getFontFamily('title_font_family', "Bree Serif");
    $h2Family = getFontFamily('heading_font_family', "Bree Serif");
    $widgetTitleFamily = getFontFamily('widget_title_font_family', "Open Sans");
    $bodyFamily = getFontFamily('body_font_family', "Open Sans");
    $menuFamily = getFontFamily('menu_font_family', "Open Sans");
    $h1Weight = get_option('title_font_weight', '400');
    $h2Weight = get_option('heading_font_weight', '400');
    $widgetTitleWeight = get_option('widget_title_font_weight', '700');
    $bodyWeight = get_option('body_font_weight', '400');
    $menuWeight = get_option('menu_font_weight', '700');
    $h1Fallback = get_option('title_font_fallback', 'Georgia, Garamond, sans-serif');
    $h2Fallback = get_option('heading_font_fallback', 'Georgia, Garamond, sans-serif');
    $widgetTitleFallback = get_option('widget_title_font_fallback', '"Helvetica Neue", Helvetica, Arial, sans-serif');
    $bodyFallback = get_option('body_font_fallback', '"Helvetica Neue", Helvetica, Arial, sans-serif');
    $menuFallback = get_option('menu_font_fallback', '"Helvetica Neue", Helvetica, Arial, sans-serif');
    ?>
    <!-- Font styles -->
    <style>
        body, html, div {
            font-family: "<?php 
    echo $bodyFamily;
    ?>
", <?php 
    echo $bodyFallback;
    ?>
;
            font-weight: <?php 
    echo $bodyWeight;
    ?>
;
        }
        .employees h3, .practice-area h3 {
            font-family: "<?php 
    echo $bodyFamily;
    ?>
", <?php 
    echo $bodyFallback;
    ?>
;
        }
        h1, a.navbar-brand {
            font-family: "<?php 
    echo $h1Family;
    ?>
", <?php 
    echo $h1Fallback;
    ?>
;
            font-weight: <?php 
    echo $h1Weight;
    ?>
;
        }
        h2, h3, h4, h5, h6 {
            font-family: "<?php 
    echo $h2Family;
    ?>
", <?php 
    echo $h2Fallback;
    ?>
;
        }
        h2, h3 {
            font-weight: <?php 
    echo $h2Weight;
    ?>
;
        }
        .widget h3, .stats h4 {
            font-family: "<?php 
    echo $widgetTitleFamily;
    ?>
", <?php 
    echo $widgetTitleFallback;
    ?>
;
            font-weight: <?php 
    echo $widgetTitleWeight;
    ?>
;
        }
        .nav {
            font-family: "<?php 
    echo $menuFamily;
    ?>
", <?php 
    echo $menuFallback;
    ?>
;
            font-weight: <?php 
    echo $menuWeight;
    ?>
;
        }
    </style>
<?php 
}
コード例 #3
0
</h2>
    </div>
    <div class="panel-body">
        <?php 
//passwortprüfung:
if (checkPass($benutzername, $passwort, $unterkunft_id, $link)) {
    ?>

            <form action="styleAendern.php" method="post" name="styles" target="_self" id="styles">
                <input name="stylesheet" type="hidden" value="<?php 
    echo $stylesheet;
    ?>
">
                <?php 
    if ($font_family == "1") {
        $standard = getFontFamily($style);
        ?>
                    <div class="row">
                        <div class="col-sm-2">
                            <label class="control-label">
                                <?php 
        echo getUebersetzung("Schriftart", $sprache, $link);
        ?>
                            </label>
                        </div>
                        <div class="col-sm-3">
                            <select name="font_family" class="form-control">
                                <option
                                    value="Arial, Helvetica, sans-serif" <?php 
        if ($standard == "Arial, Helvetica, sans-serif") {
            echo " selected";
コード例 #4
0
ファイル: googleFontsStyles.php プロジェクト: s3cur3/ci-mdo
function ciPrintFontStyles()
{
    function getFontFamily($key, $default)
    {
        return str_replace("+", " ", get_option($key, $default));
    }
    $h1Family = getFontFamily('title_font_family', "Montserrat");
    $h2Family = getFontFamily('heading_font_family', "Montserrat");
    $widgetTitleFamily = getFontFamily('widget_title_font_family', "Montserrat");
    $bodyFamily = getFontFamily('body_font_family', "Lora");
    $menuFamily = getFontFamily('menu_font_family', "Montserrat");
    $h1Weight = get_option('title_font_weight', '400');
    $h2Weight = get_option('heading_font_weight', '400');
    $widgetTitleWeight = get_option('widget_title_font_weight', '400');
    $bodyWeight = get_option('body_font_weight', '400');
    $menuWeight = get_option('menu_font_weight', '700');
    $serifFallback = 'Georgia, Garamond, sans-serif';
    $sansFallback = '"Helvetica Neue", Helvetica, Arial, sans-serif';
    $h1Fallback = get_option('title_font_fallback', $sansFallback);
    $h2Fallback = get_option('heading_font_fallback', $sansFallback);
    $widgetTitleFallback = get_option('widget_title_font_fallback', $sansFallback);
    $bodyFallback = get_option('body_font_fallback', $serifFallback);
    $menuFallback = get_option('menu_font_fallback', $sansFallback);
    ?>
    <!-- Font styles -->
    <style>
        body, html, div {
            font-family: "<?php 
    echo $bodyFamily;
    ?>
", <?php 
    echo $bodyFallback;
    ?>
;
            font-weight: <?php 
    echo $bodyWeight;
    ?>
;
        }
        h1, a.navbar-brand {
            font-family: "<?php 
    echo $h1Family;
    ?>
", <?php 
    echo $h1Fallback;
    ?>
;
            font-weight: <?php 
    echo $h1Weight;
    ?>
;
        }
        h2, h3, h4, h5, h6 {
            font-family: "<?php 
    echo $h2Family;
    ?>
", <?php 
    echo $h2Fallback;
    ?>
;
        }
        h2, h3 {
            font-weight: <?php 
    echo $h2Weight;
    ?>
;
        }
        .widget h3, .stats h4, input[type="submit"], .btn, .nav-search {
            font-family: "<?php 
    echo $widgetTitleFamily;
    ?>
", <?php 
    echo $widgetTitleFallback;
    ?>
;
            font-weight: <?php 
    echo $widgetTitleWeight;
    ?>
;
        }
        .nav {
            font-family: "<?php 
    echo $menuFamily;
    ?>
", <?php 
    echo $menuFallback;
    ?>
;
            font-weight: <?php 
    echo $menuWeight;
    ?>
;
        }
        h1 .btn, h2 .btn, h3 .btn, h4 .btn {
            font-family: "<?php 
    echo $menuFamily;
    ?>
", <?php 
    echo $menuFallback;
    ?>
;
        }
    </style>
<?php 
}