Example #1
0
        ?>
	<h4><?php 
        echo $content->title();
        ?>
</h4>
	<?php 
    }
    ?>

	<?php 
    if (isset($display_data["content"])) {
        if ($content->teasertext() != "") {
            atomicdesign::output("atom", "text", array("text" => $content->teasertext(), "class" => $class));
        } else {
            if ($content->text() != "") {
                atomicdesign::output("atom", "text", array("text" => $content->text(), "class" => $class));
            }
        }
    }
    ?>
	
	<?php 
    if (isset($display_data["link"]) || isset($display_data["jump_to_link"])) {
        ?>
		<a <?php 
        echo $href;
        ?>
 class="more" <?php 
        echo $further_info;
        ?>
><span class="linktext"><?php 
Example #2
0
<!-- Molecule: heading -->
<?php 
if (!isset($class)) {
    $class = "";
}
if (isset($heading)) {
    atomicdesign::output("atom", "headline", array("text" => $heading, "class" => $class));
} elseif ($content->headline() == "") {
    atomicdesign::output("atom", "headline", array("text" => $content->title(), "class" => $class));
} else {
    atomicdesign::output("atom", "headline", array("text" => $content->headline(), "class" => $class));
}
if ($content->subheadline() != "") {
    atomicdesign::output("atom", "subheadline", array("text" => $content->subheadline(), "class" => $class));
}
Example #3
0
<!-- Molecule: section-heading -->
<?php 
if (!isset($class)) {
    $class = "";
}
if ($headline != "") {
    atomicdesign::output("atom", "subheadline", array("text" => $headline, "class" => $class));
}
Example #4
0
<!-- Organism: Video -->
<?php 
$data = isset($content) ? $content : $page;
/* Layoutklassen */
$layout_classes = array();
$layout_classes["textblock"] = "col-lg-4 text";
$layout_classes = get_layout_classes($data->layout_type($site->defaultLanguage()), $layout_classes);
$provider = $data->provider($site->defaultLanguage()) != "" ? $data->provider($site->defaultLanguage()) : "vimeo";
?>


<article>
<?php 
if (!isset($docs)) {
    $docs = false;
}
atomicdesign::output("molecule", "video-" . $provider, array("content" => $data, "heading" => $heading));
atomicdesign::output("molecule", "textblock", array("content" => $data, "heading" => $heading, "layout_classes" => $layout_classes, "docs" => $docs));
?>

</article>
Example #5
0
                }
                echo "<option>" . date(l::get("date-format"), strtotime($termin->datum())) . ", " . $time . "</option>";
            }
            ?>
				</select>
        <label for="nachname" class="control-label">Termin *</label>
			</div>
			<?php 
        }
        ?>
			
			<?php 
        $classes = array();
        $classes["label"] = "";
        $classes["data"] = "";
        atomicdesign::output("molecule", "form", array("data" => $container, "classes" => $classes, "label" => "unten", "footer" => false));
        ?>

			<div class="form-group">
              <span>* Diese Felder erfordern eine Eingabe</span>
			</div>

			<div class="form-group">
              <button type="reset" name="clear" class="btn btn-primary">Eingabe verwerfen</button> <button type="submit" name="submit" class="btn btn-primary">Abschicken</button>
			</div>

		</form>
		<?php 
        if (!$single_date || sizeof($bilder["all"]) > 0) {
            ?>
<button class="btn" id="toggle-<?php 
Example #6
0
$layout_classes["textblock"] = "col-lg-4 col-sm-4 text";
/* Layout switcher */
$layout_data = "";
/* Layoutklassen */
$behavior_classes = "";
?>


<div class="clearfix"></div>

<div class='col-sm-12'>
	<span class='js-form-status'></span>
</div>

<form class="text form-horizontal contactform js-form" method="POST" action="<?php 
echo c::get('settings')['ajax-form-url'];
?>
" name="<?php 
echo $data->title();
?>
" enctype="multipart/form-data" novalidate>

<?php 
atomicdesign::output("molecule", "form", array("data" => $data));
?>

</form>



Example #7
0
 padding-top-1 hidden-xs hidden-sm">
<?php 
    echo kirbytext($data->text());
    ?>
	
</div>
<?php 
}
?>

