Move into wp-content path

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
2019-08-31 00:48:20 +02:00
parent f523d8ccc0
commit 3724cc6edd
342 changed files with 108652 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
$flip = false;
$flipclass = array("picrew-figcaption");
if(in_array($options['preset'], array('style-2'))){
$flip = true;
$flipclass = array("picrew-flip-back");
}?>
<div id="<?php echo $this->add_id(array('pirate-crew',$id));?>" class="picrew-grid-wrapper"><?php if ($team->have_posts()): ?>
<div class="picrew-grid <?php echo $this->item_style($options);?>">
<?php
while ($team->have_posts()): $team->the_post();
$teamdata = $this->get_options('pirate_crew_member', $team->post->ID);?>
<div id="<?php echo $this->add_id(array('pirate_crew_member',$id,$team->post->ID));?>" class="picrew-grid-card">
<figure>
<!-- <span class="picrew-grid-holder"> -->
<?php $this->checkprint('<div class="picrew-flip-front">',$flip);?>
<img src="<?php echo $this->pirate_team_get_thumbnail($team->post->ID);?>" alt="<?php the_title();?>">
<?php $this->checkprint('</div>',$flip);?>
<figcaption class="<?php echo $this->addclass($flipclass);?>">
<?php $this->checkprint('<div class="picrew-flip-back-inner">',$flip);?>
<div class="picrew-personal-info">
<h3><?php the_title();?></h3>
<span><?php echo $teamdata['pirate-crew-designation'];?></span>
</div> <!-- .picrew-personal-info -->
<div class="picrew-contact-info">
<?php
$this->checkprint('<p>%s</p>', $teamdata['pirate-crew-short-desc']);
include( $this->settings['plugin_path'].'templates/partials/social.php' );
?>
</div> <!-- .picrew-contact-info -->
<?php $this->checkprint('</div><!-- .picrew-flip-back-inner -->',$flip);?>
</figcaption>
<!-- </span> -->
<!-- .picrew-grid-holder -->
</figure>
</div>
<?php endwhile; wp_reset_postdata();?>
</div><!-- .grid -->
<?php endif;?></div>

View File

@@ -0,0 +1,29 @@
<div id="<?php echo $this->add_id(array('pirate-crew',$id));?>" class="picrew-grid-wrapper">
<?php if ($team->have_posts()): ?>
<div class="picrew-grid <?php echo $this->item_style($options);?>">
<?php
while ($team->have_posts()): $team->the_post();
$teamdata = $this->get_options('pirate_crew_member', $team->post->ID);?>
<div id="<?php echo $this->add_id(array('pirate_crew_member',$id,$team->post->ID));?>" class="picrew-grid-card">
<figure>
<img src="<?php echo $this->pirate_team_get_thumbnail($team->post->ID);?>" alt="<?php the_title();?>">
<figcaption>
<div class="picrew-personal-info">
<h3><?php the_title();?></h3>
<?php $this->checkprint('<span>%s</span>', $teamdata['pirate-crew-designation']);?>
</div> <!-- .picrew-personal-info -->
<div class="picrew-contact-info">
<?php
include( $this->settings['plugin_path'].'templates/partials/social.php' );
the_content();
?>
</div> <!-- .picrew-contact-info -->
</figcaption>
</figure>
</div>
<?php endwhile; wp_reset_postdata();?>
</div><!-- .grid -->
<?php endif;?>
</div>

View File

@@ -0,0 +1,12 @@
<?php
if (!empty($teamdata['pirate_crew_contact'])) {
echo '<div class="picrew-contact-details">';
foreach ($teamdata['pirate_crew_contact'] as $contact) {
if(filter_var($contact['content'], FILTER_VALIDATE_EMAIL)){
$contact['content'] = sprintf('<a href="mailto:%1$s">%1$s</a>',$contact['content']);
}
echo '<p><span>'.$contact['label'].':</span>'.$contact['content'].'</p>';
}
echo '</div>';
}
?>

View File

@@ -0,0 +1,19 @@
<div id="<?php echo $this->add_id(array('slide-ins',$id,$team->post->ID));?>" class="picrew-modal-item">
<div id="<?php echo $this->add_id(array('picrew-member-info',$id,$team->post->ID));?>" class="picrew-modal-content">
<div class="picrew-modal-content-main">
<div class="picrew-modal-image-main">
<img src="<?php echo $this->pirate_team_get_thumbnail($team->post->ID);?>" alt="<?php the_title();?>">
</div>
<!-- .image-main -->
<div class="picrew-modal-details">
<?php
$this->checkprint('<h3>%s</h3>', $teamdata['pirate-crew-designation']);
the_title( '<h2>', '</h2>');
the_content();
include( $this->settings['plugin_path'].'templates/partials/contact.php' );
include( $this->settings['plugin_path'].'templates/partials/social.php' );
?>
</div> <!-- .picrew-modal-details -->
</div> <!-- .picrew-modal-content-main -->
</div> <!-- .picrew-modal-content -->
</div> <!-- .picrew-modal-item -->

