Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Some changes. -Update Server has been added. -builder script refactor…
Browse files Browse the repository at this point in the history
…ed. -CSS corrections for roksprocket.
  • Loading branch information
othercodes committed Jan 20, 2019
1 parent adbbfc9 commit 3f337ea
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 58 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea/
builds/
_builds/*
_src/*
custom/
*pexels*
*wallhaven*
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tpl_othercode
# otherCode Joomla 3.x Template

otherCode Joomla Template developed with Gantry 5

Expand All @@ -9,7 +9,13 @@ otherCode Joomla Template developed with Gantry 5
Run the following command:

```bash
sh ./tpl_othercode.sh
bash build.sh
```

This will generate the installable `.zip` in `builds/` directory:

```bash
builds/g5_othercode.zip
```

## Configuration
Expand All @@ -18,4 +24,4 @@ Access to template configuration in: **Extensions > Template > Styles > [Templat

#### Disclaimer

All used images are from **pexels.com**.
All used images are from **[pexels.com](https://www.pexels.com/)**.
39 changes: 39 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env bash

ext_path=`pwd`
ext_name="g5_othercode"
version="1.1.2"

echo "**********************"
echo "Building: "$ext_name
echo "Version: "$version
echo "**********************"
echo "Path: "$ext_path
echo "**********************"

echo "Cleaning..."
cd $ext_path
rm -rf $ext_path/_builds $ext_path/_builds/$ext_name
mkdir -p $ext_path/_builds $ext_path/_builds/$ext_name

echo "Building directories..."
for directory in $(find ./ -type d | grep -vE ".git|.idea|custom|_build" | sed 's/.\///'); do
if [ ! -z "$directory" ]; then
mkdir -p $ext_path/_builds/$ext_name/$directory
fi
done

echo "Copying files..."
for file in $(find ./ -type f | grep -vE ".git|.idea|custom|.sh$|_build|LICENSE|.md$"); do
cp -r $file $ext_path/_builds/$ext_name/$file
done

perl -pi -e 's/VERSION/'$version'/g;s/DATE/'`date +%Y-%m-%d`'/g' $ext_path/_builds/$ext_name/templateDetails.xml
perl -pi -e 's/VERSION/'$version'/g;s/DATE/'`date +%Y-%m-%d`'/g' $ext_path/_builds/$ext_name/gantry/theme.yaml

echo "Building zip package..."
cd $ext_path/_builds
zip -rq $ext_path/_builds/$ext_name.zip $ext_name
rm -rf $ext_path/_builds/$ext_name

echo "Done!"
15 changes: 7 additions & 8 deletions roksprocket/layouts/mosaic/themes/default/mosaic.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
/**
* @version $Id: mosaic.css 26163 2015-01-27 17:11:55Z james $
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/

/* Mosaic - Core */
.sprocket-mosaic {
position: relative;
-webkit-transform: translateZ(0);
Expand Down Expand Up @@ -226,6 +218,8 @@
top: 50%;
width: 100%;
display: block;
font-size: 1.5rem;
transform: translateY(-50%);
}

.sprocket-mosaic-hovercontent span {
Expand Down Expand Up @@ -335,6 +329,11 @@
animation: rotate 1s linear infinite;
}

h2.sprocket-mosaic-title {
line-height: 2rem;
font-size: 1.5rem;
}

/* Tweaks */
.sprocket-mosaic-item {
margin: 10px;
Expand Down
8 changes: 0 additions & 8 deletions scss/othercode/styles/_extenisons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@
line-height: 0;
}

// roksprokect
.sprocket-mosaic {
h2.sprocket-mosaic-title {
line-height: 2rem;
font-size: 1.5rem;
}
}

pre[class*="language-"] {
box-shadow: none;
border: none;
Expand Down
8 changes: 7 additions & 1 deletion templateDetails.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<folder>admin</folder>
<folder>blueprints</folder>
<folder>config</folder>
<folder>css</folder>
<folder>fields</folder>
<folder>fonts</folder>
<folder>gantry</folder>
Expand All @@ -27,8 +28,8 @@
<folder>language</folder>
<folder>layouts</folder>
<folder>particles</folder>
<folder>scss</folder>
<folder>roksprocket</folder>
<folder>scss</folder>
<file>component.php</file>
<file>error.php</file>
<file>index.php</file>
Expand Down Expand Up @@ -56,4 +57,9 @@
</fields>
</config>

<updateservers>
<server name="OtherCode Extension Directory" priority="1" type="collection">
https://updates.othercode.es/index.xml
</server>
</updateservers>
</extension>
37 changes: 0 additions & 37 deletions tpl_othercode.sh

This file was deleted.

0 comments on commit 3f337ea

Please sign in to comment.