{"id":13612274,"url":"https://github.com/sectore/jekyll-swfobject","last_synced_at":"2025-11-09T00:03:42.338Z","repository":{"id":6288587,"uuid":"7522890","full_name":"sectore/jekyll-swfobject","owner":"sectore","description":"A plugin for Jekyll to embed Flash files (*.swf) using SWFObject","archived":false,"fork":false,"pushed_at":"2014-06-01T12:26:47.000Z","size":187,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-20T09:56:15.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sectore.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-09T14:59:12.000Z","updated_at":"2023-01-29T12:54:47.000Z","dependencies_parsed_at":"2022-09-13T00:03:43.766Z","dependency_job_id":null,"html_url":"https://github.com/sectore/jekyll-swfobject","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fjekyll-swfobject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fjekyll-swfobject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fjekyll-swfobject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fjekyll-swfobject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sectore","download_url":"https://codeload.github.com/sectore/jekyll-swfobject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252203330,"owners_count":21710944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:00:26.132Z","updated_at":"2025-11-09T00:03:42.292Z","avatar_url":"https://github.com/sectore.png","language":"Ruby","funding_links":[],"categories":["Tags"],"sub_categories":[],"readme":"# Jekyll Plugin: SWFObject Tag\n\nSWFObject Tag is a [Liquid](http://www.liquidmarkup.org/) plugin for [Jekyll](http://jekyllrb.com/) to embed Flash files (*.swf) using [SWFObject](http://code.google.com/p/swfobject/)\n\n## Installation\n\n1) Add this line to your application's Gemfile:\n\n    gem 'jekyll-swfobject'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install jekyll-swfobject\n\n2) Add in a plugin file within your Jekyll project's _plugins directory:\n\n    # _plugins/my-plugin.rb\n    require 'jekyll-swfobject'\n\n3) Link SWFObject in your layout template or page within `\u003chead\u003e` or before `{% swfobject %}` :\n\n    `\u003cscript src=\"//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js\"\u003e\u003c/script\u003e`\n\n\n## Usage\n\n### Tag\n    {% swfobject swf_url %}Flash Player required.{% endswfobject %}\nNote: Because SWFObject Tag is a `Liquid::Block`, you have to close any `{% swfobject %}` with `{% endswfobject %}` in your templates.\nAlso an alternative content within the tags is needed.\n\n#### Alternative HTML content (required)\n\n    {% swfobject swf_url %}\n    \u003cp\u003eLatest \u003ca href='http://www.adobe.com/go/getflashplayer'\u003eFlash Player Plugin\u003c/a\u003e is required.\u003c/p\u003e\n    {% endswfobject %}\n\n\n#### Optional parameters\n\nAll optional parameters are defined using `key:value` pairs.\n\n    {% swfobject swf_url id:myFlash content_id:flashcontent width:500 height:600  %}{% endswfobject %}\n\nNote: Don't use whitespaces between `:` to avoid issues rendering templates.\n\nFor all optional parameters check section [Parameters](#parameters) below.\n\n\n\n#### Optional parameters defined in `_config.yml`\n\n    swfobject:\n      height: 350\n      width: 200\n      express_install_url: expressInstall.swf\n\nYou can define any optional paramter in `_config.yml`. For an overiew of all optional parameters check section [Parameters](#parameters) below.\n\n\n## Parameters\n\n### Required parameter\n\n`swf_url` - Path to SWF, which has to be embedded\n\n### Optional parameters\n\nAll optional parameters can be defined within `{% swfobject %}` and / or using `_config.yml`.\nParameters defined in `_config.yml` will be overridden by tag parameters.\n\n`content_id` - Id of the div container, which will be replaced by SWFObject to embed SWF\n\n`height` - Height (`px`, `%`, `em` or `rem`) of the embedded SWF and of the surrounded `\u003cdiv\u003e` (default: 100%)\n\n`width` - Width (`px`, `%`, `em` or `rem`) of the embedded SWF and of the surrounded `\u003cdiv\u003e`  (default: 100%).\n\nNote: For a better support of fluid and responsive layouts using `em`, `rem` etc. the plugin creates an extra `div`,\nwhich wrappes the generated `\u003cobject\u003e` tag. This wrapper `div` will be sized using values of `height` and `width`.\nThe wrapper can be addressed by using the `content_id` + `-wrapper`, e.g. `flashcontent-wrapper`.\n\n`version` - Version of the Flash Player Plugin (default: 10.0)\n\n`flashvars` - String of flashvars using `key=value` pairs combinend with `\u0026`, e.g. `name1=hello\u0026name2=world`\n\n`express_install_url` - URL of the expressInstall.swf\n\n`callback_function` - Callback function to check success or failure of creating a Flash plug-in `\u003cobject\u003e`\n\n\n#### Optional Attributes of the `\u003cobject\u003e` element\n\n`id`\n\n`align`\n\n`name`\n\n`styleclass`\n\nFor detailed information check SWF Object documentation: http://code.google.com/p/swfobject/wiki/documentation\n\n#### Optional Flash specific parameters\n\n`play`\n\n`loop`\n\n`menu`\n\n`quality`\n\n`scale`\n\n`salign`\n\n`wmode`\n\n`bgcolor`\n\n`base`\n\n`swliveconnect`\n\n`devicefont`\n\n`allowscriptaccess`\n\n`seamlesstabbing`\n\n`allowfullscreen`\n\n`allownetworking`\n\nFor detailed information check SWF Object documentation: http://code.google.com/p/swfobject/wiki/documentation\n\n## Live example\n\nSWFObject Tag is used by the Jekyll generated website [WEBSECTOR.DE](http://websector.de). You will find the [source](https://github.com/sectore/websector.de) of WEBSECTOR.DE [here](https://github.com/sectore/websector.de) at GitHub.\n\n## Test\n\nThe plugin is well tested using [Test::Unit](http://www.ruby-doc.org/core/classes/Test/Unit.html) with [Shoulda](https://github.com/thoughtbot/shoulda) and [Mocha](http://gofreerange.com/mocha/). To start tests just run\n\n    rake test\n\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\nCopyright (c) 2013 \"sectore\" Jens Krause // [WEBSECTOR.DE](http://websector.de)\n\nSWFObject Tag is free software and it may be redistributed under the terms specified in the MIT-LICENSE file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectore%2Fjekyll-swfobject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectore%2Fjekyll-swfobject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectore%2Fjekyll-swfobject/lists"}