Plugin Directory

Changeset 2748114


Ignore:
Timestamp:
06/26/2022 12:56:37 PM (4 years ago)
Author:
aspiesoft
Message:

added landscape option

Location:
aspiesoft-church-sermon-video-list/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • aspiesoft-church-sermon-video-list/trunk/admin.php

    r2651866 r2748114  
    143143  }
    144144
    145   .item label[for="visible"] {
     145  .item label[for="visible"],
     146  .item label[for="landscape"] {
    146147    float: right;
     148  }
     149
     150  .item .checkboxes {
     151    float: right;
     152    display: flex;
     153    flex-direction: column;
    147154  }
    148155
     
    181188    }
    182189
    183     .item label[for="visible"] {
     190    .item label[for="visible"],
     191    .item label[for="landscape"] {
    184192      float: left;
     193    }
     194
     195    .item .checkboxes {
     196      float: left;
     197      display: contents;
    185198    }
    186199
     
    231244        result.push({
    232245          visible: item.querySelector('input[name="visible"]').checked,
     246          landscape: item.querySelector('input[name="landscape"]').checked,
    233247          date: item.querySelector('input[name="date"]').value.replace(/^([0-9]+)-([0-9]+)-([0-9]+)$/, function(_, y, m, d) {
    234248            return `${Number(m)}-${Number(d)}-${Number(y)}`;
     
    256270
    257271      item.innerHTML = `
    258       <label for="visible"><input type="checkbox" name="visible" checked>Show</label>
     272      <div class="checkboxes">
     273        <label for="visible"><input type="checkbox" name="visible" checked>Show</label>
     274        <label for="landscape"><input type="checkbox" name="landscape">Landscape</label>
     275      </div>
    259276      <input type="date" name="date">
    260277      <input type="text" name="name" placeholder="Name">
     
    275292      addNewItem(function(item) {
    276293        item.querySelector('input[name="visible"]').checked = itemList[i].visible;
     294        item.querySelector('input[name="landscape"]').checked = itemList[i].landscape;
    277295        item.querySelector('input[name="date"]').value = new Date(itemList[i].date).toISOString().substring(0, 10);
    278296        item.querySelector('input[name="name"]').value = itemList[i].name;
  • aspiesoft-church-sermon-video-list/trunk/aspiesoft-church-sermon-video-list.php

    r2651866 r2748114  
    66/*
    77Plugin Name: AspieSoft Church Sermon Video List
    8 Version: 1.3.3
     8Version: 1.4.0
    99Description: An easy way for a church to list there sermon videos on their website.
    1010Author: AspieSoft
     
    8989    function enqueue() {
    9090      wp_enqueue_style('aspieSoftChurchSermonVideoListStyle', plugins_url('/assets/style.css', __FILE__), array(), '1.4');
    91       wp_enqueue_script('aspieSoftChurchSermonVideoListScript', plugins_url('/assets/script.js', __FILE__), array('jquery'), '1.6', true);
     91      wp_enqueue_script('aspieSoftChurchSermonVideoListScript', plugins_url('/assets/script.js', __FILE__), array('jquery'), '1.7', true);
    9292    }
    9393  }
  • aspiesoft-church-sermon-video-list/trunk/assets/script.js

    r2399539 r2748114  
    161161        }
    162162      }
     163
     164      if($(this).attr('landscape')){
     165        [facebook.width, facebook.height] = [facebook.height, facebook.width];
     166      }
     167
    163168      iframe.attr('width', facebook.width);
    164169      iframe.attr('height', facebook.height);
  • aspiesoft-church-sermon-video-list/trunk/main.php

    r2651864 r2748114  
    1111if(!class_exists('AspieSoftChurchSermonVideoListMain')){
    1212
    13   class AspieSoftChurchSermonVideoListMain{
     13  class AspieSoftChurchSermonVideoListMain {
    1414
    1515    function start(){
     
    3232        'fb-profile' => false, 'fbprofile' => false,
    3333        'hide' => false, 'hidden' => false,
     34        'landscape' => false,
    3435        'list' => false,
    3536      ), $atts);
     
    115116          $result .= ' scripture="'.$scripture.'"';
    116117        }
     118        if($attr['landscape']){
     119          $result .= ' landscape="true"';
     120        }
    117121
    118122        $result .= '>';
     
    144148          if (!$item['visible']) {
    145149            $content .= ' hide=true';
     150          }
     151          if ($item['landscape']) {
     152            $content .= ' landscape=true';
    146153          }
    147154          $content .= ' url="' . esc_attr($item['url']) . '" date="' . esc_attr($item['date']) . '" name="' . esc_attr($item['name']) . '" scripture="' . esc_attr($item['scripture']) . '"]';
  • aspiesoft-church-sermon-video-list/trunk/readme.txt

    r2651866 r2748114  
    44Requires at least: 3.0.1
    55Tested up to: 5.8.2
    6 Stable tag: 1.3.3
     6Stable tag: 1.4.0
    77Requires PHP: 5.2.4
    88License: GPLv2 or later
     
    4040== Changelog ==
    4141
     42= 1.4 =
     43Added landscape option
     44
    4245= 1.3 =
    4346Added a GUI based list
     
    5558== Upgrade Notice ==
    5659
     60= 1.4 =
     61Added landscape option
     62
     63= 1.3 =
     64Added a GUI based list
     65
    5766= 1.2 =
    5867Improved Site Performance
Note: See TracChangeset for help on using the changeset viewer.