<div class="<?php 
echo $classes["map"];
?>
">
<?php 
atomicdesign::output("atom", "text", array("text" => kirbytext("(partner-map: standard)")));
?>
  
</div>

<?php 
if ($data->text() != "") {
    ?>
<div class="text col-sm-12 padding-top-1 hidden-md hidden-lg">
<?php 
    echo kirbytext($data->text());
    ?>
	
</div>
<?php 
}
Example #8
0
File: menu.php Project: cnoss/fubix
<!-- Molecule: menu -->
<nav class="menu">
<?php 
atomicdesign::output("atom", "list-unordered", array("items" => $items, "class" => "menu_list"));
?>
</nav>
Example #9
0
                atomicdesign::output("atom", "image", array("bild" => $bilder["all"][1], "class" => "hidden-xs hidden-sm"));
                if ($text_unter_bild) {
                    $layout_classes["textblock"] = "text padding-top-1";
                    atomicdesign::output("molecule", "textblock", array("content" => $content, "heading" => false, "layout_classes" => $layout_classes, "behavior_classes" => false, "docs" => false));
                }
                echo '</div>';
                break;
            case "3":
                echo '<div class="col-md-8  col-sm-12">';
                atomicdesign::output("molecule", "slideshow", array("content" => $content, "slidetexte" => $slidetexte, "article" => $content, "bilder" => $bilder, "class" => "embed-responsive embed-responsive-16by9", "kennung" => $content->slug(), "autostart" => $autostart));
                echo '</div>';
                echo '<div class="col-md-4  col-sm-12 margin-bottom-grid hidden-xs hidden-sm">';
                atomicdesign::output("atom", "image", array("bild" => $bilder["thumbs-lg-16zu9"][1]));
                echo '</div>';
                echo '<div class="col-md-4  col-sm-12 hidden-xs hidden-sm hidden-xs hidden-sm">';
                atomicdesign::output("atom", "image", array("bild" => $bilder["thumbs-lg-16zu9"][2]));
                echo '</div>';
                break;
        }
        ?>
	
	</div>
	<?php 
    }
    ?>
	</div>
<?php 
}
?>
	
Example #10
0
        // Was soll angezeigt werden?
        $display_data = array();
        foreach ($container->display_data()->split() as $t) {
            $display_data[$t] = true;
        }
        ?>

	<div class="teaser--item <?php 
        echo $overview_style["classes"];
        ?>
">	
		<?php 
        $bilder = get_images_from_article($container);
        $teaser_image = false;
        if (isset($bilder[$overview_style["thumbs"]][0])) {
            $teaser_image = $bilder[$overview_style["thumbs"]][0];
        }
        atomicdesign::output("molecule", "overview-item", array("content" => $container, "bild" => $teaser_image, "heading" => $heading, "layout_classes" => $layout_classes, "behavior_classes" => $behavior_classes, "display_data" => $display_data));
        ?>
	</div>
	
<?php 
    }
    ?>

<?php 
}
?>
</div>

	
Example #11
0
if (isset($excerpt) && $excerpt != "") {
    atomicdesign::output("atom", "text", array("text" => $excerpt));
} else {
    if ($content->text() != "") {
        atomicdesign::output("atom", "text", array("text" => $content->text()));
    }
}
?>
		
		<?php 
// Do we have a URL and a linkname?
if (isset($link["text"])) {
    atomicdesign::output("atom", "text", array("text" => get_kirby_linksyntax($link)));
    // or do we have a link only?
} else {
    if (isset($link)) {
        atomicdesign::output("atom", "text", array("text" => $link));
    }
}
?>
	</div>
	
	<?php 