View File

@@ -0,0 +1,20 @@
<div id="<?php echo $this->add_id(array('modal-style',$id,$team->post->ID));?>" class="picrew-modal-item">
<div id="<?php echo $this->add_id(array('picrew-member-info',$id,$team->post->ID));?>" class="picrew-modal-content">
<div class="picrew-modal-content-main">
<div class="picrew-image-main">
<img src="<?php echo $this->pirate_team_get_thumbnail($team->post->ID);?>" alt="<?php the_title();?>">
</div>
<div class="picrew-modal-details">
<div class="picrew-modal-content-inner">
<?php
$this->checkprint('<h3>%s</h3>', $teamdata['pirate-crew-designation']);
the_title( '<h2>', '</h2>');
the_content();
include( $this->settings['plugin_path'].'templates/partials/contact.php' );
include( $this->settings['plugin_path'].'templates/partials/social.php' );
?>
</div><!-- .picrew-modal-content-inner -->
</div> <!-- .picrew-modal-details -->
</div> <!-- .picrew-modal-content-main -->
</div> <!-- .picrew-modal-content -->
</div> <!-- .picrew-modal-item -->

View File

@@ -0,0 +1,11 @@
<?php
if (!empty($teamdata['pirate_crew_social'])) {
echo '<nav class="picrew-social-icons">';
foreach ($teamdata['pirate_crew_social'] as $social) {
if (isset($social['link'])) {
echo '<span><a href="' . esc_url($social['link']) . '"><i class="picrew-icon-' . $social['icon'] . '" aria-hidden="true"></i><span class="screen-reader-text">'. $social['icon'].'</span></a></span>';
}
}
echo '</nav>';
}
?>

View File

@@ -0,0 +1,47 @@
<div id="<?php echo $this->add_id(array('pirate-crew',$id));?>" class="picrew-grid-wrapper">
<?php if ($team->have_posts()): ?>
<div class="picrew-table <?php echo $this->item_style($options);?>">
<div class="picrew-table-row picrew-table-head">
<div class="picrew-table-cell">
<?php _e('Photo', 'pirate-crew'); ?>
</div><!-- .picrew-table-cell -->
<div class="picrew-table-cell">
<?php _e('Name', 'pirate-crew'); ?>
</div><!-- .picrew-table-cell -->
<div class="picrew-table-cell">
<?php _e('Position', 'pirate-crew'); ?>
</div><!-- .picrew-table-cell -->
<div class="picrew-table-cell">
<?php _e('Short Description', 'pirate-crew'); ?>
</div><!-- .picrew-table-cell -->
<div class="picrew-table-cell">
<?php _e('Social Links', 'pirate-crew'); ?>
</div><!-- .picrew-table-cell -->
</div>
<?php
while ($team->have_posts()): $team->the_post();
$teamdata = $this->get_options('pirate_crew_member', $team->post->ID);
?>
<div id="<?php echo $this->add_id(array('pirate_crew_member',$id,$team->post->ID));?>" class="picrew-table-row">
<div class="picrew-table-cell picrew-table-image">
<div class="picrew-table-img-holder">
<img src="<?php echo $this->pirate_team_get_thumbnail($team->post->ID);?>" alt="<?php the_title();?>">
</div><!-- .picrew-img-holder -->
</div><!-- .picrew-table-cell -->
<div class="picrew-table-cell picrew-table-name">
<div class="picrew-table-cell-inner"><?php the_title(); ?></div>
</div><!-- .picrew-table-cell -->
<div class="picrew-table-cell picrew-table-designation">
<div class="picrew-table-cell-inner"><?php $this->checkprint('%s', $teamdata['pirate-crew-designation']);?></div>
</div><!-- .picrew-table-cell -->
<div class="picrew-table-cell picrew-table-description">
<div class="picrew-table-cell-inner"><?php $this->checkprint('<p>%s</p>', $teamdata['pirate-crew-short-desc']);?></div>
</div><!-- .picrew-table-cell -->
<div class="picrew-table-cell">
<?php include( $this->settings['plugin_path'].'templates/partials/social.php' ); ?>
</div><!-- .picrew-table-cell -->
</div><!-- .picrew-table-row -->
<?php endwhile; wp_reset_postdata();?>
</div>
<?php endif;?>
</div>