if (isset($docs) && sizeof($docs["all"]) > 0) {
    ?>
	
	<?php 
}
?>
	
</div>
Example #12
0
$layout_classes["bildblock"] = "col-lg-8 col-sm-8 bild";
$layout_classes["textblock"] = "col-lg-4 col-sm-4 text";
/* Layout switcher */
$def_lang = c::get("lang_layouts") ? c::get("lang_layouts") : $site->defaultLanguage()->code();
$layout_data_obj = set_up_layout_data(yaml($data->content($def_lang)->layout_switcher()));
$layout_data = $layout_data_obj["layout_data"];
$layout_classes = array_merge($layout_classes, $layout_data_obj["layout_classes"]);
$layout_classes = get_layout_classes_v2($layout_data, $layout_classes);
// Bilder sammeln
$slides = $data->children()->visible();
$slideimages = array();
$slidetexte = array();
foreach ($slides as $slide) {
    foreach (get_images_from_article($slide) as $key => $items) {
        if (!isset($slideimages[$key])) {
            $slideimages[$key] = array();
        }
        foreach ($items as $item) {
            array_push($slideimages[$key], $item);
        }
    }
    array_push($slidetexte, $slide->text());
}
if (sizeof($slideimages) == 0) {
    $slideimages = $bilder;
}
?>

<?php 
atomicdesign::output("organism", "content--article", array("content" => $data, "bilder" => $slideimages, "slidetexte" => $slidetexte, "heading" => $heading, "layout_classes" => $layout_classes, "behavior_classes" => $behavior_classes));
Example #13
0
$layout_classes = get_layout_classes($data->layout_type($site->defaultLanguage()), $layout_classes);
if (!isset($behavior_classes)) {
    $behavior_classes = "";
}
if (!isset($heading)) {
    $heading = "";
}
if (!isset($bilder)) {
    $bilder = "";
}
?>

<article class="team-member">
<?php 
if (!isset($docs)) {
    $docs = false;
}
/*atomicdesign::output("molecule", "bildblock", array(
		"content" 			=> $data,
		"bilder"			=> $bilder,
		"heading"			=> $heading,
		"layout_classes"	=> $layout_classes,
		"behavior_classes"	=> $behavior_classes
	));*/
$subheadline = $data->function();
if (strlen($data->further_information()) > 0) {
    atomicdesign::output("molecule", "textblock", array("excerpt" => $data->further_information(), "content" => $data, "heading" => $heading, "showheadline" => true, "layout_classes" => $layout_classes, "behavior_classes" => $behavior_classes, "docs" => $docs, "subheadline" => $subheadline));
}
?>
</article>
Example #14
0
    }
    if (sizeof($bilder["all"]) > 0) {
        atomicdesign::output("molecule", "bildblock", array("content" => $data, "bilder" => $bilder, "slidetexte" => $slidetexte, "heading" => $heading, "layout_classes" => $layout_classes, "behavior_classes" => $behavior_classes, "text_unter_bild" => $text_unter_bild));
    } else {
        if ($headline_position == "replace_image_with_headline") {
            echo "<div class=\"" . $layout_classes["headline"] . "\">";
            atomicdesign::output("molecule", "heading", array("content" => $data, "heading" => $heading, "layout_classes" => $layout_classes, "behavior_classes" => $behavior_classes));
            echo "</div>";
        }
    }
    if (strlen($data->text()) > 0 && !$text_unter_bild) {
        atomicdesign::output("molecule", "textblock", array("content" => $data, "heading" => $heading, "layout_classes" => $layout_classes, "behavior_classes" => $behavior_classes, "docs" => $docs));
    }
    /* Textblock 2 und 3 sollen nach unten
    	====================================================== */
    if (isset($layout_data["appearance"]) && $layout_data["appearance"] == "unten") {
        // dann muss das pull-right raus
        $layout_classes = str_replace("pull-right", "", $layout_classes);
        echo "<div class=\"clearfix padding-bottom-2\"></div>";
        //echo "</div></article><article><div class=\"row\">";
    }
    if (isset($additional_columns["text2"]) && strlen($additional_columns["text2"]) > 0) {
        atomicdesign::output("molecule", "textblock", array("excerpt" => $additional_columns["text2"], "content" => $data, "heading" => "no-headline", "layout_classes" => $layout_classes, "behavior_classes" => $behavior_classes, "docs" => $docs));
    }
    if (isset($additional_columns["text3"]) && strlen($additional_columns["text3"]) > 0) {
        atomicdesign::output("molecule", "textblock", array("excerpt" => $additional_columns["text3"], "content" => $data, "heading" => "no-headline", "layout_classes" => $layout_classes, "behavior_classes" => $behavior_classes, "docs" => $docs));
    }
}
?>
</article>
Example #15
0
<?php

$partnermeta = c::get("partner-meta");
$partnermeta["opening-times"] = $site->find("uebergreifende-informationen") ? kirbytext($site->find("uebergreifende-informationen")->openingtimes()) : "";
c::set("partner-meta", $partnermeta);
$GLOBALS["partnermeta"] = $partnermeta;
if (preg_match("=(1|true|TRUE)=", $page->hide_in_lang())) {
    go("/" + $site->language()->code());
}
//include 'assets/php/functions-lumm.php';
$subhead = $page->subhead()->code($site->defaultLanguage()) == "hide" ? false : true;
snippet('header', array("subhead" => $subhead, "subheadline" => true, "content" => $page));
?>

<?php 
snippet(c::get('customs-folder') . 'sidebar-desktop');
?>

<!-- Content Block -->
<?php 
atomicdesign::output("organism", "container--rows");
?>


<!-- EO-Content Block -->
<?php 
snippet(c::get('customs-folder') . 'sidebar');
snippet(c::get('customs-folder') . 'footer');
Example #16
0
File: ajax.php Project: cnoss/fubix
<?php

// File with global functions
include 'assets/php/functions.php';
//include 'assets/php/functions-lumm.php';
$find = get('path') . "/" . get('id');
$find = preg_replace("=ajax/=", "", $find);
$container = $pages->find($find);
$template = get('template');
$idx = get('idx');
/*echo $find . "<hr>";
echo $template . "<hr>";
echo $container->title(); 
*/
// if no article could be found for that id…
if (!$container) {
    die('Invalid article ID');
}
// Zusaetzliche Klassen
$classes = get_additional_classes($container, $site);
// Bilder holen
$bilder = get_images_from_article($container);
// Dokumente holen
$docs = structhelper::get_documents_from_article($container);
// Snip holen
$template = atomicdesign::get_snip($container->uid(), "default");
$template = atomicdesign::get_snip($container->intendedTemplate(), $template);
snippet($template, array('content' => $container, 'snippet' => $template, 'class' => $container->layout(), 'bilder' => $bilder, 'docs' => $docs, 'behavior_classes' => $classes["behavior_classes"], 'heading' => false));
Example #17
0
<!-- Molecule: slideshow -->
<?php 
// Falls es nur ein Bild gibt, zeigen wir es an
########################################
if (count($bilder["all"]) == 1) {
    atomicdesign::output("atom", "image", array("bild" => $bilder["all"][0], "portrait" => $bilder["portrait"][0]));
} else {
    if (!isset($class)) {
        $class = "";
    }
    if (!isset($template)) {
        $template = "";
    }
    if (!isset($type)) {
        $type = "all";
    }
    if (!isset($kennung)) {
        $kennung = "";
    }
    if (!isset($idx)) {
        $idx = "0";
    }
    if (!isset($autostart)) {
        $autostart = "false";
    }
    if (!isset($class)) {
        $class = "";
    }
    if (!isset($slidetexte)) {
        $slidetexte = false;
    }